poetry plugin to bump version
Project description
poetry-plugin-bump
A plugin add command poetry command poetry bump patch/minor/major
.
Just like npm version ...
, It will bump version, commit code and create git tag.
poetry bump patch
will replace previous commands
poetry version ...
git add pyproject.toml
git commit -m '...'
git tag ...
Installation
supported version:
poetry version | plugin version |
---|---|
>=1.2.0,<1.5.0 | <0.1.0 |
>=1.5.0 | >=0.1.0 |
Installation requires poetry 1.2.0+. To install this plugin run:
poetry self add poetry-plugin-bump
If your poetry is installed with pipx
:
pipx inject poetry poetry-plugin-bump
For other methods of installing plugins see the poetry documentation.
Usage
Configuration is optional, but you can define config in pyproject.toml
default config:
[tool.poetry-plugin-bump]
commit_msg = 'bump: v{version}'
tag_name = 'v{version}'
this will define bump commit message and tag name.
License
MIT licensed, inspired by https://github.com/keattang/poetry-exec-plugin
Project details
Release history Release notifications | RSS feed
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
Hashes for poetry_plugin_bump-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44c040f458d5c1b744c8ffa679f5ad9cfa6d6b5a82b73a68a80acfc981d22c3 |
|
MD5 | c8f0f03366e43bc62c196a225be1eda1 |
|
BLAKE2b-256 | 603e5961df62ca24b3838699bd26213108f68a4baaf85ee88ee6a84ea1c4f6c1 |