-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from MannLabs/add_bump2version
Replace bumpversion with bump-my-version
- Loading branch information
Showing
10 changed files
with
92 additions
and
40 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,61 @@ | ||
[tool.bumpversion] | ||
current_version = "1.9.2" | ||
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_l: pre-release label | ||
(?P<pre_n>0|[1-9]\\d*) # pre_n: 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 = "Bump version: {current_version} → {new_version}" | ||
commit_args = "" | ||
setup_hooks = [] | ||
pre_commit_hooks = [] | ||
post_commit_hooks = [] | ||
|
||
[tool.bumpversion.parts.pre_l] | ||
# 'final' is just a dummy, but required to have the versioning compatible with the reusable alphashared workflow | ||
values = ["dev", "final"] | ||
optional_value = "final" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./alphadia/__init__.py" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./gui/src/main/modules/profile.js" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./gui/package.json" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./release/macos/info.plist" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./release/linux/control" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./release/macos/build_package_macos.sh" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./release/macos/distribution.xml" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./release/windows/alphadia_innoinstaller.iss" |
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,24 @@ | ||
# Bump the version for releases | ||
# Requires a .bumpversion.toml file in the root of the repository | ||
name: Bump version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump_type: | ||
description: 'Bump type' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- prerelease | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
bump-version: | ||
uses: MannLabs/alphashared/.github/workflows/bump_version.yml@v1 | ||
secrets: inherit | ||
with: | ||
bump_type: ${{inputs.bump_type}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,3 @@ repos: | |
- id: ruff-format | ||
- id: ruff | ||
args: [ '--fix' ] | ||
|
||
exclude: .bumpversion.cfg |
This file was deleted.
Oops, something went wrong.
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
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
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