Skip to content

Maintaining

Notes for maintainers.

Making a new release


  • Make sure you're on the main branch, and you've pulled all recently merged changes: git pull origin main
  • Bump the version number in pyproject.toml
  • Make an entry in CHANGELOG.md
  • Commit this change: git commit -am "Bumped version number, and updated changelog."
  • Push this change directly to main: git push origin main
  • Delete everything in dist/: rm -rf dist/
  • Run python -m build, which recreates dist/
  • Tag the new release:

    • $ git tag vA.B.C
    • $ git push origin vA.B.C
  • Push to PyPI:

    (venv)$ python -m twine upload dist/*
    

  • View on PyPI: https://pypi.org/project/python-bugger/

Deleting branches

Delete the remote and local development branches:

$ git push origin -d feature_branch
$ git branch -d feature_branch

Deleting tags

$ git tag -d vA.B.C