Skip to content

Commit 6428dd0

Browse files
committed
Remove pixi section
1 parent 794508a commit 6428dd0

2 files changed

Lines changed: 22 additions & 40 deletions

File tree

docs/contributing.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,26 @@ Or, if using venv/pip::
213213

214214
$ pytest -v
215215

216+
To test against specific Zarr-Python versions, use the dependency groups defined in
217+
``pyproject.toml``::
218+
219+
$ uv run --group test-zarr-312 pytest tests/test_zarr3.py tests/test_zarr3_import.py
220+
$ uv run --group test-zarr-313 pytest tests/test_zarr3.py tests/test_zarr3_import.py
221+
$ uv run --group test-zarr-main pytest tests/test_zarr3.py tests/test_zarr3_import.py
222+
223+
Or, if using venv/pip::
224+
225+
$ pip install --group test-zarr-312
226+
$ pytest tests/test_zarr3.py tests/test_zarr3_import.py
227+
228+
To test with different CRC32C implementations::
229+
230+
$ uv pip install "numcodecs[crc32c]" # sw-based crc32c
231+
$ pytest tests/test_checksum32.py -v
232+
233+
$ uv pip install "numcodecs[google_crc32c]" # hw-accelerated google-crc32c
234+
$ pytest tests/test_checksum32.py -v
235+
216236
All tests are automatically run via GitHub Actions for every pull request across Linux
217237
(x86_64, aarch64, i386), macOS (x86_64, arm64), and Windows (x86_64), with Python 3.11
218238
through 3.14. Tests must pass on all platforms before code can be accepted.

pyproject.toml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ warn_unused_configs = true
242242
# meson-python editable installs require build deps (ninja, meson) at runtime for
243243
# auto-rebuild on import. Skip build isolation so the venv's ninja is used.
244244
# The "dev" dependency group provides these build tools. Bootstrap with:
245-
# uv pip install meson-python meson ninja cython numpy setuptools-scm
246-
# before running uv sync.
245+
# `uv pip install --group dev` before running
246+
# `uv pip install --no-build-isolation -e ".[test,test_extras,msgpack]"`.
247247
no-build-isolation-package = ["numcodecs"]
248248
conflicts = [
249249
# Zarr versions conflict with each other
@@ -253,41 +253,3 @@ conflicts = [
253253
{ group = "test-zarr-main" }
254254
]
255255
]
256-
257-
[tool.pixi.workspace]
258-
channels = ["conda-forge"]
259-
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
260-
261-
[tool.pixi.dependencies]
262-
python = "=3.14"
263-
clang = ">=19.1.7,<20"
264-
c-compiler = ">=1.9.0,<2"
265-
cxx-compiler = ">=1.9.0,<2"
266-
uv = "*"
267-
268-
[tool.pixi.feature.test.pypi-dependencies]
269-
numcodecs = { path = ".", editable = true, extras = ["test","test_extras","msgpack","zfpy"] }
270-
271-
[tool.pixi.feature.test-google-crc32c.pypi-dependencies]
272-
numcodecs = { path = ".", editable = true, extras = ["google_crc32c"] }
273-
274-
[tool.pixi.feature.test-crc32c.pypi-dependencies]
275-
numcodecs = { path = ".", editable = true, extras = ["crc32c"] }
276-
277-
[tool.pixi.environments]
278-
default = { solve-group = "default" }
279-
test = ["test"]
280-
test-crc32c = ["test", "test-crc32c"]
281-
test-google-crc32c = ["test", "test-google-crc32c"]
282-
283-
[tool.pixi.tasks]
284-
bootstrap = "uv pip install meson-python meson ninja cython numpy setuptools-scm"
285-
ls-deps-312 = { cmd = "uv run --group test-zarr-312 uv pip freeze", depends-on = ["bootstrap"] }
286-
ls-deps-313 = { cmd = "uv run --group test-zarr-313 uv pip freeze", depends-on = ["bootstrap"] }
287-
ls-deps-main = { cmd = "uv run --group test-zarr-main uv pip freeze", depends-on = ["bootstrap"] }
288-
test-zarr-312 = { cmd = "uv run --group test-zarr-312 pytest --cov=numcodecs --cov-report=xml --cov-report=term tests/test_zarr3.py tests/test_zarr3_import.py", depends-on = ["bootstrap"] }
289-
test-zarr-313 = { cmd = "uv run --group test-zarr-313 pytest --cov=numcodecs --cov-report=xml --cov-report=term tests/test_zarr3.py tests/test_zarr3_import.py", depends-on = ["bootstrap"] }
290-
test-zarr-main = { cmd = "uv run --group test-zarr-main pytest --cov=numcodecs --cov-report=xml --cov-report=term tests/test_zarr3.py tests/test_zarr3_import.py", depends-on = ["bootstrap"] }
291-
292-
[tool.pixi.feature.test.tasks]
293-
run-tests = "pytest -v"

0 commit comments

Comments
 (0)