diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index e8e01e3d..00000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,19 +0,0 @@ -[bumpversion] -current_version = 0.7.0.dev -commit = False -tag = False -parse = (?P\d+)\.(?P\d+)\.(1b)?(?P\d+)(\.(?P[a-z]+))? -serialize = - {major}.{minor}.{patch}.{release} - {major}.{minor}.{patch} - -[bumpversion:part:release] -optional_value = prod -first_value = dev -values = - dev - prod - -[bumpversion:file:./pulp_gem/app/__init__.py] - -[bumpversion:file:./setup.py] diff --git a/pyproject.toml b/pyproject.toml index 6bfa23ec..c86a7d54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\.(?P[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"