-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (167 loc) · 5.05 KB
/
pyproject.toml
File metadata and controls
185 lines (167 loc) · 5.05 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
[build-system]
requires = [
"scikit-build-core>=0.10",
"nanobind>=2.0.0",
"setuptools-scm>=8",
]
build-backend = "scikit_build_core.build"
[project]
name = "rapids-singlecell"
description = "running single cell analysis on Nvidia GPUs"
requires-python = ">=3.12, <3.14"
license = { file = "LICENSE" }
authors = [ { name = "Severin Dicks" } ]
readme = { file = "README.md", content-type = "text/markdown" }
dynamic = [ "version" ]
dependencies = [
"anndata>=0.10.0",
"scanpy>=1.10.0",
"numpy>=1.17.0",
"scipy>=1.4",
"pandas",
"natsort",
"scikit-misc>=0.1.3",
"scikit-learn",
"matplotlib>=3.4",
"tqdm",
"statsmodels>=0.12.0",
"scikit-image",
"docrep",
]
[project.optional-dependencies]
rapids-cu13 = [ "cupy-cuda13x", "cudf-cu13>=25.10", "cuml-cu13>=25.10", "cugraph-cu13>=25.10", "cuvs-cu13>=25.10" ]
rapids-cu12 = [ "cupy-cuda12x", "cudf-cu12>=25.10", "cuml-cu12>=25.10", "cugraph-cu12>=25.10", "cuvs-cu12>=25.10" ]
doc = [
"sphinx>=4.5.0",
"sphinx-copybutton",
"nbsphinx>=0.8.12",
"myst-nb",
"sphinx-design",
"sphinx-tabs",
"sphinxext-opengraph",
"sphinxcontrib.bibtex",
"scanpydoc[typehints,theme]>=0.9.4",
"dask",
"pytest",
]
test-minimal = [
"pytest",
"pytest-cov",
"pytest-timeout",
"pytest-rerunfailures",
"anyio",
"pooch",
"profimp",
"scanpy>=1.10.0",
"bbknn",
"decoupler",
"fast-array-utils",
]
test = [
"rapids_singlecell[test-minimal]",
"igraph",
]
dev = [
"hatch-vcs",
"pre-commit",
]
[project.urls]
Documentation = "https://rapids-singlecell.readthedocs.io"
Source = "https://github.com/scverse/rapids_singlecell"
[tool.ruff]
src = [ "src" ]
line-length = 88
lint.select = [
"F", # Errors detected by Pyflakes
"E", # Error detected by Pycodestyle
"W", # Warning detected by Pycodestyle
"I", # isort
"TID", # flake8-tidy-imports
"C4", # flake8-comprehensions
"BLE", # flake8-blind-except
"FBT", # No boolean positional parameters
"UP", # pyupgrade
"TID251", # Banned imports
"RUF100", # Report unused noqa directives
"ICN", # Follow import conventions
"PTH", # Pathlib instead of os.path
"TC", # manage type checking blocks
"PLR0917", # Ban APIs with too many positional parameters
]
lint.ignore = [
# line too long -> we accept long comment lines; formatting gets rid of long code lines
"E501",
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
"E731",
# allow I, O, l as variable names -> I is the identity matrix
"E741",
# Missing docstring in public package
"F403",
]
[tool.ruff.lint.per-file-ignores]
"docs/*" = [ "I" ]
"tests/*" = [ "D", "FBT" ]
"*/__init__.py" = [ "F401" ]
[tool.ruff.lint.isort]
known-first-party = [ "rapids_singlecell" ]
required-imports = [ "from __future__ import annotations" ]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--strict-markers",
"--timeout=60",
]
markers = [
"gpu: tests that use a GPU (currently unused, but needs to be specified here as we import anndata.tests.helpers, which uses it)",
]
[tool.setuptools_scm]
write_to = "src/rapids_singlecell/_version.py"
# Optional but useful:
version_scheme = "guess-next-dev"
local_scheme = "node-and-date"
[tool.scikit-build]
# Use limited ABI wheels (one wheel for all Python minor versions on one platform)
wheel.py-api = "cp312"
wheel.packages = [ "src/rapids_singlecell", "src/testing" ]
wheel.exclude = [ "**/*.cu", "**/*.cuh", "**/*.h" ]
cmake.version = ">=3.24"
cmake.build-type = "Release"
ninja.version = ">=1.10"
experimental = false
# Default: use native arch for source builds (auto-detect user's GPU)
# CI overrides via SKBUILD_CMAKE_DEFINE_CMAKE_CUDA_ARCHITECTURES env var
cmake.define.CMAKE_CUDA_ARCHITECTURES = "native"
build-dir = "build"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = [ "src/rapids_singlecell/_version.py" ]
# Use abi3audit to catch issues with Limited API wheels
[tool.cibuildwheel.linux]
repair-wheel-command = [
"auditwheel repair --exclude libcublas.so.12 --exclude libcublas.so.13 --exclude libcublasLt.so.12 --exclude libcublasLt.so.13 --exclude libcudart.so.12 --exclude libcudart.so.13 -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.cibuildwheel.windows]
repair-wheel-command = [
"copy {wheel} {dest_dir}",
"pipx run abi3audit --strict --report {wheel}",
]
[tool.codespell]
skip = '*.ipynb,*.csv'
ignore-words-list = "nd"
[tool.coverage.run]
data_file = "test-data/coverage"
source_pkgs = [ "rapids_singlecell" ]
omit = [ "tests/*", "src/testing/*" ]
[tool.coverage.xml]
output = "test-data/coverage.xml"
[tool.coverage.paths]
source = [ "./src", "**/site-packages" ]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]