Skip to content

Commit 3ac6387

Browse files
committed
switched to using bump2version.cfg
1 parent 3444424 commit 3ac6387

2 files changed

Lines changed: 17 additions & 15 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[bumpversion]
2+
current_version = {{ cookiecutter.version }}
3+
4+
[comment]
5+
comment = The contents of this file cannot be merged with that of setup.cfg until https://github.com/c4urself/bump2version/issues/185 is resolved
6+
7+
[bumpversion:file:{{ cookiecutter.package_name }}/__version__.py]
8+
search = __version__ = "{current_version}"
9+
replace = __version__ = "{new_version}"
10+
11+
[bumpversion:file:setup.cfg]
12+
search = version = {current_version}
13+
replace = version = {new_version}
14+
15+
[bumpversion:file:CITATION.cff]
16+
search = version: "{current_version}"
17+
replace = version: "{new_version}"

{{cookiecutter.project_name}}/setup.cfg

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
# - https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
44
# - https://www.python.org/dev/peps/pep-0314/
55

6-
[bumpversion]
7-
current_version = {{ cookiecutter.version }}
8-
9-
[bumpversion:file:{{ cookiecutter.package_name }}/__version__.py]
10-
search = __version__ = "{current_version}"
11-
replace = __version__ = "{new_version}"
12-
13-
[bumpversion:file:setup.cfg]
14-
search = version = {current_version}
15-
replace = version = {new_version}
16-
17-
[bumpversion:file:CITATION.cff]
18-
search = version: "{current_version}"
19-
replace = version: "{new_version}"
20-
216
[metadata]
227
author = {{ cookiecutter.full_name }}
238
author_email = {{ cookiecutter.email }}

0 commit comments

Comments
 (0)