[bumpversion]
-current_version = 58.0.3
+current_version = 58.0.4
commit = True
tag = True
+v58.0.4
+-------
+
+
+Misc
+^^^^
+* #2773: Retain case in setup.cfg during sdist.
+
+
v58.0.3
-------
[metadata]
name = setuptools
-version = 58.0.3
+version = 58.0.4
author = Python Packaging Authority
author_email = distutils-sig@python.org
description = Easily download, build, install, upgrade, and uninstall Python packages
"""
log.debug("Reading configuration from %s", filename)
opts = configparser.RawConfigParser()
+ opts.optionxform = lambda x: x
opts.read([filename])
for section, options in settings.items():
if options is None:
parser = self.parse_config(str(config))
assert parser.get('names', 'jaraco') == 'джарако'
assert parser.get('names', 'other') == 'yes'
+
+ def test_case_retained(self, tmpdir):
+ """
+ """
+ config = tmpdir.join('setup.cfg')
+ self.write_text(str(config), '[names]\nJARACO=jaraco')
+ setopt.edit_config(str(config), dict())
+ assert 'JARACO' in config.read_text(encoding='ascii')