Skip to content

Commit c377c0b

Browse files
committed
Fix bumpversion configuration to handle both setup.cfg and pyproject.toml
1 parent f467a99 commit c377c0b

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

setup.cfg

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
[bumpversion]
2+
current_version = 0.2.0
3+
4+
[bumpversion:file:setup.cfg]
5+
search = version = {current_version}
6+
replace = version = {new_version}
7+
8+
[bumpversion:file:pyproject.toml]
9+
search = version = "{current_version}"
10+
replace = version = "{new_version}"
11+
112
[metadata]
213
name = proxyproviders
314
version = 0.2.0
@@ -8,10 +19,10 @@ author = David Teather
819
author_email = [email protected]
920
license = MIT
1021
url = https://github.com/davidteather/proxyproviders
11-
classifiers =
12-
Programming Language :: Python :: 3
13-
License :: OSI Approved :: MIT License
14-
Operating System :: OS Independent
22+
classifiers =
23+
Programming Language :: Python :: 3
24+
License :: OSI Approved :: MIT License
25+
Operating System :: OS Independent
1526

1627
[options]
1728
packages = find:

0 commit comments

Comments
 (0)