Skip to content

Commit 8580d7d

Browse files
committed
migrate to bump-my-version
1 parent cb231d5 commit 8580d7d

6 files changed

Lines changed: 18 additions & 21 deletions

File tree

.bumpversion.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.bumpversion]
2+
current_version = "1.7.4"
3+
commit = true
4+
tag = true
5+
6+
[[tool.bumpversion.files]]
7+
filename = "setup.py"
8+
search = "version=\"{current_version}\""
9+
replace = "version=\"{new_version}\""
10+
11+
[[tool.bumpversion.files]]
12+
filename = "dtw/__init__.py"
13+
search = "__version__ = '{current_version}'"
14+
replace = "__version__ = '{new_version}'"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
uv.lock
22
.uv-cache/
33
.vscode/
4+
.ruff_cache/
45

56

67
# Byte-compiled / optimized / DLL files

Makefile.maintainer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ docstrings:
9494

9595
bump: changelog
9696
git commit -a -m "last before bumpversion"
97-
bumpversion patch
97+
uv run bump-my-version patch
9898
git push --tags
9999
git push
100100

maintainer/README.maintainer

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Deploying
1111
Make sure all your changes are committed (including an entry in HISTORY.rst).
1212
Then run::
1313

14-
$ bumpversion patch # possible: major / minor / patch
14+
$ uvx run bump-my-version patch # possible: major / minor / patch
1515
$ git push --follow-tags
1616
$ v=$(git tag --points-at HEAD) && gh release create $v --title $v
1717

@@ -24,12 +24,6 @@ Misc stuff
2424
Uses cibuildwheel on GH actions https://cibuildwheel.readthedocs.io/en/stable/setup/#github-actions
2525

2626

27-
Setup.cfg
28-
---------
29-
30-
Necessary because bumpversion
31-
32-
3327

3428
Poetry
3529
------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ exclude = [
109109

110110
[dependency-groups]
111111
dev = [
112-
"bump2version>=1.0.1",
112+
"bump-my-version",
113113
"pytest>=7.0.1",
114114
"pytest-cov>=7.0.0",
115115
"ipython",

setup.cfg

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)