Skip to content

Commit af4066d

Browse files
committed
Remove NumPy<2 pin
Test NumPy 1 separately Update Python versions Fix docs build with NumPy 2
1 parent 4c3ce83 commit af4066d

File tree

10 files changed

+20
-16
lines changed

10 files changed

+20
-16
lines changed

.github/workflows/build-numpy-2.yml renamed to .github/workflows/build-numpy-1.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build NumPy 2
1+
name: Build NumPy 1
22

33
on:
44
push:
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.10", "3.11", "3.12"]
14+
python-version: ["3.10", "3.11"]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -22,9 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -r requirements-numpy2.txt -r requirements-numpy2-dev.txt
26-
# update bio2zarr for NumPy 2, see https://github.com/sgkit-dev/bio2zarr/issues/256
27-
pip install -U 'numpy<2.1' -U git+https://github.com/sgkit-dev/bio2zarr.git
25+
pip install -r requirements-numpy1.txt -r requirements-numpy1-dev.txt
2826
# - name: Run pre-commit
2927
# uses: pre-commit/[email protected]
3028
- name: Test with pytest and coverage

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.10", "3.11"]
17+
python-version: ["3.10", "3.11", "3.12"]
1818

1919
steps:
2020
- uses: actions/checkout@v2

.github/workflows/check-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.10"]
17+
python-version: ["3.11"]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -28,6 +28,7 @@ jobs:
2828
sudo apt install graphviz # Needed for documentation
2929
python -m pip install --upgrade pip
3030
pip install -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt
31+
pip install -U dask distributed # need latest versions to successully build docs
3132
- name: Run pre-commit
3233
uses: pre-commit/[email protected]
3334
- name: Check for Sphinx doc warnings

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ jobs:
1515
- name: Set up Python ${{ matrix.python-version }}
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: "3.10"
18+
python-version: "3.11"
1919
- name: Install dependencies
2020
run: |
2121
sudo apt update -y
2222
sudo apt install graphviz # Needed for documentation
2323
python -m pip install --upgrade pip
2424
pip install -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt
25+
pip install -U dask distributed # need latest versions to successully build docs
2526
- name: Build Sphinx documentation
2627
run: |
2728
cd docs

docs/changelog.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ Breaking changes
2929
.. Deprecations
3030
.. ~~~~~~~~~~~~
3131
32-
.. Improvements
33-
.. ~~~~~~~~~~~~
32+
Improvements
33+
~~~~~~~~~~~~
34+
35+
- Add support for NumPy 2.
36+
(:user:`tomwhite`, :pr:`1297`)
3437

3538
.. Bug fixes
3639
.. ~~~~~~~~~

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ scikit-learn
1212
partd
1313
bed-reader
1414
rechunker
15-
cbgen < 1.0.5
15+
cbgen > 1.0.5
1616
bio2zarr @ git+https://github.com/sgkit-dev/bio2zarr.git; platform_system != "Windows"
1717
yarl
1818
matplotlib

requirements-numpy2-dev.txt renamed to requirements-numpy1-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ scikit-learn
1212
partd
1313
bed-reader
1414
rechunker
15-
cbgen > 1.0.5
15+
cbgen < 1.0.5
16+
bio2zarr @ git+https://github.com/sgkit-dev/bio2zarr.git; platform_system != "Windows"
1617
yarl
1718
matplotlib
1819
asv

requirements-numpy2.txt renamed to requirements-numpy1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy < 2.1
1+
numpy < 2
22
xarray < 2025.03.1
33
dask[array,dataframe] >= 2023.01.0, <= 2024.8.0
44
distributed >= 2023.01.0, <= 2024.8.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy < 2
1+
numpy < 2.2
22
xarray < 2025.03.1
33
dask[array,dataframe] >= 2023.01.0, <= 2024.8.0
44
distributed >= 2023.01.0, <= 2024.8.0

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ zip_safe = False # https://mypy.readthedocs.io/en/latest/installed_packages.htm
2727
include_package_data = True
2828
python_requires = >=3.10
2929
install_requires =
30-
numpy < 2
30+
numpy < 2.2
3131
xarray < 2025.03.1
3232
dask[array,dataframe] >= 2022.01.0, <= 2024.8.0
3333
distributed >= 2022.01.0, <= 2024.8.0
@@ -60,7 +60,7 @@ plink =
6060
bed-reader
6161
bgen =
6262
rechunker
63-
cbgen < 1.0.5
63+
cbgen > 1.0.5
6464

6565
[coverage:report]
6666
fail_under = 100

0 commit comments

Comments
 (0)