[Python-checkins] cross port importlib-metadata PR #76 (#13903)
Barry Warsaw
webhook-mailer at python.org
Fri Jun 7 17:24:00 EDT 2019
https://github.com/python/cpython/commit/65e5860fcc8ffe66f3c325d5484112f3b6540e8c
commit: 65e5860fcc8ffe66f3c325d5484112f3b6540e8c
branch: master
author: Anthony Sottile <asottile at umich.edu>
committer: Barry Warsaw <barry at python.org>
date: 2019-06-07T14:23:38-07:00
summary:
cross port importlib-metadata PR #76 (#13903)
https://gitlab.com/python-devs/importlib_metadata/merge_requests/76
files:
M Lib/importlib/metadata/__init__.py
M Lib/test/test_importlib/data/example-21.12-py3-none-any.whl
M Lib/test/test_importlib/data/example-21.12-py3.6.egg
M Lib/test/test_importlib/test_zip.py
diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py
index a1abdd64815b..944dbb5fdf7e 100644
--- a/Lib/importlib/metadata/__init__.py
+++ b/Lib/importlib/metadata/__init__.py
@@ -89,6 +89,8 @@ def _from_config(cls, config):
@classmethod
def _from_text(cls, text):
config = ConfigParser()
+ # case sensitive: https://stackoverflow.com/q/1611799/812183
+ config.optionxform = str
try:
config.read_string(text)
except AttributeError: # pragma: nocover
diff --git a/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl b/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl
index f92f7716e3e6..641ab07f7aad 100644
Binary files a/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl and b/Lib/test/test_importlib/data/example-21.12-py3-none-any.whl differ
diff --git a/Lib/test/test_importlib/data/example-21.12-py3.6.egg b/Lib/test/test_importlib/data/example-21.12-py3.6.egg
index 1d3f998f41b8..cdb298a19b09 100644
Binary files a/Lib/test/test_importlib/data/example-21.12-py3.6.egg and b/Lib/test/test_importlib/data/example-21.12-py3.6.egg differ
diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py
index db39e190ea7a..bcf7cf3618d7 100644
--- a/Lib/test/test_importlib/test_zip.py
+++ b/Lib/test/test_importlib/test_zip.py
@@ -26,6 +26,8 @@ def test_zip_entry_points(self):
scripts = dict(entry_points()['console_scripts'])
entry_point = scripts['example']
self.assertEqual(entry_point.value, 'example:main')
+ entry_point = scripts['Example']
+ self.assertEqual(entry_point.value, 'example:main')
def test_missing_metadata(self):
self.assertIsNone(distribution('example').read_text('does not exist'))
More information about the Python-checkins
mailing list