MCPcopy
hub / github.com/pex-tool/pex / create_sdist

Function create_sdist

tests/test_resolver.py:58–72  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

56
57
58def create_sdist(**kwargs):
59 # type: (**Any) -> str
60 dist_dir = safe_mkdtemp()
61
62 with make_project(**kwargs) as project_dir:
63 build_sdist(
64 project_directory=project_dir,
65 dist_dir=dist_dir,
66 target=targets.current(),
67 resolver=ConfiguredResolver.default(),
68 )
69
70 dists = os.listdir(dist_dir)
71 assert len(dists) == 1
72 return os.path.join(dist_dir, dists[0])
73
74
75def build_wheel(**kwargs):

Callers 2

test_download2Function · 0.85

Calls 6

safe_mkdtempFunction · 0.90
make_projectFunction · 0.90
build_sdistFunction · 0.90
currentMethod · 0.45
defaultMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected