Skip to content

Commit

Permalink
Retain case in setup.cfg during sdist. Fixes #2773.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 9, 2021
1 parent c020053 commit 2fdeb12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/2773.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Retain case in setup.cfg during sdist.
1 change: 1 addition & 0 deletions setuptools/command/setopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2fdeb12

Please sign in to comment.