MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_pkg

Method make_pkg

Lib/test/test_importlib/test_main.py:102–111  ·  view source on GitHub ↗

Create minimal metadata for a dist-info package with the indicated name on the file system.

(name)

Source from the content-addressed store, hash-verified

100class NameNormalizationTests(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
101 @staticmethod
102 def make_pkg(name):
103 """
104 Create minimal metadata for a dist-info package with
105 the indicated name on the file system.
106 """
107 return {
108 f'{name}.dist-info': {
109 'METADATA': 'VERSION: 1.0\n',
110 },
111 }
112
113 def test_dashes_in_dist_name_found_as_underscores(self):
114 """

Calls

no outgoing calls

Tested by

no test coverage detected