MCPcopy Create free account
hub / github.com/numpy/numpy / tarball_name

Function tarball_name

pavement.py:67–81  ·  view source on GitHub ↗

Generate source distribution name Parameters ---------- ftype : {'zip', 'gztar'} Type of archive, default is 'gztar'.

(ftype='gztar')

Source from the content-addressed store, hash-verified

65# Source distribution stuff
66#--------------------------
67def tarball_name(ftype='gztar'):
68 """Generate source distribution name
69
70 Parameters
71 ----------
72 ftype : {'zip', 'gztar'}
73 Type of archive, default is 'gztar'.
74
75 """
76 root = f'numpy-{FULLVERSION}'
77 if ftype == 'gztar':
78 return root + '.tar.gz'
79 elif ftype == 'zip':
80 return root + '.zip'
81 raise ValueError(f"Unknown type {type}")
82
83
84@task

Callers 1

sdistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected