Skip to main content

An antotagger for git.

Project description


pypi tag

Automation of git tagging


While publishing a python package, we need to:

  • Check if CHANGELOG has been updated,
  • Check if version in source file has been updated,
  • Check if version in meta file (e.g. pyproject.toml) has been updated
  • If not, update it, commit and push the changes, and then
  • Build and publish the new version

Application senario

It is applicable only when you are:

  • Using strict semantic versioning
  • Using pure version as tag label
  • Publishing your packaging using poetry

What it does:

  • In all modes:
    • Checks if there is any changes after last tagging, if so, skip.
  • In manual version mode (you specify a tag while tagging):
    • Checks if right version has been placed in pyproject.toml in manual version mode.
    • Checks if the version has been mentioned in CHANGELOG file in manual version mode.
    • Checks if the version has been updated in source code.
  • In auto version mode (version auto-increments)
    • Checks if the new version has been mentioned in CHANGELOG
    • Updates version in pyproject.toml
    • Updates version in source code
    • Extra commands before changed being committed and pushed
    • Commits and pushes the changes
  • Then, in all modes:
    • Tags the version (git tag <version>)
    • Pushs the tag to the remote (git push --tags)
    • Builds and publishs the release (poetry publish --build)



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tagit, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size tagit-0.0.8-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tagit-0.0.8.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page