-
Notifications
You must be signed in to change notification settings - Fork 40
/
pyproject.toml
238 lines (217 loc) · 5.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
[build-system]
requires = [
"scikit-build-core>=0.9.0",
# "oldest-supported-numpy; python_version < '3.9'",
# "numpy>=2.0.0rc0; python_version >= '3.9'",
"nodejs-wheel~=20.9",
"pyyaml",
"cython>=3.0.1",
]
build-backend = "scikit_build_core.build"
[project]
name = "reacnetgenerator"
dynamic = ["version"]
description = "ReacNetGenerator: An automatic reaction network generator for reactive molecular dynamics simulation."
authors = [
{name = "Jinzhe Zeng", email = "jinzhe.zeng@rutgers.edu"},
]
license = {file = "LICENSE"}
classifiers = [
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: JavaScript",
"Programming Language :: C",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Version Control :: Git",
"Development Status :: 6 - Mature",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
]
dependencies = [
# "numpy<2; python_version < '3.9'",
# "numpy>=1.19,<3; python_version >= '3.9'",
'numpy',
'networkx',
'matplotlib',
'hmmlearn>=0.2.1',
'ase',
'scour',
'tqdm>=4.9.0',
'coloredlogs',
'pandas',
'lz4',
'requests',
"openbabel-wheel",
"rdkit",
"packaging",
]
requires-python = ">=3.7"
readme = "README.md"
keywords = ["reaction network"]
[project.urls]
homepage = "https://github.com/deepmodeling/reacnetgenerator"
documentation = "https://docs.deepmodeling.com/projects/reacnetgenerator/"
repository = "https://github.com/deepmodeling/reacnetgenerator"
[project.scripts]
reacnetgenerator = "reacnetgenerator.commandline:_commandline"
[project.gui-scripts]
reacnetgeneratorgui = "reacnetgenerator.gui:gui"
[project.optional-dependencies]
test = [
'pytest-sugar',
'pytest-cov<4',
'cython',
'pytest-xvfb',
"pytest-console-scripts",
"pytest-mock",
"pytest-codspeed",
]
docs = [
'sphinx',
'sphinx-book-theme',
'numpydoc',
'sphinx-argparse<0.5.0',
'myst-nb>=1.0.0rc0',
'sphinx-favicon>=1.0',
"nodejs-wheel~=20.9",
"pyyaml",
"deepmodeling_sphinx>=0.1.3",
"pygments-lammps",
"sphinxcontrib-bibtex>=2.6.0",
# See https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/345
"setuptools",
"sphinx-design",
]
[tool.scikit-build]
minimum-version = "0.9"
wheel.py-api = "cp37"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["reacnetgenerator/_version.py"]
sdist.exclude = ["reacnetgenerator/static/webpack/"]
cmake.version = ">=3.26"
[tool.setuptools_scm]
write_to = "reacnetgenerator/_version2.py"
fallback_version = "Unknown"
[tool.cibuildwheel]
test-command = "reacnetgenerator -h"
build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
skip = ["*-win32", "*-manylinux_i686", "*-musllinux*"]
# wait for openbabel
test-skip = "cp37-* *-manylinux_aarch64"
[tool.cibuildwheel.linux]
environment-pass = ["CIBW_BUILD"]
# Use abi3audit to catch issues with Limited API wheels
repair-wheel-command = [
"auditwheel repair -w {dest_dir} {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]
[tool.cibuildwheel.macos]
repair-wheel-command = [
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]
[tool.pyright]
include = [
"reacnetgenerator",
]
exclude = [
"reacnetgenerator/_version2.py",
]
[tool.coverage.run]
plugins = ["Cython.Coverage"]
[tool.coverage.report]
show_missing = true
omit = ["*test*"]
[tool.isort]
profile = "black"
[tool.ruff]
select = [
"E", # errors
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"RUF", # ruff
"NPY", # numpy
]
ignore = [
"E501", # line too long
"E741", # ambiguous variable name
"E402", # module level import not at top of file
"D205", # 1 blank line required between summary line and description
]
[tool.ruff.lint.per-file-ignores]
"**/*.ipynb" = ["D100"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.tox]
requires = ["tox>=4.19"]
env_list = [
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
"3.8",
"3.7",
"docs",
]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
package = "editable"
extras = [
"test",
]
pass_env = [
"CI",
"CODACY_*",
"CODECOV_*",
"GITHUB_*",
"TOXENV",
]
set_env = { DEBUG = "1" }
commands = [[
"pytest",
"--pyargs",
"tests",
"--cov",
"--cov-report",
"term",
"--cov-report",
"xml",
"--cov-config={toxinidir}/pyproject.toml"
]]
[tool.tox.env.docs]
description = "invoke sphinx-build to build the HTML docs"
extras = [
"docs",
]
commands = [[
"make",
"-C",
"{toxinidir}/docs",
"html"
]]
allowlist_externals = [
"make",
]
[tool.tox.gh.python]
"3.13" = ["3.13"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]
"3.8" = ["3.8"]
"3.7" = ["3.7"]