Skip to content

Commit a575893

Browse files
committed
chore: Configure bump-my-version
1 parent cac5d9e commit a575893

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

tools/schemacode/pyproject.toml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,25 @@ source = [
3939
[tool.coverage.run]
4040
parallel = true
4141

42-
[tool.bumpver]
42+
[tool.bumpversion]
4343
current_version = "1.0.3-dev"
44-
version_pattern = "MAJOR.MINOR.PATCH[-TAG]"
45-
commit = false
44+
parse = """(?x)
45+
(?P<major>[0-9]+)
46+
\\.(?P<minor>[0-9]+)
47+
\\.(?P<patch>[0-9]+)
48+
(?:-(?P<pre_label>dev))?
49+
"""
50+
serialize = ["{major}.{minor}.{patch}-{pre_label}", "{major}.{minor}.{patch}"]
51+
commit = true
52+
message = "chore: Bump schema package to {new_version}"
53+
# Use --tag on releases
54+
tag = false
55+
tag_name = "schema-{new_version}"
56+
tag_message = "Schema release {new_version}"
4657

47-
[tool.bumpver.file_patterns]
48-
"src/bidsschematools/data/schema/SCHEMA_VERSION" = ['{version}']
58+
[tool.bumpversion.parts.pre_label]
59+
values = ["dev", "final"]
60+
optional_value = "final"
61+
62+
[[tool.bumpversion.files]]
63+
filename = "../../src/schema/SCHEMA_VERSION"

0 commit comments

Comments
 (0)