Skip to content

Commit ec2abec

Browse files
committed
Onboard bumpver for future version bumps
1 parent 219209e commit ec2abec

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ dev = [
4343
"types-requests",
4444
"voluptuous-stubs",
4545
"pyyaml",
46+
"bumpver"
4647

4748
]
4849
[project.urls]
@@ -158,3 +159,27 @@ disable_error_code = ["attr-defined", "import"]
158159

159160
[tool.pytest.ini_options]
160161
pythonpath = [".", "tests"]
162+
163+
[tool.bumpver]
164+
current_version = "0.1.11"
165+
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
166+
commit_message = "bump version {old_version} -> {new_version}"
167+
tag_message = "{new_version}"
168+
tag_scope = "default"
169+
pre_commit_hook = ""
170+
post_commit_hook = ""
171+
commit = true
172+
tag = true
173+
push = true
174+
175+
[tool.bumpver.file_patterns]
176+
"pyproject.toml" = [
177+
'current_version = "{version}"',
178+
'version = "{version}"',
179+
]
180+
"custom_components/feedparser/manifest.json" = [
181+
'version": "{version}"',
182+
]
183+
"custom_components/feedparser/sensor.py" = [
184+
'__version__ = "{version}"',
185+
]

0 commit comments

Comments
 (0)