This project uses automated workflows for publishing to PyPI and Conda-Forge.
-
Update Version:
- Edit
pyproject.tomland bump the version (e.g., from0.3.0to0.4.0). - (Optional but recommended) Update
CHANGELOG.mdor release notes.
- Edit
-
Commit and Push:
git add pyproject.toml git commit -m "Bump version to 0.4.0" git push origin main -
Draft a Release on GitHub:
- Go to the repository on GitHub.
- Click Releases > Draft a new release.
- Tag: Create a new tag matching the version, e.g.,
v0.4.0. - Target:
main. - Description: Add your release notes.
- Click Publish release.
-
Automated Actions:
- PyPI: The GitHub release triggers the
.github/workflows/pypi-publish.ymlworkflow, which builds and uploads the package to PyPI. - Conda-Forge: The
regro-cf-autotick-botdetects the new version on PyPI and automatically opens a Pull Request on the dsm2dtm-feedstock repository.
- PyPI: The GitHub release triggers the
-
Final Step (Conda):
- Go to the
dsm2dtm-feedstockPR. - Verify the checkmarks (green builds).
- Merge the PR.
- The package will be available on
conda-forgeshortly.
- Go to the
To verify the build works locally before releasing:
uv run python -m build
twine check dist/*