Skip to content

Commit 7c5f03d

Browse files
authored
Merge pull request #397 from python-openapi/feature/switch-to-tbump
Switch to tbump
2 parents 5c6ce73 + 0ca6aed commit 7c5f03d

File tree

3 files changed

+134
-39
lines changed

3 files changed

+134
-39
lines changed

.bumpversion.cfg

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

poetry.lock

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

pyproject.toml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ lazy-object-proxy = "^1.7.1"
6262
[tool.poetry.extras]
6363
docs = ["sphinx", "sphinx-immaterial"]
6464

65-
[tool.poetry.dev-dependencies]
65+
[tool.poetry.scripts]
66+
openapi-spec-validator = "openapi_spec_validator.__main__:main"
67+
68+
[tool.poetry.group.docs.dependencies]
69+
sphinx = ">=5.3,<8.0"
70+
sphinx-immaterial = ">=0.11,<0.13"
71+
72+
[tool.poetry.group.dev.dependencies]
73+
tbump = "^6.11.0"
6674
pre-commit = "*"
6775
pytest = "^8.2.2"
6876
pytest-flake8 = "=1.3.0"
@@ -75,14 +83,6 @@ flynt = "^1.0"
7583
deptry = "^0.23.0"
7684
flake8 = "^5.0.4"
7785
pyflakes = "^2.5.0"
78-
bump2version = "^1.0.1"
79-
80-
[tool.poetry.scripts]
81-
openapi-spec-validator = "openapi_spec_validator.__main__:main"
82-
83-
[tool.poetry.group.docs.dependencies]
84-
sphinx = ">=5.3,<8.0"
85-
sphinx-immaterial = ">=0.11,<0.13"
8686

8787
[tool.pytest.ini_options]
8888
addopts = """
@@ -105,3 +105,30 @@ line-length = 79
105105
profile = "black"
106106
line_length = 79
107107
force_single_line = true
108+
109+
[tool.tbump]
110+
111+
[tool.tbump.git]
112+
message_template = "Version {new_version}"
113+
tag_template = "{new_version}"
114+
115+
[tool.tbump.version]
116+
current = "0.7.2"
117+
regex = '''
118+
(?P<major>\d+)
119+
\.
120+
(?P<minor>\d+)
121+
\.
122+
(?P<patch>\d+)
123+
(?P<prerelease>[a-z]+\d+)?
124+
'''
125+
126+
[[tool.tbump.file]]
127+
src = "openapi_spec_validator/__init__.py"
128+
129+
[[tool.tbump.file]]
130+
src = "Dockerfile"
131+
132+
[[tool.tbump.file]]
133+
src = "pyproject.toml"
134+
search = 'version = "{current_version}"'

0 commit comments

Comments
 (0)