-
Update dependencies:
poetry update
-
Run Code Quality Checks: Ensure all linting and tests pass.
# Run all tests and linters poetry run pytest poetry run ruff check incant poetry run mypy . poetry run bandit -r incant/ poetry run typos
-
Update
pyproject.toml: Update theversionfield inpyproject.toml.# Example for 0.5 poetry version 0.5 -
Update
debian/changelog: Add a new entry for the release.# Use dch (devscripts) dch -v 0.5 -D unstable "New upstream release."
Note: Ensure the version matches
pyproject.toml.
-
Commit changes:
git add pyproject.toml debian/changelog poetry.lock git commit -m "Release 0.5" -
Tag the release:
git tag -a v0.5 -m "Release 0.5"
-
Build Python Package:
poetry build
-
Build Debian Package:
dpkg-buildpackage -us -uc
Verify the built packages in the parent directory.
-
Push to Git:
git push origin master --tags
-
Publish to PyPI:
poetry publish
-
Publish to Debian:
- Push to Salsa:
git push salsa master --tags - Upload package
- Push to Salsa: