Skip to content

Commit

Permalink
Merge pull request #260 from holgern/migrate_np2
Browse files Browse the repository at this point in the history
Update to numpy 2
  • Loading branch information
skjerns authored Jul 27, 2024
2 parents 168ae65 + 4b4e48b commit 0bad011
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/testz_numpy_2_compatibility.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools",
"oldest-supported-numpy",
"numpy>=1.9.1",
"cython"
]
build-backend = "setuptools.build_meta"
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0bad011

Please sign in to comment.