-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
84 lines (75 loc) · 1.47 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
[project]
name = "cytnx-core"
version = "0.1.0"
description = "Core component of cytnx"
readme = "README.md"
authors = [
{ name = "kaihsin", email = "[email protected]" }
]
requires-python = ">=3.10"
dependencies = [
"cibuildwheel>=2.22.0",
"numpy>=2.2.0",
"scipy-openblas64>=0.3.28.0.2",
]
[tool.scikit-build]
minimum-version = "build-system.requires"
build-dir = "build/{wheel_tag}"
build.tool-args = ["-j4"]
[tool.scikit-build.cmake.define]
USE_CUDA = "OFF"
# only use pypi registry
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
[tool.black]
line-length = 88
[tool.ruff]
target-version = "py310"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.isort]
profile = "black"
combine_as_imports = true
multi_line_output = 3
src_paths = ["src/cytnx_core"]
[build-system]
requires = [
"scikit-build-core>=0.10",
"pybind11",
"scipy-openblas64>=0.3.28.0.2",
]
build-backend = "scikit_build_core.build"
[dependency-groups]
dev = [
"isort>=5.13.2",
"lint>=1.2.1",
"pre-commit>=4.0.1",
"pytest>=8.3.3",
"ruff>=0.7.4",
"auditwheel-symbols>=0.1.13",
"auditwheel>=6.1.0",
"twine>=6.0.1",
]