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
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 56/100
Research direction
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.
Written by the indexing model from the issue text.
Description
.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.
- Dominant language
- Python
- Stars
- 25
- Forks
- 25
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/PyBNF
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug silent-incorrectness
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day