Skip to content

Commit

Permalink
Configure bump-my-version
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB committed Feb 6, 2024
1 parent 86c9638 commit 21ce348
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
[build-system]
requires = ["setuptools", "cython", "numpy"]

[tool.bumpversion]
current_version = "1.7.4"
allow_dirty = false
commit = false
tag = false
parse = """(?x)
(?P<major>[0-9]+)
\\.(?P<minor>[0-9]+)
\\.(?P<patch>[0-9]+)
(?:
(?P<pre_label>a|b|rc|stable)
(?P<pre_number>[0-9]+)?
)?
"""
serialize = [
"{major}.{minor}.{patch}{pre_label}{pre_number}",
"{major}.{minor}.{patch}",
]
message = "Bump version: {current_version} -> {new_version}"
tag_message = "Bump version: {current_version} -> {new_version}"
sign_tags = true

[tool.bumpversion.parts.pre_label]
optional_value = "stable"
values = [
"a",
"b",
"rc",
"stable",
]

[tool.bumpversion.parts.pre_number]
first_value = "1"

[[tool.bumpversion.files]]
filename = "splipy/__init__.py"
9 changes: 0 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[bumpversion]
current_version = 1.7.4
commit = True
tag = True

[yapf]
column_limit = 100
dedent_closing_brackets = False
Expand All @@ -12,7 +7,3 @@ python_files = *_test.py

[run]
omit = *_test.py

[bumpversion:file:setup.py]

[bumpversion:file:splipy/__init__.py]

0 comments on commit 21ce348

Please sign in to comment.