Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a1d873b
Commit importlib.metadata as found at https://gitlab.com/python-devs/…
jaraco Mar 26, 2019
6d7e3a8
Update implementation based on importlib_metadata 0.10
jaraco May 8, 2019
dc500dd
Merge fixes to docs syntax
jaraco May 8, 2019
f0cad2b
Rename doc to appear under the correct name
jaraco May 8, 2019
a630dfa
Add reference to importlib.metadata
jaraco May 8, 2019
9bde7fa
Update with latest changes from importlib_metadata
jaraco May 8, 2019
175603f
Merge branch 'master' into feature/34632-importlib-metadata
jaraco May 8, 2019
2347d3a
Merge remote-tracking branch 'origin/master' into feature/34632-impor…
jaraco May 8, 2019
6816cc0
Add ignores to suspicious check
jaraco May 8, 2019
071cbd4
Update with latest changes from importlib_metadata
jaraco May 8, 2019
21eaaf4
Apply changes from importlib_metadata 0.11
jaraco May 10, 2019
a277d85
Merge branch 'master' into feature/34632-importlib-metadata
jaraco May 10, 2019
58533a7
Refresh from importlib_metadata@cpython
jaraco May 10, 2019
3b19b9d
Inline the find_distributions functionality on PathFinder.
jaraco May 10, 2019
6e5cc29
Disable all the doctests
jaraco May 11, 2019
8f04bf5
📜🤖 Added by blurb_it.
blurb-it[bot] May 11, 2019
7f9924a
make regen-all
jaraco May 11, 2019
34142cd
Apply changes from importlib_metadata 0.12.
jaraco May 14, 2019
569e1ac
Make regen-all
jaraco May 14, 2019
2a6b361
Add provisional disclaimer
jaraco May 14, 2019
b462010
Refresh from importlib_metadata@cpython
jaraco May 14, 2019
c2bf9a5
Refresh from importlib_metadata@cpython
jaraco May 14, 2019
dcb580f
Add missing file
jaraco May 14, 2019
1b52d5b
Apply changes from importlib_metadata
jaraco May 18, 2019
de0f89d
Apply changes from importlib_metadata refresh.
jaraco May 18, 2019
a1c3d9c
Merge branch 'master' into feature/34632-importlib-metadata
jaraco May 24, 2019
ccbccce
Refresh from importlib_metadata@cpython (0.15)
jaraco May 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply changes from importlib_metadata 0.12.
  • Loading branch information
jaraco committed May 14, 2019
commit 34142cd8880a06151ee331ce5ed05f60eb650e95
2 changes: 1 addition & 1 deletion Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ def find_module(cls, fullname, path=None):
return None
return spec.loader

search_template = r'{pattern}(-.*)?\.(dist|egg)-info'
search_template = r'(?:{pattern}(-.*)?\.(dist|egg)-info|EGG-INFO)'

@classmethod
def find_distributions(cls, name=None, path=None):
Expand Down
24 changes: 19 additions & 5 deletions Lib/test/test_importlib/test_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
from importlib.resources import path


class BespokeLoader:
archive = 'bespoke'


class TestZip(unittest.TestCase):
def setUp(self):
# Find the path to the example.*.whl so we can add it to the front of
# Find the path to the example-*.whl so we can add it to the front of
# sys.path, where we'll then try to find the metadata thereof.
self.resources = ExitStack()
self.addCleanup(self.resources.close)
Expand Down Expand Up @@ -40,3 +36,21 @@ def test_files(self):
for file in files('example'):
path = str(file.dist.locate_file(file))
assert '.whl/' in path, path


class TestEgg(TestZip):
def setUp(self):
# Find the path to the example-*.egg so we can add it to the front of
# sys.path, where we'll then try to find the metadata thereof.
self.resources = ExitStack()
self.addCleanup(self.resources.close)
egg = self.resources.enter_context(
path('importlib_metadata.tests.data',
'example-21.12-py3.6.egg'))
sys.path.insert(0, str(egg))
self.resources.callback(sys.path.pop, 0)

def test_files(self):
for file in files('example'):
path = str(file.dist.locate_file(file))
assert '.egg/' in path, path