-
Notifications
You must be signed in to change notification settings - Fork 719
Expand file tree
/
Copy pathhatch.toml
More file actions
48 lines (44 loc) · 1.76 KB
/
hatch.toml
File metadata and controls
48 lines (44 loc) · 1.76 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
[envs.default]
installer = "uv"
dependency-groups = [ "dev" ]
[envs.docs]
dependency-groups = [ "doc" ]
# MyST-NB 1.3.0 spams the doc build logs making debugging hard, so use https://github.com/executablebooks/MyST-NB/pull/704
extra-dependencies = [
"pandas>=3",
"myst-nb @ git+https://github.com/executablebooks/MyST-NB.git@91273a686c66fd0383466c80eede61b208d7e426",
]
scripts.build = "sphinx-build -M html docs docs/_build -W {args}"
scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html"
scripts.clean = "git clean -fdX -- {args:docs}"
[envs.towncrier]
scripts.create = "towncrier create {args}"
scripts.build = "python3 ci/scripts/towncrier_automation.py {args}"
scripts.clean = "git restore --source=HEAD --staged --worktree -- docs/release-notes"
[envs.hatch-test]
python = "3.14"
default-args = [ ]
dependency-groups = [ "dev", "test-min" ]
extra-dependencies = [ "ipykernel" ]
overrides.matrix.deps.env-vars = [
{ if = [ "pre" ], key = "UV_PRERELEASE", value = "allow" },
{ if = [ "low-vers" ], key = "UV_CONSTRAINT", value = "ci/scanpy-low-vers.txt" },
]
overrides.matrix.deps.pre-install-commands = [
{ if = [
"low-vers",
], value = "uv run ci/scripts/low-vers.py pyproject.toml --all-extras --groups=test -o ci/scanpy-low-vers.txt" },
]
overrides.matrix.deps.python = [
{ if = [ "low-vers" ], value = "3.12" },
]
overrides.matrix.deps.extra-dependencies = [
{ if = [ "stable" ], value = "scipy>=1.17" },
{ if = [ "pre" ], value = "anndata @ git+https://github.com/scverse/anndata.git" },
{ if = [ "pre" ], value = "pandas>=3rc0" },
]
overrides.matrix.deps.dependency-groups = [
{ if = [ "stable", "pre", "low-vers" ], value = "test" },
]
[[envs.hatch-test.matrix]]
deps = [ "stable", "pre", "low-vers", "few-extras" ]