Skip to content

Commit 4b5b22d

Browse files
authored
Merge branch 'main' into maxrjones-patch-1
2 parents 3377a6d + 06a53c6 commit 4b5b22d

89 files changed

Lines changed: 1709 additions & 1474 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ coverage:
77
patch:
88
default:
99
target: 100
10+
ignore:
11+
- "tests/**"
1012
comment:
1113
layout: "diff, files"
1214
behavior: default

.github/workflows/ci-i386.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ jobs:
6363
run: |
6464
export DISABLE_NUMCODECS_AVX2=""
6565
uv venv
66-
uv pip install -v -e .[test,test_extras,msgpack,crc32c,pcodec,zfpy]
66+
# TODO: Remove this conditional when pcodec supports Python 3.14
67+
if [[ "${{ matrix.python-version }}" == "3.14" ]]; then
68+
uv pip install -v -e .[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]
69+
else
70+
uv pip install -v -e .[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]
71+
fi
6772
shell: alpine.sh {0}
6873

6974
- name: List installed packages

.github/workflows/ci.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.11", "3.12", "3.13"]
16-
# macos-13 is an intel runner, macos-14 is an arm64 runner
17-
platform: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-13, macos-14]
15+
python-version: ["3.11", "3.12", "3.13", "3.14"]
16+
# macos-15-large is an intel runner, macos-14 is an arm64 runner
17+
platform: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-15-large, macos-14]
1818

1919
defaults:
2020
run:
@@ -38,7 +38,7 @@ jobs:
3838
run: conda install -y c-compiler cxx-compiler
3939

4040
- name: Install clang
41-
if: matrix.platform == 'macos-13'
41+
if: matrix.platform == 'macos-15-large'
4242
run: conda install -y 'clang>=12.0.1,<17'
4343

4444
- name: Show conda environment info
@@ -50,7 +50,12 @@ jobs:
5050
- name: Install numcodecs
5151
run: |
5252
export DISABLE_NUMCODECS_AVX2=""
53-
python -m pip install -v -e .[test,test_extras,msgpack,crc32c,pcodec,zfpy]
53+
# TODO: Remove this conditional when pcodec supports Python 3.14
54+
if [[ "${{ matrix.python-version }}" == "3.14" ]]; then
55+
python -m pip install -v -e .[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]
56+
else
57+
python -m pip install -v -e .[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]
58+
fi
5459
5560
- name: List installed packages
5661
run: python -m pip list
@@ -70,7 +75,7 @@ jobs:
7075
strategy:
7176
fail-fast: false
7277
matrix:
73-
zarr-version: ["312", "313"]
78+
zarr-version: ["312", "313", "main"]
7479

7580
defaults:
7681
run:
@@ -95,4 +100,10 @@ jobs:
95100

96101
- name: Run tests with Zarr ${{ matrix.zarr-version }}
97102
shell: "bash -l {0}"
98-
run: pixi run test-zarr-${{ matrix.zarr-version }}
103+
run: pixi run test-zarr-${{ matrix.zarr-version }}
104+
105+
- uses: codecov/codecov-action@v5
106+
with:
107+
fail_ci_if_error: true
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
verbose: true

.github/workflows/wheel.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
# macos-13 is an intel runner, macos-14 is an arm64 runner
23-
os: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-13, macos-14]
22+
# macos-15-large is an intel runner, macos-14 is an arm64 runner
23+
os: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-15-large, macos-14]
2424
env:
2525
CIBW_TEST_COMMAND: python -c "import numcodecs"
2626
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ repos:
1414
- id: debug-statements
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.11.12
17+
rev: v0.14.6
1818
hooks:
19-
- id: ruff
19+
- id: ruff-check
2020
args: ["--fix", "--show-fixes"]
2121
- id: ruff-format
2222

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
recursive-include c-blosc *
22
recursive-include numcodecs *.pyx
33
recursive-include numcodecs *.pxd
4-
include numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Numcodecs
2+
3+
Numcodecs is a Python package providing buffer compression and transformation
4+
codecs for use in data storage and communication applications.
5+
6+
[![Docs](https://readthedocs.org/projects/numcodecs/badge/?version=latest)](https://numcodecs.readthedocs.io/en/latest/?badge=latest)
7+
[![Tests](https://github.com/zarr-developers/numcodecs/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/zarr-developers/numcodecs/actions/workflows/ci.yaml)
8+
[![Wheels](https://github.com/zarr-developers/numcodecs/actions/workflows/wheel.yaml/badge.svg?branch=main)](https://github.com/zarr-developers/numcodecs/actions/workflows/wheel.yaml)
9+
[![Codecov](https://codecov.io/gh/zarr-developers/numcodecs/branch/main/graph/badge.svg)](https://codecov.io/gh/zarr-developers/numcodecs)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Codec API
2-
=========
1+
# Codec API
2+
3+
```{eval-rst}
34
.. automodule:: numcodecs.abc
45
56
.. autoclass:: Codec
@@ -9,3 +10,4 @@ Codec API
910
.. automethod:: decode
1011
.. automethod:: get_config
1112
.. automethod:: from_config
13+
```

docs/api.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# API reference
2+
3+
```{toctree}
4+
:maxdepth: 2
5+
6+
compression/index
7+
filter/index
8+
other/index
9+
checksum32
10+
abc
11+
registry
12+
zarr3
13+
```

docs/api.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)