forked from cclib/cclib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
263 lines (231 loc) · 6.33 KB
/
Copy pathpyproject.toml
File metadata and controls
263 lines (231 loc) · 6.33 KB
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
[project]
name = "cclib"
description = "parsers and algorithms for computational chemistry"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{ name = "cclib development team", email = "cclib@googlegroups.com" }
]
maintainers = [
{ name = "cclib development team", email = "cclib@googlegroups.com" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy",
"packaging>=19.0",
"periodictable",
"scipy>=1.2.0",
]
dynamic = ["version"]
[project.urls]
"Bug Tracker" = "https://github.com/cclib/cclib/issues"
Changelog = "https://github.com/cclib/cclib/blob/master/doc/sphinx/changelog.rst"
Documentation = "http://cclib.github.io/"
Homepage = "https://github.com/cclib/cclib"
[project.scripts]
ccframe = "cclib.scripts.ccframe:main"
ccget = "cclib.scripts.ccget:ccget"
ccwrite = "cclib.scripts.ccwrite:main"
cda = "cclib.scripts.cda:main"
[project.optional-dependencies]
# The Open Babel PyPI package for version < 3.2.0 is missing native wheels and
# requires using SWIG to compile the Python extension against a preinstalled
# native library. The wheels for version >= 3.2.0 only support Python >=
# 3.10.
#
# With Pixi v0.67.2, specifying a (conda) dependency via Pixi doesn't seem
# override the corresponding PyPI dependency, so we create groups that leave
# out Open Babel and manually specify it as a Pixi dependency for Python <
# 3.10 versions while keeping everything as-is for Python >= 3.10.
all = ["cclib[bridges]"]
bridges = ["cclib[bridges-no-openbabel,openbabel]"]
bridges-no-openbabel = [
"ase>=3.21",
"biopython",
"chemfiles",
"pandas",
"pyscf",
"geometric",
"qc-iodata>=1.0.0a2",
"trexio",
]
dev = ["cclib[bridges,docs,test-infrastructure]", "twine"]
dev-no-openbabel = ["cclib[bridges-no-openbabel,docs,test-infrastructure]"]
docs = [
"build",
"pip",
"sphinx",
"sphinx_rtd_theme",
]
openbabel = ["openbabel"]
test = ["cclib[bridges,docs,test-infrastructure]"]
test-infrastructure = [
"pytest-cov",
"pytest-xdist",
"pyyaml",
]
[dependency-groups]
bridges-git = [
"pyberny @ git+https://github.com/cclib/pyberny.git@8142ce1bc468664aef18e88099b03734bff982e5",
"pyquante2 @ git+https://github.com/cclib/pyquante2.git@old-python",
"pyscf-properties @ git+https://github.com/pyscf/properties.git",
]
[build-system]
requires = [
"setuptools>=77.0.3",
"versioningit>=2.0",
]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
branch = true
[tool.mypy]
disable_error_code = [
"attr-defined",
]
disallow_incomplete_defs = true
disallow_untyped_defs = true
enable_error_code = [
"ignore-without-code",
]
strict = true
[[tool.mypy.overrides]]
module = [
"Bio.PDB.Atom",
"Bio.PDB.Superimposer",
"PyQuante.CGBF",
"PyQuante.Molecule",
"PyQuante.hartree_fock",
"ase",
"ase.calculators.calculator",
"ase.calculators.emt",
"ase.io.trajectory",
"h5py",
"horton",
"horton.io.iodata",
"iodata",
"iodata.api",
"iodata.orbitals",
"openbabel",
"openbabel.pybel",
"periodictable",
"psi4",
"psi4.core",
"pybel",
"pyquante2",
"pyscf",
"pyscf.geomopt.berny_solver",
"pyscf.geomopt.geometric_solver",
"pyscf.prop",
"pyvtk",
"pyvtk.DataSetAttr",
"scipy",
"scipy.constants",
"scipy.spatial",
"scipy.spatial.transform",
"skip",
"test_data",
"common",
]
ignore_missing_imports = true
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = [
"linux-64",
"osx-arm64",
"win-64",
]
preview = ["pixi-build"]
# This can't be present until Psi4 is packaged for Python 3.14.
#
# [tool.pixi.dependencies]
# psi4 = "*"
[tool.pixi.pypi-dependencies]
cclib = { path = ".", editable = true }
[tool.pixi.environments]
py310 = { features = ["py310", "dev", "bridges-git"], solve-group = "py310" }
py311 = { features = ["py311", "dev", "bridges-git"], solve-group = "py311" }
py312 = { features = ["py312", "dev", "bridges-git"], solve-group = "py312" }
py313 = { features = ["py313", "dev", "bridges-git"], solve-group = "py313" }
py314 = { features = ["py314", "dev", "bridges-git"], solve-group = "py314" }
[tool.pixi.feature.py310.dependencies]
psi4 = "*"
python = "3.10.*"
[tool.pixi.feature.py311.dependencies]
psi4 = "*"
python = "3.11.*"
[tool.pixi.feature.py312.dependencies]
psi4 = "*"
python = "3.12.*"
[tool.pixi.feature.py313.dependencies]
psi4 = "*"
python = "3.13.*"
[tool.pixi.feature.py314.dependencies]
psi4 = "*"
python = "3.14.*"
[tool.pixi.package]
name = "cclib"
# This means `pixi build` will fail, but leaving it in causes problems with
# `nix build`, which must be using regex to find the version in this file.
#
# version = "1.8.1"
[tool.pixi.package.build]
backend = { name = "pixi-build-python", version = "0.*" }
[tool.pixi.package.host-dependencies]
setuptools = ">=61.0"
versioningit = ">=2.0"
[tool.pixi.package.run-dependencies]
numpy = "*"
packaging = ">=19.0"
periodictable = "*"
scipy = ">=1.2.0"
[tool.ruff]
line-length = 100
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
extend-select = [
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
lines-after-imports = 2
# default is FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
# Placing third-party imports at the end makes their inclusion more obvious
section-order = [
"future",
"standard-library",
"first-party",
"third-party",
"local-folder"
]
[tool.ruff.lint.per-file-ignores]
"test/test*.py" = [
"PLR2004", # magic value comparison
"S101", # use of assert detected
"TCH002", # third party import (for pytest)
]
[tool.setuptools]
zip-safe = false
[tool.setuptools.package-dir]
cclib = "cclib"
[tool.versioningit.format]
method = { module = "versioningit_override", value = "cclib_format", module-dir = "tools" }
[tool.versioningit.template-fields.version-tuple]
pep440 = true
[tool.versioningit.vcs]
method = "git"
match = ["v*"]
[tool.versioningit.write]
file = "cclib/_version.py"