Skip to content

Commit

Permalink
build: bump the major version to ensure that prereleases are always s…
Browse files Browse the repository at this point in the history
…orted after existing versions
  • Loading branch information
cpcloud authored and gforsyth committed Aug 31, 2023
1 parent 3a0671c commit 6f37a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ enable = true
dirty = true
style = "pep440"
pattern = '^(?P<base>\d+(\.\d+)*)'
format-jinja = "{% if distance == 0 %}{{ base }}{% else %}{{ bump_version(base) }}.dev{{ distance }}{% endif %}"
# index=0 bumps the major version, to handle backports that occur after a breaking change commit
format-jinja = "{% if distance == 0 %}{{ base }}{% else %}{{ bump_version(base, index=0) }}.dev{{ distance }}{% endif %}"

[build-system]
requires = ["poetry-core>=1.1.0", "poetry-dynamic-versioning"]
Expand Down

0 comments on commit 6f37a06

Please sign in to comment.