Skip to content

Commit

Permalink
Move bumpversion config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Nov 18, 2024
1 parent 2a1977f commit aab94e3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .bumpversion.cfg

This file was deleted.

27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,33 @@ pulp_gem = "pulp_gem:default_app_config"
[tool.setuptools.packages.find]
where = ["."]

[tool.bumpversion]
current_version = "0.7.0.dev"
commit = false
tag = false
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
serialize = [
"{major}.{minor}.{patch}.{release}",
"{major}.{minor}.{patch}",
]

[tool.bumpversion.parts.release]
optional_value = "prod"
values = [
"dev",
"prod",
]

[[tool.bumpversion.files]]
filename = "./pulp_gem/app/__init__.py"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[[tool.bumpversion.files]]
filename = "./pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[tool.towncrier]
package = "pulp_gem"
filename = "CHANGES.md"
Expand Down

0 comments on commit aab94e3

Please sign in to comment.