Skip to content

Commit 3444424

Browse files
committed
added bump2version dep and config; refs #192
1 parent d7bcc36 commit 3444424

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

{{cookiecutter.project_name}}/setup.cfg

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
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}"
620

721
[metadata]
822
author = {{ cookiecutter.full_name }}
@@ -32,23 +46,21 @@ project_urls =
3246
url = {{ cookiecutter.repository }}
3347
version = {{ cookiecutter.version }}
3448

35-
3649
[options]
3750
zip_safe = False
3851
include_package_data = True
3952
packages =
4053
{{ cookiecutter.package_name }}
4154
install_requires =
4255

43-
4456
[options.data_files]
4557
# This section requires setuptools>=40.6.0
4658
# It remains empty for now
4759
# Check if MANIFEST.in works for your purposes
4860

49-
5061
[options.extras_require]
5162
dev =
63+
bump2version
5264
prospector[with_pyroma]
5365
yapf
5466
isort
@@ -61,12 +73,10 @@ dev =
6173
sphinx_rtd_theme
6274
recommonmark
6375

64-
6576
[coverage:run]
6677
branch = True
6778
source = {{ cookiecutter.package_name }}
6879

69-
7080
[tool:isort]
7181
lines_after_imports = 2
7282
force_single_line = 1
@@ -75,7 +85,6 @@ known_first_party = {{ cookiecutter.package_name }}
7585
src_paths = {{ cookiecutter.package_name }},tests
7686
line_length = 120
7787

78-
7988
[tool:pytest]
8089
testpaths = tests
8190
addopts = --cov --cov-report xml --cov-report term --cov-report html

0 commit comments

Comments
 (0)