From 4b4e48bff59fded9774dfda4e2ae2038cfe8574f Mon Sep 17 00:00:00 2001 From: skjerns Date: Sun, 21 Jul 2024 09:28:06 +0200 Subject: [PATCH] update specs to support numpy 2 add mac-os fix add cross-version-numpy2-test release oldest-supported-numpy --- .github/workflows/tests.yml | 6 +++++ .../workflows/testz_numpy_2_compatibility.yml | 25 +++++++++++++++++++ pyproject.toml | 2 +- setup.py | 5 ++-- 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/testz_numpy_2_compatibility.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6047de..ef4f163 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,12 @@ jobs: matrix: os: [ubuntu-latest, windows-2019, windows-latest, macos-latest] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + exclude: # Python < v3.8 does not support Apple Silicon ARM64. + - python-version: "3.7" + os: macos-latest + include: # So run those legacy versions on Intel CPUs. + - python-version: "3.7" + os: macos-13 steps: - uses: actions/checkout@v3 - name: Setup Python diff --git a/.github/workflows/testz_numpy_2_compatibility.yml b/.github/workflows/testz_numpy_2_compatibility.yml new file mode 100644 index 0000000..4c071a9 --- /dev/null +++ b/.github/workflows/testz_numpy_2_compatibility.yml @@ -0,0 +1,25 @@ +name: Run numpy 2<->1 compatibility +on: + pull_request: + branches: + - '*' +jobs: + run: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-2019, windows-latest, macos-latest] + python-version: ["3.8", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install packages + run: | + pip install numpy==1.24 + pip install pytest + pip install -e . + pip install -r requirements-test.txt + pytest diff --git a/pyproject.toml b/pyproject.toml index ae1ac89..d546d3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "setuptools", - "oldest-supported-numpy", + "numpy>=1.9.1", "cython" ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 0911db1..bc3f517 100644 --- a/setup.py +++ b/setup.py @@ -299,17 +299,16 @@ def install_for_development(self): long_description=open('README.rst').read(), keywords=["EDFlib", "European data format", "EDF", "BDF", "EDF+", "BDF+"], classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", + "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",