MCPcopy Index your code
hub / github.com/python/cpython / make_pkg

Method make_pkg

Lib/test/test_importlib/metadata/test_main.py:139–145  ·  view source on GitHub ↗

Create metadata for a dist-info package with name and files.

(name, files=dict(METADATA="VERSION: 1.0"))

Source from the content-addressed store, hash-verified

137class InvalidMetadataTests(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
138 @staticmethod
139 def make_pkg(name, files=dict(METADATA="VERSION: 1.0")):
140 """
141 Create metadata for a dist-info package with name and files.
142 """
143 return {
144 f'{name}.dist-info': files,
145 }
146
147 def test_valid_dists_preferred(self):
148 """

Callers 4

test_missing_metadataMethod · 0.95
test_recursion_limitMethod · 0.45
test_symlink_loopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected