-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
60 lines (52 loc) · 1.44 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tool.bumpversion]
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)(\\.(?P<patch>\\d+))?"
current_version = "0.0.0"
commit = true
commit_args = "-S"
message = "New version: {new_version}"
tag = true
tag_name = "v{new_version}"
sign_tags = true
[[tool.bumpversion.files]]
filename = "src/app_project/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
# The order in which the version numbers in docs/conf.py is important.
# If the release number is not processed first (using the default
# regex for parsing) then you will get the following output:
#
# version = "0.0"
# release = "version = "0.0""
#
# This has been reported as an issue to bump2version:
# https://github.com/c4urself/bump2version/issues/159
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = "release = \"{current_version}\""
replace = "release = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "./docs/conf.py"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)"
serialize = [
"{major}.{minor}"
]
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CHANGELOG.rst"
search = "Latest\n------"
replace = """
Latest
------
{new_version} ({now:%%Y-%%m-%%d})
------------------
"""
[[tool.bumpversion.files]]
filename = "setup.py"
search = "version=\"{current_version}\""
replace = "version=\"{new_version}\""
[tool.black]
line-length = 88
target-version = [
"py311"
]