-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
182 lines (168 loc) · 4.42 KB
/
pyproject.toml
File metadata and controls
182 lines (168 loc) · 4.42 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
[build-system]
requires = ["setuptools>=60.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "joltqc"
version = "0.1.0"
description = "JoltQC: a JIT-compiled GPU backend for quantum chemistry calculations (formerly xQC)"
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
{name = "Xiaojie Wu", email = "wu.xiaojie@bytedance.com"},
{name = "Qiming Sun", email = "osirpt.sun@gmail.com"},
{name = "Yuanheng Wang", email = "yuanheng.wang@bytedance.com"},
]
maintainers = [
{name = "ByteDance Seed Team", email = "seed@bytedance.com"},
]
keywords = [
"quantum chemistry",
"computational chemistry",
"GPU",
"CUDA",
"JIT compilation",
"PySCF",
"DFT",
"Hartree-Fock",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"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 :: CUDA",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.19.0",
"cupy-cuda12x>=13.0.0", # CUDA 12.x support
"pyscf>=2.8.0",
"gpu4pyscf-cuda12x>=1.4.0", # GPU4PySCF with CUDA 12.x support
]
# dynamic = ["version"] # Static version for now
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.0.0",
]
benchmark = [
"matplotlib>=3.5.0",
"scipy>=1.8.0",
]
[project.urls]
Homepage = "https://github.com/ByteDance-Seed/joltqc"
Documentation = "https://github.com/ByteDance-Seed/joltqc/blob/main/README.md"
Repository = "https://github.com/ByteDance-Seed/joltqc.git"
Issues = "https://github.com/ByteDance-Seed/joltqc/issues"
Changelog = "https://github.com/ByteDance-Seed/joltqc/releases"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["jqc*"]
exclude = ["tests*", "benchmarks*", "examples*"]
[tool.setuptools.package-data]
"jqc.backend.data" = ["*.json"]
"jqc.backend.cuda" = ["*.cu"]
"jqc.backend.rys" = ["*.cu"]
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| examples/tmp
)/
'''
[tool.ruff]
target-version = "py38"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long, handled by black
"E731", # do not assign a lambda expression, use a def
"N999", # invalid module name (false positive with project name)
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__.py
"examples/*.py" = ["F401", "E402"] # Allow unused imports and imports after code
"benchmarks/*.py" = ["F401", "E402"] # Allow unused imports and imports after code
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers"
testpaths = [
"jqc/backend/tests",
"jqc/pyscf/tests",
]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests as requiring GPU hardware",
"integration: marks tests as integration tests",
]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
"build/",
"dist/",
"examples/",
"benchmarks/",
]
[tool.coverage.run]
source = ["jqc"]
omit = [
"jqc/backend/tests/*",
"jqc/pyscf/tests/*",
"*/tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]