Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ current_version = 0.0.1
commit = True
tag = True

[bumpversion:file:example_project_python/_version.py]
[bumpversion:file:example_project_python/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"


[bumpversion:file:pyproject.toml]
search = version="{current_version}"
replace = version="{new_version}"

[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
3 changes: 2 additions & 1 deletion example_project_python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from ._version import __version__
from .hello import hello, print_hello

__version__ = "0.0.1"
4 changes: 2 additions & 2 deletions example_project_python/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .hello import print_hello

if __name__ == "__main__":
print_hello()
if __name__ == "__main__": # pragma: no cover
print_hello() # pragma: no cover
1 change: 0 additions & 1 deletion example_project_python/_version.py

This file was deleted.