Release pydftracer by publishing a GitHub Release from develop
When to use#
You want a new pydftracer version on PyPI. Only a published GitHub Release starts the upload of a release version. A pushed tag alone publishes nothing.
Steps#
- Make sure
developis up to date and CI passes. Release fromdevelop: earlier tags are on it. - Publish the release, which creates the tag:
gh release create vX.Y.Z --target develop --generate-notes. The GitHub page "Releases" → "Draft a new release" does the same. - Watch the "Upload Python Package" run (
.github/workflows/python-publish.yml) in the Actions tab. When it passes, the version is on PyPI.
The version comes from the git tag through setuptools-scm (see setup.py). Do not edit a version in any file. The workflow uploads with the PYPI_TOKEN secret. Check that the secret still exists after the move of the repository to the llnl-asr organization.
Evidence#
Read from the repository workflow and setup.py in a session on 2026-09-30, when the last tag was v2.0.4. Not run. A build between tags is named <last tag>.postN.dev0, a prerelease. Pushes to develop publish these builds, and a commit exactly on a tag is skipped. This corrects an earlier line here that said such builds are not published and used the old <next>.devN name. See pydftracer build names.
Also found by searching
- pushed tag v0.2.0 for pydftracer but nothing showed up on PyPI
- I want to publish a new pydftracer version, what are the steps
- how do I release pydftracer to PyPI
- gh release create --target develop --generate-notes, python-publish.yml, setuptools-scm version from tag
- I pushed a git tag for pydftracer and nothing uploaded