Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 1.39 KB

File metadata and controls

78 lines (62 loc) · 1.39 KB

Release Checklist

1. Pre-Release Checks

  • 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

2. Version Bump

  • Update pyproject.toml: Update the version field in pyproject.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.

3. Commit and Tag

  • 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"

4. Build and Verify

  • Build Python Package:

    poetry build
  • Build Debian Package:

    dpkg-buildpackage -us -uc

    Verify the built packages in the parent directory.

5. Publish

  • 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