Skip to content

Commit 5a8119b

Browse files
committed
update pyproject
1 parent 20f0db8 commit 5a8119b

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

pyproject.toml

+25-16
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ classifiers = [
1515
'Topic :: Scientific/Engineering :: Artificial Intelligence',
1616
]
1717
keywords = ['deepecho', 'DeepEcho']
18-
dynamic = ["version"]
18+
version = '0.5.1.dev0'
1919
license = { text = 'BSL-1.1' }
2020
requires-python = '>=3.8,<3.12'
2121
readme = 'README.md'
@@ -103,27 +103,29 @@ namespaces = false
103103

104104
[tool.setuptools.package-data]
105105
"*" = [
106-
'*.txt',
106+
'AUTHORS.rst',
107+
'CONTRIBUTING.rst',
108+
'HISTORY.md',
109+
'LICENSE',
110+
'README.md',
111+
'deepecho/data/demo.csv',
107112
'*.md',
108113
'*.rst',
109-
'README.md',
110-
'docs/*',
114+
'conf.py',
111115
'Makefile',
112116
'make.bat',
113117
'*.jpg',
114118
'*.png',
115-
'*.gif',
119+
'*.gif'
116120
]
121+
"tests" = ["*"]
117122

118123
[tool.setuptools.exclude-package-data]
119124
"*" = [
120125
'* __pycache__',
121126
'*.py[co]',
122127
]
123128

124-
[tool.setuptools.dynamic]
125-
version = {attr = 'deepecho.__version__'}
126-
127129
[tool.isort]
128130
include_trailing_comment = true
129131
line_length = 99
@@ -136,11 +138,11 @@ use_parentheses = true
136138
collect_ignore = ['pyproject.toml']
137139

138140
[tool.bumpversion]
139-
current_version = '0.5.1'
140-
parse = '(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)'
141+
current_version = '0.5.1.dev0'
142+
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<candidate>\d+))?'
141143
serialize = [
142-
'{major}.{minor}.{patch}-{release}{candidate}',
143-
'{major}.{minor}.{patch}'
144+
'{major}.{minor}.{patch}.{release}{candidate}',
145+
'{major}.{minor}.{patch}'
144146
]
145147
search = '{current_version}'
146148
replace = '{new_version}'
@@ -156,15 +158,22 @@ message = 'Bump version: {current_version} → {new_version}'
156158
commit_args = ''
157159

158160
[tool.bumpversion.parts.release]
161+
first_value = 'dev'
162+
optional_value = 'release'
159163
values = [
160164
'dev',
161165
'release'
162166
]
163-
optional_value = 'release'
164167

165-
[tool.bumpversion.files]
166-
pyproject.toml = {search = 'current_version="{current_version}"', replace = 'current_version="{new_version}"'}
167-
"deepecho/__init__.py" = {search = '__version__ = "{current_version}"', replace = '__version__ = "{new_version}"'}
168+
[[tool.bumpversion.files]]
169+
filename = "pyproject.toml"
170+
search = "version = '{current_version}'"
171+
replace = "version = '{new_version}'"
172+
173+
[[tool.bumpversion.files]]
174+
filename = "sdgym/__init__.py"
175+
search = "__version__ = '{current_version}'"
176+
replace = "__version__ = '{new_version}'"
168177

169178
[build-system]
170179
requires = ['setuptools', 'wheel']

0 commit comments

Comments
 (0)