Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

An antotagger for git.

Project description

tagit

pypi tag

Automation of git tagging

Why?

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)

Snapshot

tagit

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.7
Filename, size File type Python version Upload date Hashes
Filename, size tagit-0.0.7-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tagit-0.0.7.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page