Skip to content

Commit

Permalink
Restrict numpy dependency to < 2 (#126)
Browse files Browse the repository at this point in the history
* restrict numpy < 2

* codespell, ignore assertIn

* update codecov action to v4

* add change log

* update matrix for GA tests
  • Loading branch information
rocco8773 authored Jun 25, 2024
1 parent 9353d77 commit 7aa1637
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
shell: bash
- name: Report coverage
if: ${{ matrix.do-coverage && !failure() }}
uses: codecov/codecov-action@v4.1.0
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .coverage
Expand All @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]

exclude:
Expand All @@ -76,6 +76,9 @@ jobs:
os: ubuntu-latest
- python: '3.7'
os: ubuntu-latest
# combo not available
- python: '3.7'
os: macos-latest

steps:
- name: Checkout code
Expand Down
1 change: 1 addition & 0 deletions changelog/126.pkg_management.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restrict `numpy` dependency to `numpy >= 1.2, < 2.0`.
2 changes: 1 addition & 1 deletion requirements/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
-r build.txt
astropy >= 4.3.1
h5py >= 3.0
numpy >= 1.20
numpy >= 1.20, < 2.0
scipy >= 0.19
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install_requires =
# ought to mirror requirements/install.txt
astropy >= 4.3.1
h5py >= 3.0
numpy >= 1.20
numpy >= 1.20, < 2.0
scipy >= 0.19

[options.extras_require]
Expand Down Expand Up @@ -82,3 +82,4 @@ skip = *.png,*cache*,*egg*,.git,.hypothesis,.idea,.tox,_build,venv
ignore-words-list =
crate,
oce,
assertIn,

0 comments on commit 7aa1637

Please sign in to comment.