PyPI rejects 0.13.9: wheel filename not normalized (Python 3.7 build)
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, python
- Ambito
- build-system, release
Direzione di ricerca
Read the Deploy job configuration and the package version metadata; the issue identifies the Python 3.7 build step using setup.py sdist bdist_wheel and recommends building distributions on modern Python with python -m build. Check the linked pull request #83 for work already underway. Done means the release uses version 0.13.10 and produces normalized distribution filenames while retaining Python 3.7 for installation and testing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
After #81 moved publishing to PyPI trusted publishing, the Deploy job on master (run 38296026940) authenticated successfully, but PyPI rejected the upload:
400 Filename 'OpenFisca_Tools-0.13.9-py3-none-any.whl' should contain the normalized project name 'openfisca_tools', not 'OpenFisca_Tools'.
PyPI now requires distribution filenames to use the normalized project name (PEP 625 / the binary distribution format spec). The Deploy job builds on Python 3.7 with python setup.py sdist bdist_wheel; the newest setuptools available on 3.7 predates filename normalization, so it produces OpenFisca_Tools-… and OpenFisca-Tools-….tar.gz.
Consequences
- 0.13.9 never reached PyPI (latest there is still 0.13.8, from 2022).
- The run had already pushed tag
0.13.9(at 2ff7ac2), so re-running with the same version would fail at the tag step.
Fix
Keep Python 3.7 for installing and testing (the package pins numpy<1.21), but build the distributions on a modern Python with python -m build, which writes normalized filenames. Bump to 0.13.10 so the release gets a fresh tag.
🤖 Generated with Claude Code
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 1
- Merge medio
- 5h 40m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/openfisca-tools
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
Partial formula executionApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
PolicyEngine/openfisca-tools#65 · 4 commenti ·
Tutte le issue di PolicyEngine/openfisca-tools
Issue simili
-
effort: low prio: low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
digitalfabrik/integreat-cms#4616 ·
I maintainer di solito rispondono entro 5 giorni
-
bug difficulty:2 good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
MakazhanAlpamys/Soup#1865 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
FinanceFlash/unvibecode#233 ·
I maintainer di solito rispondono entro 1 giorno
-
area: agents area: docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
openapi/gknowledge#23 ·
-
useless-suppression reported for deprecated-* messages that should be exemptForse già presa @adityasinha-ghub l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
pylint-dev/pylint#11656 ·
I maintainer di solito rispondono entro 1 giorno