Skip to main content

poetry-bumpversion

The poetry version command only updates version in pyproject.toml file. This plugin updates version in other files when poetry version <version> command is executed.

Getting Started

Prerequisites

  • poetry = ^1.2.0a1

Install

Install the plugin by poetry plugin command.

poetry plugin add poetry-bumpversion

Configure files

Say you have __version__ variable set at your_package/__init__.py file

__version__ = "0.1.0" # It MUST match the version in pyproject.toml file

Add the following to your pyproject.toml file.

[tool.poetry_bumpversion.file."your_package/__init__.py"]

Now run poetry version patch to check if version in both pyproject.toml and your_package/__init__.py file has been updated.

You can add more files following the steps above. You can also fine define search and replace terms to be more precise

[tool.poetry_bumpversion.file."your_package/__init__.py"]
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

License

This project is licensed under MIT License - see the LICENSE file for details.

Metadata

Release files for poetry-bumpversion 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-bumpversion 0.1.0
File Size Uploaded
poetry-bumpversion-0.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-bumpversion 0.1.0
File Interpreter ABI Platform
poetry_bumpversion-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / poetry-bumpversion-0.1.0.tar.gz

Download URL poetry-bumpversion-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c71bd735197ce107cfb72ca527b21dab2181d31632812b8cb16fe8f918cbc796
BLAKE2b-256 checksum
How to use checksums
df37e933b1655e4f880bd402559754df4f9cc41da0e1e47295f64b9405673ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0a1 CPython/3.8.10 Linux/5.13.0-1022-azure

Release files / poetry_bumpversion-0.1.0-py3-none-any.whl

Download URL poetry_bumpversion-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
976f66e8fc78d5954186ba47c0e071da5ca16fb9c586ed4e024fb5764f6ae210
BLAKE2b-256 checksum
How to use checksums
10ac53c21adafad353b15a7f820540fe5505e61cbba0d2df620cef96782e753b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0a1 CPython/3.8.10 Linux/5.13.0-1022-azure

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page