Commit 20162b5
committed
workflows: upload source archive to PyPI as openslide_bin-*
PyPI now rejects a non-normalized package name in the source filename:
Uploading openslide-bin-4.0.0.9.tar.gz
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Filename 'openslide-bin-4.0.0.9.tar.gz' is invalid, should be
'openslide_bin-4.0.0.9.tar.gz'.
Rename the source tarball for PyPI but not for the GitHub release. The
only reason we put source code on PyPI is for license compliance, since
source builds through meson-python are designed to fail.
The Source Distribution Format spec suggests that the top-level directory
name should be similarly normalized, but this isn't enforced (yet) so
ignore it for now. We'd have to repack the output of `meson dist`, either
for PyPI or for everyone, and accept additional inconsistency in the
layout of the source archive.
Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>1 parent 2f99b18 commit 20162b5
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments