-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathhatch.toml
More file actions
68 lines (58 loc) · 1.92 KB
/
hatch.toml
File metadata and controls
68 lines (58 loc) · 1.92 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
[envs.default]
installer = "uv"
features = [ "dev" ]
[envs.hatch-test]
default-args = [ ]
features = [ "test" ]
# Select CUDA feature per matrix
overrides.matrix.cuda.features = [
{ if = [ "12" ], value = "rapids-cu12" },
{ if = [ "13" ], value = "rapids-cu13" },
]
# Python per deps
overrides.matrix.deps.python = [
{ if = [ "stable" ], value = "3.12" },
{ if = [ "dev" ], value = "3.14" },
{ if = [ "rapids_prerelease" ], value = "3.14" },
]
# Allow prereleases and use RAPIDS nightly index only for prerelease
overrides.matrix.deps.env-vars = [
{ if = [
"dev",
"rapids_prerelease",
], key = "UV_PRERELEASE", value = "allow" },
{ if = [
"rapids_prerelease",
], key = "UV_EXTRA_INDEX_URL", value = "https://pypi.anaconda.org/rapidsai-wheels-nightly/simple" },
]
# Dev: use upstream heads for anndata/scanpy
overrides.matrix.deps.extra-dependencies = [
{ if = [
"dev",
], value = "anndata @ git+https://github.com/scverse/anndata.git" },
{ if = [
"dev",
], value = "scanpy @ git+https://github.com/scverse/scanpy.git" },
]
overrides.matrix.cuda.extra-dependencies = [
{ if = [ "13" ], value = "cuml-cu13<26.8" },
{ if = [ "13" ], value = "cudf-cu13<26.8" },
{ if = [ "13" ], value = "cugraph-cu13<26.8" },
{ if = [ "13" ], value = "cuvs-cu13<26.8" },
{ if = [ "12" ], value = "cuml-cu12<26.8" },
{ if = [ "12" ], value = "cudf-cu12<26.8" },
{ if = [ "12" ], value = "cugraph-cu12<26.8" },
{ if = [ "12" ], value = "cuvs-cu12<26.8" },
]
## For prerelease we rely on UV_PRERELEASE + nightly index; features select cu12/cu13
[envs.docs]
features = [ "doc" ]
scripts.build = "sphinx-build -M html docs docs/_build {args}"
scripts.clean = "git clean -fXd docs"
[envs.default.pip]
extra_index_urls = [
"https://pypi.nvidia.com",
]
[[envs.hatch-test.matrix]]
deps = [ "stable", "dev", "rapids_prerelease" ]
cuda = [ "12", "13" ]