Skip to content

Commit 8d4ca41

Browse files
authored
Merge branch 'main' into typing-errors
2 parents b90cbda + 485224f commit 8d4ca41

File tree

8 files changed

+39
-168
lines changed

8 files changed

+39
-168
lines changed

.github/workflows/ci-osx.yaml

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

.github/workflows/ci-windows.yaml

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

.github/workflows/ci-linux.yaml renamed to .github/workflows/ci.yaml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux CI
1+
name: Tests
22

33
on: [push, pull_request]
44

@@ -8,11 +8,13 @@ concurrency:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.platform }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12"]
16+
# macos-12 is an intel runner, macos-14 is a arm64 runner
17+
platform: [ubuntu-latest, windows-latest, macos-12, macos-14]
1618

1719
steps:
1820
- name: Checkout source
@@ -41,6 +43,13 @@ jobs:
4143
c-compiler cxx-compiler
4244
python=${{matrix.python-version}} wheel pip
4345
46+
- name: Install clang
47+
shell: "bash -l {0}"
48+
if: matrix.platform == 'macos-12'
49+
run: |
50+
conda activate env
51+
conda install -y 'clang>=12.0.1,<17'
52+
4453
- name: Show info about `env` environment
4554
shell: "bash -l {0}"
4655
run: |
@@ -51,7 +60,16 @@ jobs:
5160
run: |
5261
conda activate env
5362
export DISABLE_NUMCODECS_AVX2=""
54-
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
63+
# TODO: put back zfpy import when it supports numpy 2.0
64+
python -m pip install -v -e .[test,test_extras,msgpack,pcodec]
65+
66+
# This is used to test with zfpy, which does not yet support numpy 2.0
67+
- name: Install older numpy and zfpy
68+
if: matrix.python-version == '3.10'
69+
shell: "bash -l {0}"
70+
run: |
71+
conda activate env
72+
python -m pip install "zfpy>=1" "numpy<2"
5573
5674
- name: List installed packages
5775
shell: "bash -l {0}"
@@ -71,11 +89,7 @@ jobs:
7189
conda activate env
7290
pytest -v
7391
74-
- uses: codecov/codecov-action@v3
92+
- uses: codecov/codecov-action@v4
7593
with:
76-
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
77-
#files: ./coverage1.xml,./coverage2.xml # optional
78-
#flags: unittests # optional
79-
#name: codecov-umbrella # optional
80-
#fail_ci_if_error: true # optional (default = false)
81-
verbose: true # optional (default = false)
94+
token: ${{ secrets.CODECOV_TOKEN }}
95+
verbose: true

.github/workflows/wheel.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-latest, windows-latest, macos-12]
16+
# macos-12 is an intel runner, macos-14 is a arm64 runner
17+
os: [ubuntu-latest, windows-latest, macos-12, macos-14]
1718
env:
1819
CIBW_TEST_COMMAND: python -c "import numcodecs"
19-
CIBW_SKIP: "pp* cp36-* *-musllinux_* *win32 *_i686 *_s390x"
20-
CIBW_ARCHS_MACOS: 'x86_64 arm64'
21-
CIBW_TEST_SKIP: '*-macosx_arm64'
20+
CIBW_BUILD: "cp310-* cp311-* cp312-*"
21+
CIBW_SKIP: "pp* *-musllinux_* *win32 *_i686 *_s390x"
2222
# note: CIBW_ENVIRONMENT is now set in pyproject.toml
2323

2424
steps:
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/setup-python@v5
4545
name: Install Python
4646
with:
47-
python-version: '3.9'
47+
python-version: '3.10'
4848

4949
- name: Build sdist
5050
run: pipx run build --sdist

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ submodules:
66
build:
77
os: ubuntu-20.04
88
tools:
9-
python: "3.9"
9+
python: "3.12"
1010

1111
sphinx:
1212
configuration: docs/conf.py

docs/release.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Release notes
1111
Unreleased
1212
----------
1313

14+
Maintenance
15+
~~~~~~~~~~~
16+
* The minimum supported Python version is now Python 3.10.
17+
1418
Enhancements
1519
~~~~~~~~~~~~
1620

@@ -24,7 +28,7 @@ Fix
2428

2529
* Fix skip of entry points backport tests
2630
By :user:`Elliott Sales de Andrade <QuLogic>`, :issue:`487`.
27-
* Fix Upgrade to Zstd 1.5.5 due to potential corruption.
31+
* Fix Upgrade to Zstd 1.5.5 due to potential corruption.
2832
By :user:`Mark Kittisopikul <mkitti>`, :issue:`429`
2933

3034
Maintenance

numcodecs/registry.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
def run_entrypoints():
1818
entries.clear()
1919
eps = entry_points()
20-
if hasattr(eps, 'select'):
21-
# If entry_points() has a select method, use that. Python 3.10+
22-
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})
23-
else:
24-
# Otherwise, fallback to using get
25-
entries.update({e.name: e for e in eps.get("numcodecs.codecs", [])})
20+
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})
2621

2722

2823
run_entrypoints()

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ A Python package providing buffer compression and transformation codecs \
1414
for use in data storage and communication applications."""
1515
readme = "README.rst"
1616
dependencies = [
17-
"numpy>=1.7,<2",
17+
"numpy>=1.7",
1818
]
19-
requires-python = ">=3.8"
19+
requires-python = ">=3.10"
2020
dynamic = [
2121
"version",
2222
]

0 commit comments

Comments
 (0)