Skip to content

Commit

Permalink
Fix bump_version.py to find new version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Dec 26, 2022
1 parent 314bfc6 commit 55830a0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions release_tools/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,26 @@
VERSION_PY_PATH: {r"^__version__ *= *\"{old_version->new_version}\""},
"action.yml": {
(
r"^ description: \'Python Version specifier \(PEP440\) - e\.g\."
r' "{old_version->new_version}"'
r"^ description: \'Version of Darker to use, e\.g\."
r' "~={old_version->new_version}"'
),
r'^ default: "{old_version->new_version}"',
(
r"^ description: \'Version of Darker to use, e\.g\."
r' "~=.*?", "{old_version->new_version}"'
),
r'^ default: "~={old_version->new_version}"',
(
r"^ uses: akaihola/darker/.github/actions/commit-range"
r"@{old_version->new_version}"
),
},
"README.rst": {
r"^ pip install --upgrade darker~={old_version->new_version}",
r"^ conda install -c conda-forge darker~={old_version->new_version} isort",
r"^ rev: {old_version->new_version}",
r"^ rev: {old_version->new_version}",
r"^ - uses: akaihola/darker@{old_version->new_version}",
r'^ version: "{old_version->new_version}"',
r'^ version: "~={old_version->new_version}"',
r"label=release%20{any_version->next_version}",
(
r"^\.\. \|next-milestone\| image::"
Expand Down

0 comments on commit 55830a0

Please sign in to comment.