Publishing is done by .github/workflows/publish.yml when a v* tag is pushed.
Nothing is uploaded by hand: the wheels with the compiled engine only come out
of that workflow's matrix, and a manual upload leaves users without them.
- Binary wheels, one
cp310-abi3per platform, with the GSL bundled (cibuildwheel), smoke-tested on cp310–cp315. abi3 serves every CPython from 3.10 on, later ones included (BUG-0031); when a new CPython goes final, add it to[tool.cibuildwheel] buildso the wheel is tested on it (bugs/BUG-0031-repro/repro.pykeeps the list of final versions). Not covered: free-threaded builds and 32-bit Windows, which get the pure wheel: Linux x86_64 and aarch64, macOS arm64 and x86_64 (macosx_11_0, built on macos-15 and macos-15-intel), Windows AMD64.tools/check_macos_minos.pystops the build if a macOS binary asks for a newer system than its tag. - Pure-Python wheel
py3-none-any(built withDRVARMA_NO_ENGINE=1), the fallback for any other platform. It stays: every platform gets drvarma, and the port warns when it computes (BUG-0005). - sdist, which ships
csrc/and builds the engine where GSL is present.
All three carry the bug register (tools/sync_material.py copies it into
src/drvarma/material/; sima serves it as sima://engine-defects). The
workflow runs that step itself.
Upload is by PyPI Trusted Publishing (OIDC, environment pypi). The
publisher is registered against the file name publish.yml: renaming the
workflow breaks the upload.
On a branch release-drvarma-X.Y.Z:
pyproject.toml→[project] version = "X.Y.Z". It is the only place:drvarma.__version__is read from the installed metadata.CHANGELOG.md→ a section## X.Y.Z — unreleasedsaying what changes for the user.
The C engine (atsw-gui engines/drvarma) and this port are the same engine:
nothing is released that the C does not reproduce.
-
Build the C at the commit the release is homologated against and run
ATSW_GUI=/path/to/atsw-gui pytest tests/test_c_oracle.pywith no test skipped: the C and the port give every recorded number.
-
If the C moved since
tests/data/homologation.jsonwas written, bring the change to the port first and update the record (docs/HOMOLOGATION.md).
Run the workflow by hand on the branch. It builds and smoke-tests everything; the publish job only runs on a tag, so it is skipped:
gh workflow run publish.yml -R davidesg/drvarma-python --ref release-drvarma-X.Y.ZWhen drvarma is released together with other ATSW packages, also run
art-python's preflight-atsw.yml with origen=repos and the release branches.
When the release is approved, a last commit on the PR replaces unreleased
with the date (## X.Y.Z — YYYY-MM-DD). Then merge, and wait for CI on master.
A lightweight tag vX.Y.Z on the merge commit of the release PR:
gh api repos/davidesg/drvarma-python/git/refs \
-f ref=refs/tags/vX.Y.Z -f sha=<merge commit sha>The tag starts publish.yml, which builds again and publishes.
- If the publish job fails before uploading with a Sigstore/Rekor error (502),
wait about ten minutes and rerun it:
gh run rerun <id> --failed.skip-existing: truemakes the rerun safe if part was already uploaded. - Check PyPI has every file:
https://pypi.org/project/drvarma/X.Y.Z/#files. - A clean install picks the binary wheel:
python3 -m venv /tmp/t && /tmp/t/bin/pip install drvarma==X.Y.Z /tmp/t/bin/python -c "import drvarma; print(drvarma.__version__)"
Packages are tagged in dependency order, each one only once its dependencies are on PyPI, because the smoke tests install from PyPI: fue → drvarma → drvec → sima → art / pyfug / drtran → atsw.
For 0.4.0: fue 0.1.23 first. The ladder asks fue's cast for the
polynomial without its MA flip (cast_us_py(flip=False), BUG-0030), which is
in fue's master and not in 0.1.22. Before tagging drvarma: publish fue
0.1.23, raise the requirement in pyproject.toml to fue>=0.1.23, and
remove the temporary step of .github/workflows/ci.yml that takes
fue/cast_us.py from fue's master.
After the last tag, run preflight-atsw.yml with origen=pypi and the suites.
For a few minutes after a publish, some runners do not yet see the new version
on the index: rerun the failed jobs.
- Project URLs:
[project.urls]points at this repo,github.com/davidesg/drvarma-python(the C engine lives indavidesg/drvarma). - Optional extras:
drvarma[c-engine](GSL build),drvarma[plots](matplotlib + pyfug),drvarma[forecast-report](jinja2),drvarma[test]. - Local build, only to inspect the artifacts (never to upload):
python3 tools/sync_material.py && DRVARMA_NO_ENGINE=1 python -m build, thentwine check dist/*(twine ≥ 6.1 for the Metadata 2.4 fields).