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.
Release files for gitflow-pyproject-version-bumper 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitflow_pyproject_version_bumper-0.1.4.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitflow_pyproject_version_bumper-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / gitflow_pyproject_version_bumper-0.1.4.tar.gz
| Download URL | gitflow_pyproject_version_bumper-0.1.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fe61c9dfec5d54ec522870713d6168b7534ae3a5c72d5a9b4bfac1c2fe6e38e
|
|
BLAKE2b-256 checksum How to use checksums |
f2a44412559dbbd967157d0bad9f38ae65ede747f1aa36ff6399bfe54790d7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.17 Linux/5.19.0-46-generic
|
Release files / gitflow_pyproject_version_bumper-0.1.4-py3-none-any.whl
| Download URL | gitflow_pyproject_version_bumper-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35b872eeda574a0bcf5a244db4fa017c125d53d896cf96838a8950423ba91cbb
|
|
BLAKE2b-256 checksum How to use checksums |
7a2e6a9eaa5a34d6c235fb01b1c3c082c3aec6a30422608dab8c1a1b80eeea6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.17 Linux/5.19.0-46-generic
|