summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-09-08 21:17:56 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-09-08 21:17:56 -0400
commit2fdeb12fa5c252f2cfe8f7dcc1840bfefc712aa8 (patch)
treebb85700963933930ebcaee7e39b6e752a64dd11c
parentc020053fa6a3e3abf2686ad8b6eb95efa8794c9f (diff)
downloadpython-setuptools-git-2fdeb12fa5c252f2cfe8f7dcc1840bfefc712aa8.tar.gz
Retain case in setup.cfg during sdist. Fixes #2773.
-rw-r--r--changelog.d/2773.misc.rst1
-rw-r--r--setuptools/command/setopt.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/2773.misc.rst b/changelog.d/2773.misc.rst
new file mode 100644
index 00000000..a96d793d
--- /dev/null
+++ b/changelog.d/2773.misc.rst
@@ -0,0 +1 @@
+Retain case in setup.cfg during sdist.
diff --git a/setuptools/command/setopt.py b/setuptools/command/setopt.py
index e18057c8..6358c045 100644
--- a/setuptools/command/setopt.py
+++ b/setuptools/command/setopt.py
@@ -39,6 +39,7 @@ def edit_config(filename, settings, dry_run=False):
"""
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: