From 47f94fabb94b229decb3064cae99679a1992cafe Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 29 Oct 2024 20:03:32 +0000 Subject: [PATCH 1/5] Bump minimum numpy and Python versions --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/wheel.yaml | 4 ++-- docs/release.rst | 7 +++++++ pyproject.toml | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 88f528ca..3256c80f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13"] # macos-12 is an intel runner, macos-14 is a arm64 runner platform: [ubuntu-latest, windows-latest, macos-12, macos-14] @@ -73,7 +73,7 @@ jobs: # This is used to test with zfpy, which does not yet support numpy 2.0 - name: Install older numpy and zfpy - if: matrix.python-version == '3.10' + if: matrix.python-version == '3.11' shell: "bash -l {0}" run: | conda activate env diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index 592b386f..7353ffe4 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -17,7 +17,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-12, macos-14] env: CIBW_TEST_COMMAND: python -c "import numcodecs" - CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*" + CIBW_BUILD: "cp311-* cp312-* cp313-*" CIBW_SKIP: "pp* *-musllinux_* *win32 *_i686 *_s390x" # note: CIBW_ENVIRONMENT is now set in pyproject.toml @@ -44,7 +44,7 @@ jobs: - uses: actions/setup-python@v5 name: Install Python with: - python-version: "3.10" + python-version: "3.11" - name: Build sdist run: pipx run build --sdist diff --git a/docs/release.rst b/docs/release.rst index 575dd9e8..7e2d1c7d 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -25,6 +25,13 @@ Enhancements * Add Crc32c checksum codec By :user:`Norman Rzepka `, :issue:`613`. +Maintenance +~~~~~~~~~~~ +* The minimum supported Python version is now Python 3.11. + By :user:`David Stansby `, :issue:`621` +* The minimum supported numpy version is now 1.24. + By :user:`David Stansby `, :issue:`621` + .. _release_0.13.1: 0.13.1 diff --git a/pyproject.toml b/pyproject.toml index a4552937..dc2ba42e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,9 +15,9 @@ A Python package providing buffer compression and transformation codecs \ for use in data storage and communication applications.""" readme = "README.rst" dependencies = [ - "numpy>=1.7", + "numpy>=1.23", ] -requires-python = ">=3.10" +requires-python = ">=3.11" dynamic = [ "version", ] From 66c6f3124f3e145e7c72f17b8be73bcad2289220 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 29 Oct 2024 20:04:40 +0000 Subject: [PATCH 2/5] Fix issue numbere --- docs/release.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/release.rst b/docs/release.rst index 7e2d1c7d..2615d97a 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -28,9 +28,9 @@ Enhancements Maintenance ~~~~~~~~~~~ * The minimum supported Python version is now Python 3.11. - By :user:`David Stansby `, :issue:`621` + By :user:`David Stansby `, :issue:`622` * The minimum supported numpy version is now 1.24. - By :user:`David Stansby `, :issue:`621` + By :user:`David Stansby `, :issue:`622` .. _release_0.13.1: From bf1dc0aea4a2ae9b2c42d069354a2aa34c79cb75 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 30 Oct 2024 08:40:08 +0000 Subject: [PATCH 3/5] Bump build system numpy requirement --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dc2ba42e..c4078661 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "setuptools-scm[toml]>=6.2", "Cython", "py-cpuinfo", - "numpy", + "numpy>2", ] build-backend = "setuptools.build_meta" From 1614f432fff622beba0f2566833598ed7fb24b77 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 30 Oct 2024 09:03:08 +0000 Subject: [PATCH 4/5] Pin pcodec --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c4078661..c336c72c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ zfpy = [ "numpy<2.0.0", ] pcodec = [ - "pcodec>=0.2.0", + "pcodec>=0.2,<0.3", ] crc32c = [ "crc32c>=2.7", From a77b24156a2e5e69bedf800e1420703ff0bbcf37 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 30 Oct 2024 09:10:22 +0000 Subject: [PATCH 5/5] Fix pcodec install --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3256c80f..6a9e09c2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,7 +68,7 @@ jobs: shell: "bash -l {0}" run: | conda activate env - python -m pip install -v pcodec + python -m pip install -v ".[pcodec]" # This is used to test with zfpy, which does not yet support numpy 2.0