From 65e5860fcc8ffe66f3c325d5484112f3b6540e8c Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 7 Jun 2019 14:23:39 -0700 Subject: [PATCH] cross port importlib-metadata PR #76 (#13903) https://gitlab.com/python-devs/importlib_metadata/merge_requests/76 --- Lib/importlib/metadata/__init__.py | 2 ++ .../data/example-21.12-py3-none-any.whl | Bin 1453 -> 1455 bytes .../data/example-21.12-py3.6.egg | Bin 1492 -> 1497 bytes Lib/test/test_importlib/test_zip.py | 2 ++ 4 files changed, 4 insertions(+) diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py index a1abdd64815..944dbb5fdf7 100644 --- a/Lib/importlib/metadata/__init__.py +++ b/Lib/importlib/metadata/__init__.py @@ -89,6 +89,8 @@ class EntryPoint(collections.namedtuple('EntryPointBase', 'name value group')): @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 f92f7716e3e613a2a9703be785135fd8b35cfb1c..641ab07f7aadd5c3ffe199b1e397b84504444994 100644 GIT binary patch delta 652 zcmZ3>y`Gydz?+#xgn@y9gQ2SWxZgxRKbAQ_dh!OwtsEc*-_4_HlVushn6DXMoLt6e z#tRah;;VX48>q)|Vy2^d(OQo)x+gqCH-vh$Zdg+!Z2Wmg&_?cJMh1k*AUzY$cnX4O zn_o&7^cWc!E&{RK#9Zn6AXjJqAeYiJJByke7#J?x%V&HtLD`i{K*Z%>!HNrS))aAV zIuu$$6tI^s6T?yO8*3a9e zdGD^HRoJQ9#{y)to7Sy-zeXc<+qa&ruV0F6{lOaG&B!FejEFcX&4U$+z$gJ>VIYQq zC6hlgt3aZZmsNs!Nn_CDy^P9}y;*r=VbL1{R13ngFg-we$>iHCdI~6U4HVTtR?)bK yablj<5-dv^g_$PiNljkLA_>-v64^+aw=gDv)lFm-V>`tRk^lez?DZ)C delta 732 zcmZ3_y_TCVz?+#xgn@y9gCTc`j_*W1KcTNnb$tKFUAe3V6x9M^4Ti}VShOa;U=&jF zTI+E}_k?HYhR}vhYl?)8KkwMVfG_~0ak3(lCkKde$oyXPWLd^A<}1cmCYLdqv48|8 zCTs;8@6T)+ZOF*La2<%{K*mee2e~@?2f5Uq-Cfk=z~FH4p5*_OgCCA5vF0#sbI*(bG-m?4>+SK$z)0TVdi`|)DrvG*q z7oSuWU%K)_oKU;brbG4zFRl5sSVo2S!H%Cie}hC$U*Pe69_qh>tKPi3S5R}8kY>I9 zb+2uUEdU%8_~S2RTDlQQ4TIEOn|4=%p_OYoED+$YZj^wjk?9-LI$ujI2!Gj}%Em5r_qW7zUO!YEBklRgeeT>?fsputE_i0m8yC1weX9WAtQyRwb}GAXm)=iai5j VkXK<~N#okd6IkuoCW9WRD?m_gKmsUT`{1fw-CkoNl@cjdAgP>t5)1&l_D zUTZzh=$`Nl-4NQaX-$!^@#h^o7*I@^{DaXNtlx}DpZRC@>d6^Q{v054ZnE_3nY^FL zn#IU?kKE*cObfxP7BSm^>4(hrU|N~Q1I^Y77Atv>{<|rhL0n+BGBAh%X&6}2_-yh; z7FDqBpDfahDw9Q7736_7`$=gYtWX3h17Ts9av;5=F>G=Os}jOhb*y4cE0`vqWYQH2 U@MdKLDdhk{111KBK4uUP08S8I@&Et; diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py index db39e190ea7..bcf7cf3618d 100644 --- a/Lib/test/test_importlib/test_zip.py +++ b/Lib/test/test_importlib/test_zip.py @@ -26,6 +26,8 @@ class TestZip(unittest.TestCase): 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'))