Skip to content

Commit d339007

Browse files
committed
Moved configuration to pyproject.toml
1 parent 11c5609 commit d339007

File tree

2 files changed

+30
-23
lines changed

2 files changed

+30
-23
lines changed

pyproject.toml

+25
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,28 @@ order-by-type = true
129129

130130
[tool.ruff.pydocstyle]
131131
convention = "google"
132+
133+
[tool.bumpversion]
134+
current_version = "0.1.0"
135+
commit = true
136+
commit_args = "--no-verify"
137+
tag = true
138+
tag_name = "{new_version}"
139+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.dev(?P<dev>\\d+))?"
140+
serialize =[
141+
"{major}.{minor}.{patch}.dev{dev}",
142+
"{major}.{minor}.{patch}"
143+
]
144+
message = "Version updated from {current_version} to {new_version}"
145+
146+
[[tool.bumpversion.files]]
147+
filename = "bumpversion/__init__.py"
148+
149+
[[tool.bumpversion.files]]
150+
filename = "CHANGELOG.md"
151+
search = "Unreleased"
152+
153+
[[tool.bumpversion.files]]
154+
filename = "CHANGELOG.md"
155+
search = "{current_version}...HEAD"
156+
replace = "{current_version}...{new_version}"

setup.cfg

+5-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
2-
name = bump_version
3-
version = attr:bump_version.__version__
2+
name = bumpversion
3+
version = attr:bumpversion.__version__
44
description = Version bump your Python project
55
url = https://github.com/callowayproject/bump-my-version
66
author = Corey Oordt
@@ -12,7 +12,7 @@ classifiers =
1212
Programming Language :: Python :: 3.9
1313
long_description = file:README.md
1414
long_description_content_type = text/markdown
15-
keywords = bump_version
15+
keywords = bumpversion
1616

1717
[options]
1818
zip_safe = False
@@ -29,25 +29,7 @@ exclude =
2929
[darglint]
3030
ignore = DAR402
3131

32-
[bumpversion]
33-
current_version = 0.1.0
34-
commit = True
35-
commit_args = --no-verify
36-
tag = True
37-
tag_name = {new_version}
38-
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\+[-_\w]+?\.(?P<dev>\d+))?
39-
serialize =
40-
{major}.{minor}.{patch}+{$BRANCH_NAME}.{dev}
41-
{major}.{minor}.{patch}
42-
message = Version updated from {current_version} to {new_version}
43-
44-
[bumpversion:file(version heading):CHANGELOG.md]
45-
search = Unreleased
46-
47-
[bumpversion:file(previous version):CHANGELOG.md]
48-
search = {current_version}...HEAD
49-
replace = {current_version}...{new_version}
50-
5132
[options.entry_points]
5233
console_scripts =
53-
bump-my-version = bump_version.cli:cli
34+
bump-my-version = bumpversion.cli:cli
35+
bumpversion = bumpversion.cli:cli

0 commit comments

Comments
 (0)