Metadata-Version: 2.1
Name: poetry-plugin-bump
Version: 0.1.2
Summary: poetry plugin to bump version
Home-page: https://github.com/trim21/poetry-plugin-bump
License: MIT
Author: trim21
Author-email: trim21me@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: poetry (>=1.5.0,<1.7.0)
Requires-Dist: semver (>=3.0.0,<4.0.0)
Project-URL: Repository, https://github.com/trim21/poetry-plugin-bump
Description-Content-Type: text/markdown

# 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.


```shell
poetry bump patch
```

will replace previous commands

```shell
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](https://python-poetry.org/docs/master/plugins/#the-plugin-add-command).

## Usage

Configuration is optional, but you can define config in `pyproject.toml`

default config:

```toml
[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

