-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#11 💚 support automatic dev versioning for ci builds
- Loading branch information
1 parent
bca630d
commit 343afe7
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[tool.bumpversion] | ||
current_version = "0.1.7-dev5" | ||
parse = """(?x) | ||
(?P<major>0|[1-9]\\d*)\\. | ||
(?P<minor>0|[1-9]\\d*)\\. | ||
(?P<patch>0|[1-9]\\d*) | ||
(?: | ||
- # dash separator for pre-release section | ||
(?P<pre_l>[a-zA-Z-]+) # pre-release label | ||
(?P<pre_n>0|[1-9]\\d*) # pre-release version number | ||
)? # pre-release section is optional | ||
""" | ||
serialize = [ | ||
"{major}.{minor}.{patch}-{pre_l}{pre_n}", | ||
"{major}.{minor}.{patch}", | ||
] | ||
search = "{current_version}" | ||
replace = "{new_version}" | ||
regex = false | ||
ignore_missing_version = false | ||
ignore_missing_files = false | ||
tag = false | ||
sign_tags = false | ||
tag_name = "v{new_version}" | ||
tag_message = "Bump version: {current_version} → {new_version}" | ||
allow_dirty = false | ||
commit = true | ||
message = ":memo: Bump version: {current_version} → {new_version}" | ||
commit_args = "" | ||
setup_hooks = [] | ||
pre_commit_hooks = [] | ||
post_commit_hooks = [] | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "pyproject.toml" | ||
|
||
[tool.bumpversion.parts.pre_l] | ||
values = ["dev", "rc", "final"] | ||
optional_value = "final" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters