Generate source distribution name Parameters ---------- ftype : {'zip', 'gztar'} Type of archive, default is 'gztar'.
(ftype='gztar')
| 65 | # Source distribution stuff |
| 66 | #-------------------------- |
| 67 | def 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 |