The publish workflow uploads a wheel that no job has installed: install it and run a small fit on Linux and macOS before the PyPI upload
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
Read .github/workflows/publish.yml, .github/actions/setup-pybnf/action.yml, pyproject.toml, and issue #1022 to identify supported Python versions and how release artifacts are built. Add a post-build job for Linux and macOS that installs the wheel from dist/ in a fresh environment, installs BioNetGen, runs the tutorial fit from outside the checkout, and saves pip freeze output. Done means the PyPI upload depends on these checks and the fit’s values match the tutorial’s source data.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
.github/workflows/publish.yml builds the sdist and wheel, runs twine check --strict, and uploads both to PyPI when a GitHub Release is published. twine check only validates the package metadata. Nothing in the workflow installs the wheel it is about to upload, and nothing requires the tests to have passed on the commit being released.
The per-PR tests do not close this gap. The setup action, .github/actions/setup-pybnf/action.yml, installs a hand-written list of dependencies and then installs PyBNF from the source tree with --no-deps. tests/test_packaging_metadata.py keeps that list in step with pyproject.toml, but no job ever lets pip work out PyBNF's dependencies the way pip install pybnf does for a user. All CI also runs on Ubuntu. The package lists macOS as supported, and no job installs or runs PyBNF there.
A PyPI upload cannot be undone. A version can be yanked but never replaced, so the last check before the upload should be made on the files being uploaded.
Suggested change: add a job to publish.yml that runs after build, and make the pypi job depend on it.
- Run it on
ubuntu-latestandmacos-latest, each with every Python version the package lists (see the Python 3.14 issue, #1022). - In a fresh virtual environment, install the wheel from
dist/with a plainpip install, so the dependencies are resolved from the wheel's own metadata. - Install BioNetGen, then run one small tutorial fit end to end with
pybnf -c, for exampleexamples/tutorial/01_logistic_growth/logistic_growth_trf.conf, and check the fitted values against the values the data were made from. Run it from a directory outside the checkout. Otherwise Python imports the source tree, not the installed wheel. - Save the output of
pip freezefrom each run as a workflow artifact. That records the exact dependency versions each release was checked against, which gives a reproducible record without committing a lock file for a library.
It would also be worth running the recovery tier (#1026) on the release commit as part of the same job, or making it a required step in the release checklist.
- Lenguaje dominante
- Python
- Estrellas
- 25
- Forks
- 25
- Merge medio
- 4 h 5 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lanl/PyBNF
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug silent-incorrectness
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
Todos los issues de lanl/PyBNF
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
software-mansion-labs/Diplomat#20 ·
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
View Counts discarded due to field name mismatchPosiblemente ocupada @rsiva0400 la tomó hoy. Abiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Model version publishes the new UK firm entity as a personPosiblemente ocupada @vahid-ahmadi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine.py#764 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
spcl/HPCAgent-Bench#264 ·
Los mantenedores suelen responder en 1 día