-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpixi.toml
141 lines (112 loc) · 3.99 KB
/
pixi.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
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
[project]
name = "holonote"
channels = ["pyviz/label/dev", "conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[tasks]
install = 'python -m pip install --no-deps --disable-pip-version-check -e .'
[activation.env]
PYTHONIOENCODING = "utf-8"
[environments]
test-39 = ["py39", "test-core", "test", "test-unit-task", "example", "test-example"]
test-310 = ["py310", "test-core", "test", "test-unit-task", "example", "test-example"]
test-311 = ["py311", "test-core", "test", "test-unit-task", "example", "test-example"]
test-312 = ["py312", "test-core", "test", "test-unit-task", "example", "test-example"]
test-core = ["py313", "test-core", "test-unit-task"]
test-benchmark = ["py312", "test-benchmark", "test"]
docs = ["py311", "example", "doc"]
build = ["py311", "build"]
lint = ["py311", "lint"]
lite = ["py311", "lite"]
[dependencies]
holoviews = ">=1.18.0"
pandas = "*"
pip = "*"
[feature.py39.dependencies]
python = "3.9.*"
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[feature.py312.activation.env]
COVERAGE_CORE = "sysmon"
[feature.py313.dependencies]
python = "3.13.*"
[feature.py313.activation.env]
COVERAGE_CORE = "sysmon"
[feature.example.dependencies]
dask-core = "*"
datashader = "*"
hvplot = "*"
scipy = "*"
# =============================================
# =================== TESTS ===================
# =============================================
[feature.test-core.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-github-actions-annotate-failures = "*"
[feature.test-unit-task.tasks] # So it is not showing up in the test-benchmark
test-unit = 'pytest holonote/tests'
[feature.test.dependencies]
dask = "*"
datashader = "*"
hvplot = "*"
scipy = "*"
[feature.test-example.tasks]
test-example = "python scripts/example_testing.py"
[feature.test-example.dependencies]
nbval = "*"
[feature.test-benchmark.tasks]
test-benchmark = "pytest holonote --codspeed --benchmark -n auto"
[feature.test-benchmark.dependencies]
pytest-codspeed = "*"
pytest-xdist = "*"
numpy = "<2"
# =============================================
# =================== DOCS ====================
# =============================================
[feature.doc.dependencies]
nbsite = ">=0.8.4,<0.9.0"
matplotlib-base = "*"
[feature.doc.activation.env]
MPLBACKEND = "Agg"
[feature.doc.tasks]
_docs-generate-rst = 'nbsite generate-rst --org holoviz --project-name holonote'
_docs-no-header-tutorial = 'python ./doc/no_header_tutorial.py'
_docs-refmanual = 'python ./doc/generate_modules.py holonote -d ./doc/reference_manual -n holonote -e tests'
_docs-generate = 'nbsite build --what=html --output=builtdocs --org holoviz --project-name holonote'
[feature.doc.tasks.docs-build]
depends-on = ['_docs-generate-rst', '_docs-no-header-tutorial', '_docs-refmanual', '_docs-generate']
# =============================================
# ================== BUILD ====================
# =============================================
[feature.build.dependencies]
python-build = "*"
conda-build = "*"
[feature.build.tasks]
build-conda = 'bash scripts/conda/build.sh'
build-pip = 'python -m build .'
# =============================================
# =================== LINT ====================
# =============================================
[feature.lint.dependencies]
pre-commit = "*"
[feature.lint.tasks]
lint = 'pre-commit run --all-files'
lint-install = 'pre-commit install'
# =============================================
# =================== LITE ====================
# =============================================
[feature.lite.dependencies]
jupyterlab-myst = "*"
jupyterlite-core = "*"
jupyterlite-pyodide-kernel = "*"
nodejs = "*"
python-build = "*"
[feature.lite.tasks]
lite-build = { cmd = "bash build.sh", cwd = "scripts/jupyterlite" }
# Service worker only work on 127.0.0.1
# https://jupyterlite.readthedocs.io/en/latest/howto/configure/advanced/service-worker.html#limitations
lite-server = "python -m http.server --directory ./jupyterlite --bind 127.0.0.1"