Skip to content

Commit 0c8c3b1

Browse files
authored
Merge pull request #1046 from python-openapi/feature/tbump
Tbump
2 parents bcbcfc2 + 8f70428 commit 0c8c3b1

File tree

4 files changed

+123
-39
lines changed

4 files changed

+123
-39
lines changed

.bumpversion.cfg

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

Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,3 @@ docs-cleanup:
3838
@rm -rf docs_build
3939

4040
cleanup: dist-cleanup test-cleanup
41-
42-
release/patch:
43-
@bump2version patch
44-
45-
release/minor:
46-
@bump2version minor
47-
48-
release/major:
49-
@bump2version major

poetry.lock

Lines changed: 99 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ httpx = ">=0.24,<0.29"
111111
deptry = ">=0.11,<0.21"
112112
aiohttp = "^3.8.4"
113113
pytest-aiohttp = "^1.1.0"
114-
bump2version = "^1.0.1"
115114
pyflakes = "^3.1.0"
116115
fastapi = ">=0.111,<0.125"
116+
tbump = "^6.11.0"
117117

118118
[tool.poetry.group.docs.dependencies]
119119
mkdocs = "^1.6.1"
@@ -146,3 +146,26 @@ line-length = 79
146146
profile = "black"
147147
line_length = 79
148148
force_single_line = true
149+
150+
[tool.tbump]
151+
github_url = "https://github.com/python-openapi/openapi-core"
152+
153+
[tool.tbump.version]
154+
current = "0.19.5"
155+
regex = '''
156+
(?P<major>\d+)
157+
\.
158+
(?P<minor>\d+)
159+
\.
160+
(?P<patch>\d+)
161+
'''
162+
163+
[tool.tbump.git]
164+
message_template = "Version {new_version}"
165+
tag_template = "{new_version}"
166+
167+
[[tool.tbump.file]]
168+
src = "openapi_core/__init__.py"
169+
170+
[[tool.tbump.file]]
171+
src = "pyproject.toml"

0 commit comments

Comments
 (0)