Skip to content

Commit

Permalink
Tox devdeps_npy2 (#271)
Browse files Browse the repository at this point in the history
* Support devdeps (numpy 1.x) and devdeps_npy2 (numpy 2.x)

* Add devdeps_npy2 target to matrix
  • Loading branch information
jhunkeler authored May 15, 2024
1 parent 125172a commit 49f8c89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/spherical_geometry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ jobs:
- name: Python 3.12 with dev version of dependencies
linux: py312-test-devdeps
posargs: -v
- name: Python 3.12 with dev version of dependencies (numpy 2.x)
linux: py312-test-devdeps-numpy2x
posargs: -v
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{39,310,311,312}-test{,-devdeps}{,-cov}
py{39,310,311,312}-test{,-devdeps,-numpy2x}{,-cov}
codestyle
twine
bandit
Expand All @@ -10,7 +10,7 @@ envlist =
passenv = HOME,WINDIR,CC,CI

setenv =
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/liberfa/simple
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple

# Run the tests in a temporary directory to make sure that we don't import
# package from the source tree
Expand All @@ -32,10 +32,9 @@ description =
deps =
# The devdeps factor is intended to be used to install the latest
# developer version or nightly wheel of key dependencies.
devdeps: pyerfa>=0.0.dev0
devdeps: numpy>=0.0.dev0
devdeps: astropy>=0.0.dev0

!numpy2x: numpy==1.*
numpy2x: numpy>=2.0.0.dev0
cov: pytest-cov

extras =
Expand Down

0 comments on commit 49f8c89

Please sign in to comment.