Commit 4896512
committed
fix(release): keep dist/ pure for twine; bundle moves to bundle/
The v0.3.1 release run failed at the PyPI upload step because
twine rejected dist/SHA256SUMS as an invalid distribution. The
underlying issue: pypa/gh-action-pypi-publish uploads every file
in dist/ via `twine upload dist/*`, but our bundle script wrote
installer.py + .sha256 + .buildinfo.json + SHA256SUMS into dist/
alongside the wheel + sdist. All non-{whl,tar.gz} entries trip
twine's distribution validator.
Fix: dist/ stays strict (only .whl + .tar.gz). The single-file
installer.py bundle + its sidecars + SHA256SUMS move to a new
bundle/ dir. Order also reshuffled so SHA256SUMS is computed AFTER
PyPI upload — keeps dist/ pristine through the twine call.
Also adds an explicit `rm -rf dist/__pycache__` after `python -m
build` as a belt-and-suspenders measure (some build backends leave
caches behind).
The GitHub release attachments still reference the same five
files; only their source dirs change.1 parent 9f62b5f commit 4896512
1 file changed
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | | - | |
31 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | | - | |
| 40 | + | |
34 | 41 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | | - | |
| |||
0 commit comments