forked from flatironinstitute/nifty-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
70 lines (60 loc) · 2.1 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
[build-system]
requires = ["nanobind", "scikit-build-core>=0.8", "setuptools_scm>=8"]
build-backend = "scikit_build_core.build"
[project]
name = "nifty-ls"
description = "A fast Lomb-Scargle periodogram. It's nifty, and uses a NUFFT."
readme = "README.md"
authors = [{ name = "Lehman Garrison" },
{ name = "Dan Foreman-Mackey" },
]
requires-python = ">=3.8"
license = { file = "LICENSE" }
urls = { Homepage = "https://github.com/flatironinstitute.org/nifty-ls" }
dependencies = ["numpy", "finufft >= 2.3"]
dynamic = ["version"]
[project.optional-dependencies]
cuda11 = ["cufinufft", "cupy-cuda11x"]
cuda12 = ["cufinufft", "cupy-cuda12x"]
cuda = ["cufinufft", "cupy-cuda12x"]
dev = ["pre-commit"]
test = ["pytest", "pytest-benchmark", "astropy"]
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/nifty_ls/version.py"]
minimum-version = "0.8"
build-dir = "build/{wheel_tag}"
# editable.rebuild = true # use with --no-build-isolation
wheel.py-api = "cp312"
# For debugging:
# cmake.build-type = "Debug"
# cmake.verbose = true
# install.strip = false
[tool.setuptools_scm]
version_file = "src/nifty_ls/version.py"
[tool.pytest.ini_options]
# is there a way to set this in the test script?
addopts = [
"--benchmark-group-by=param:Nf",
"--benchmark-disable-gc",
"--benchmark-columns=min,mean,stddev,rounds,iterations",
]
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.cibuildwheel]
archs = "auto64"
test-command = "pytest -s --benchmark-skip {project}/tests"
test-extras = "test"
skip = "pp* *-musllinux_*"
[tool.cibuildwheel.linux]
repair-wheel-command = [
"auditwheel repair -w {dest_dir} {wheel}",
# run abi3audit on wheels tagged with abi3
'case "$(basename {wheel})" in *"-abi3-"*) pip install -U abi3audit && abi3audit --strict --report {wheel};; esac',
]
[tool.cibuildwheel.macos]
repair-wheel-command = [
'delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}',
'case "$(basename {wheel})" in *"-abi3-"*) pip install -U abi3audit && abi3audit --strict --report {wheel};; esac',
]