Skip to content

Commit

Permalink
Fix bump for more than just format-jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Apr 19, 2021
1 parent 0f46131 commit f813fce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.12.6 (2021-04-19)

* Fixed:
* The previous `bump` fix only applied to `format-jinja`. It has now been
fixed for other scenarios as well.

## v0.12.5 (2021-04-18)

* Fixed:
Expand Down
2 changes: 1 addition & 1 deletion poetry_dynamic_versioning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _get_version(config: Mapping) -> Tuple[Version, str]:
dirty=config["dirty"],
format=config["format"],
style=style,
bump=config["bump"],
bump=config["bump"] and version.distance > 0,
tagged_metadata=config["tagged-metadata"],
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-dynamic-versioning"
version = "0.12.5"
version = "0.12.6"
description = "Plugin for Poetry to enable dynamic versioning based on VCS tags"
license = "MIT"
authors = ["Matthew T. Kennerly <mtkennerly@gmail.com>"]
Expand Down

0 comments on commit f813fce

Please sign in to comment.