Skip to main content

Automatic pyproject.toml based app version bumper

Project description

python version version

gitflow-pyproject-version-bumper

A git hook to automatically update the application version in pyproject.toml when a release is started using gitflow.

Installation

From PyPi:

pip3 install gitflow-pyproject-version-bumper
python3 -m gitflow_pyproject_version_bumper install

If you want to install it from sources, try this:

python3 -m pip install poetry
python3 -m pip install .
python3 -m gitflow_pyproject_version_bumper install

Install options:

  --force               overwrite hook if it exists
  --commit-message-template COMMIT_MESSAGE_TEMPLATE
                        commit message when updating the version. 
                        Default: Version bumped to {version}

{version} - placeholder for the new version.

Usage

Just start a release, as you usually do: git flow release start 1.2.3

That's it. The app version in pyproject.toml has already been updated, and the change has been committed.

Project details


Download files

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

Source Distribution

Built Distribution

File details

Details for the file gitflow_pyproject_version_bumper-0.1.4.tar.gz.

File metadata

File hashes

Hashes for gitflow_pyproject_version_bumper-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9fe61c9dfec5d54ec522870713d6168b7534ae3a5c72d5a9b4bfac1c2fe6e38e
MD5 d7f95999e1adf8de45c2d3894845deaa
BLAKE2b-256 f2a44412559dbbd967157d0bad9f38ae65ede747f1aa36ff6399bfe54790d7bc

See more details on using hashes here.

File details

Details for the file gitflow_pyproject_version_bumper-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gitflow_pyproject_version_bumper-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 35b872eeda574a0bcf5a244db4fa017c125d53d896cf96838a8950423ba91cbb
MD5 d5db80b518a70a353f0c17ce55b96c98
BLAKE2b-256 7a2e6a9eaa5a34d6c235fb01b1c3c082c3aec6a30422608dab8c1a1b80eeea6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page