Commit acbea55
committed
fix(cd): include LICENSE in sdist + skip-existing PyPI uploads
CD #64 (run 25943880454) successfully uploaded all 4 wheels (linux
x86_64/aarch64, macos arm64, windows x86_64) to PyPI as treemapper
1.6.1 but then 400'd on the sdist with 'License-File LICENSE does not
exist in distribution file'. Cause: maturin only ships files matching
[tool.maturin].include in the sdist tarball, and LICENSE was not in
that list. The wheel auto-embeds LICENSE via PEP 639 metadata so it
passed; the sdist did not.
- pyproject.toml: add LICENSE, README.md, CHANGELOG.md to the maturin
sdist include list. Verified locally: 'maturin sdist' now produces
a tarball that contains treemapper-1.6.1/LICENSE.
- cd.yml: set skip-existing: true on pypa/gh-action-pypi-publish so
re-running CD for v1.6.1 silently skips the already-published wheels
and only uploads the new (fixed) sdist.1 parent e0ed56a commit acbea55
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
0 commit comments