Registry / devops / poetry-bumpversion

poetry-bumpversion

JSON →
library0.3.3pypypiunverified

A Poetry plugin that automatically updates version strings in __init__.py and other files during poetry version bump. Current version 0.3.3, released 2024-03-21. Maintained irregularly, integrates directly with Poetry's version command.

pip install poetry-bumpversion
INSTALL
IMPORT
SIG · POETRY-BUMPVERSION
P
poetry-bumpversion
devopspythonv0.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Configure file patterns and run bumpversion command after version bump.

# In pyproject.toml, add: # [tool.poetry_bumpversion] # file_patterns = ["**/__init__.py"] # Then run: # poetry version patch && poetry bumpversion
Debug
Known issues
gotchaThe plugin is automatically triggered after 'poetry version' but only if installed as a plugin (e.g., poetry self add). Pip-installing globally may not auto-trigger.
fix
Install with 'poetry self add poetry-bumpversion' to ensure auto-trigger on 'poetry version'.
affects: <=0.3.3
deprecatedThe configuration key 'tool.poetry_bumpversion.version_regex' is deprecated. Use 'version_pattern' instead.
fix
Replace 'version_regex' with 'version_pattern' in pyproject.toml.
affects: <=0.3.3
breakingDefault file_patterns changed from ['**/__init__.py'] to empty list in v0.3.0. If you rely on default, bumpversion won't touch any files.
fix
Explicitly set file_patterns in pyproject.toml: [tool.poetry_bumpversion] file_patterns = ["**/__init__.py"]
affects: >=0.3.0
gotchaThe plugin only supports simple version strings (e.g., __version__ = "1.2.3"). Complex patterns or dynamic versioning may break.
fix
Ensure version assignment is a simple string literal.
affects: <=0.3.3
Errors
Common errors & fixes
poetry bumpversion not found
Plugin not installed as a Poetry plugin (poetry self add) or not installed at all.
fix
Run: poetry self add poetry-bumpversion
No files matched pattern '**/__init__.py'
Default file_patterns empty since v0.3.0, or no __init__.py found.
fix
Set file_patterns in pyproject.toml under [tool.poetry_bumpversion].
Version pattern not found in any file
Files don't contain a version string matching the pattern (default: __version__ = ...).
fix
Add or adjust version_pattern in config, or ensure files contain the expected pattern.
Upgrade
Version history
0.3.3latest on PyPI · released Jan 7, 2025
Audit
Dependencies
poetryoptionalPlugin only works within Poetry environment
Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

poetry-bumpversion — pip install poetry-bumpversion · libregistry