Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tox devdeps npy2 #1

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/spherical_geometry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,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_npy2
posargs: -v
12 changes: 8 additions & 4 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,-devdeps_npy2}{,-cov}
codestyle
twine
bandit
Expand All @@ -10,7 +10,8 @@ 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
devdeps_npy2: 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

# Run the tests in a temporary directory to make sure that we don't import
# package from the source tree
Expand All @@ -27,14 +28,17 @@ changedir = .tmp/{envname}
description =
run tests
devdeps: with the latest developer version of key dependencies
devdeps_npy2: with numpy 2.x
cov: and test coverage

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: numpy<=2.0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps_npy2: pyerfa>=0.0.dev0
devdeps_npy2: numpy>=2.0.0.dev0
devdeps_npy2: astropy>=0.0.dev0

cov: pytest-cov

Expand Down