Skip to content

Commit

Permalink
add nominal numpy 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalle committed Jul 23, 2024
1 parent ce5fc34 commit 036503d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
# 2023
- python: "3.11"
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 rasterio==1.3.9"
# NumPy 1
- python: "3.11"
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 rasterio==1.3.9 numpy==1.26.4"
# NumPy 2
- python: "3.11"
pins: "sqlalchemy==2.0.24 alembic==1.13.1 geoalchemy2==0.14.3 rasterio==1.3.9 numpy==2.0.1"
# current
- python: "3.12"
#pins: "sqlalchemy==2.0.* alembic==1.13.* geoalchemy2==0.14.* rasterio==1.3.9.*"
Expand All @@ -50,7 +56,9 @@ jobs:
shell: bash
run: |
pip install --disable-pip-version-check --upgrade pip setuptools wheel
pip install ${{ matrix.pins }} .[test,rasterio] pygdal==$(gdal-config --version).*
pip install ${{ matrix.pins }}
pip install .[test,rasterio]
pip install GDAL==$(gdal-config --version) --no-build-isolation # install gdal AFTER numpy
pip list
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"numpy>=1.15,<2.0",
"numpy>=1.15,<3.0",
]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ threedi-api-client
aiofiles
aiohttp
pytest-asyncio
numpy>=1.15,<2.0
numpy>=1.15,<3.0

0 comments on commit 036503d

Please sign in to comment.