-
-
Notifications
You must be signed in to change notification settings - Fork 365
/
pixi.toml
174 lines (147 loc) · 4.64 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
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
[project]
name = "datashader"
channels = ["pyviz/label/dev", "conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[tasks]
download-data = "python scripts/download_data.py"
install = "python -m pip install --no-deps --disable-pip-version-check -e ."
[activation.env]
PYTHONIOENCODING = "utf-8"
[environments]
test-39 = ["py39", "test-core", "test", "example", "test-example", "test-unit-task"]
test-310 = ["py310", "test-core", "test", "example", "test-example", "test-unit-task"]
test-311 = ["py311", "test-core", "test", "example", "test-example", "test-unit-task"]
test-312 = ["py312", "test-core", "test", "example", "test-example", "test-unit-task"]
test-core = ["py312", "test-core", "test-unit-task"]
test-gpu = ["py312", "test-core", "test-gpu"]
docs = ["py311", "example", "doc"]
build = ["py311", "build"]
lint = ["py311", "lint"]
[dependencies]
numba = "*" # At top as this dictates Python version
colorcet = "*"
multipledispatch = "*"
numpy = "*"
pandas = "*"
param = "*"
pillow = "*"
pip = "*"
pyct = "*"
requests = "*"
scipy = "*"
setuptools = "*" # distutils for pyct
toolz = "*"
xarray = "*"
[feature.py39.dependencies]
python = "3.9.*"
[feature.py310.dependencies]
python = "3.10.*"
bokeh_sampledata = "*"
[feature.py311.dependencies]
python = "3.11.*"
bokeh_sampledata = "*"
[feature.py312.dependencies]
python = "3.12.*"
bokeh_sampledata = "*"
[feature.example.dependencies]
bokeh = ">3.1"
dask-core = "*"
dask-geopandas = "*"
fastparquet = "*"
geodatasets = "*"
geopandas-base = "*"
graphviz = "*"
holoviews = "*"
matplotlib-base = ">=3.3"
networkx = "*"
panel = ">1.1"
pyogrio = "*"
python-graphviz = "*"
python-snappy = "*"
rasterio = "*"
scikit-image = "*"
shapely = ">=2.0.0"
spatialpandas = "*"
streamz = "*"
# =============================================
# =================== TESTS ===================
# =============================================
[feature.test-core.dependencies]
psutil = "*"
pytest = "*"
pytest-benchmark = "*"
pytest-cov = "*"
pytest-github-actions-annotate-failures = "*"
pytest-xdist = "*"
[feature.test-unit-task.tasks] # So it is not showing up in the test-gpu environment
test-unit = 'pytest datashader -n logical --dist loadgroup --benchmark-skip'
test-unit-nojit = { cmd = 'pytest datashader -k "not test_tiles" -n logical --dist loadgroup --benchmark-skip', env = { NUMBA_DISABLE_JIT = '1' } }
test-benchmark = 'pytest datashader/tests --benchmark'
[feature.test.dependencies]
dask-core = "*"
dask-expr = "*"
dask-geopandas = "*"
geodatasets = "*"
geopandas-base = "*"
netcdf4 = "*"
pyarrow = "*"
pyogrio = "*"
rasterio = "*"
rioxarray = "*"
scikit-image = "*"
shapely = ">=2.0.0"
spatialpandas = "*"
[feature.test-example.dependencies]
nbval = "*"
[feature.test-example.tasks]
test-example = { cmd = 'pytest -n logical --dist loadscope --nbval-lax examples --benchmark-skip', env = { DASK_DATAFRAME__QUERY_PLANNING = "False" } }
[feature.test-gpu]
channels = ["rapidsai"]
platforms = ["linux-64"]
[feature.test-gpu.activation.env]
NUMBA_CUDA_LOW_OCCUPANCY_WARNINGS = '0'
[feature.test-gpu.dependencies]
cuda-version = "12.2.*"
cudf = "24.10.*"
cupy = "*"
dask-cudf = "*"
dask-expr = "*"
librmm = { version = "*", channel = "rapidsai" }
rmm = { version = "*", channel = "rapidsai" }
[feature.test-gpu.tasks]
test-gpu = "python -m pytest datashader/tests -n logical --dist loadgroup --gpu --benchmark-skip"
test-benchmark = 'pytest datashader/tests --benchmark --gpu'
# =============================================
# =================== DOCS ====================
# =============================================
[feature.doc.dependencies]
nbsite = ">=0.8.4,<0.9.0"
numpydoc = "*"
sphinxcontrib-mermaid = "*"
[feature.doc.activation.env]
DASK_DATAFRAME__QUERY_PLANNING = "False"
[feature.doc.tasks]
_docs-generate-rst = 'nbsite generate-rst --org holoviz --project-name datashader'
_docs-generate = 'nbsite build --what=html --output=builtdocs --org holoviz --project-name datashader'
[feature.doc.tasks.docs-build]
depends_on = ['_docs-generate-rst', '_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 .'
[feature.build.activation.env]
MPLBACKEND = "Agg"
DASK_DATAFRAME__QUERY_PLANNING = "False"
# =============================================
# =================== LINT ====================
# =============================================
[feature.lint.dependencies]
pre-commit = "*"
[feature.lint.tasks]
lint = 'pre-commit run --all-files'
lint-install = 'pre-commit install'