Skip to content

Commit 2fdeb12

Browse files
committed
Retain case in setup.cfg during sdist. Fixes #2773.
1 parent c020053 commit 2fdeb12

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/2773.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Retain case in setup.cfg during sdist.

setuptools/command/setopt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def edit_config(filename, settings, dry_run=False):
3939
"""
4040
log.debug("Reading configuration from %s", filename)
4141
opts = configparser.RawConfigParser()
42+
opts.optionxform = lambda x: x
4243
opts.read([filename])
4344
for section, options in settings.items():
4445
if options is None:

0 commit comments

Comments
 (0)