From 0b208292592ec8491cc7fd94b380e38b4df7478d Mon Sep 17 00:00:00 2001 From: Sam Bianco Date: Tue, 11 Jun 2024 12:29:26 -0400 Subject: [PATCH] numpy 2 testing env --- .github/workflows/ci_workflows.yml | 5 +++++ astrocut/utils/wcs_fitting.py | 1 + tox.ini | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index e0d2da89..8619c3d6 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -37,6 +37,11 @@ jobs: python: "3.10" toxenv: py310-test-alldeps + - name: Python 3.10 with numpy 2 + os: ubuntu-latest + python: "3.10" + toxenv: py310-test-alldeps-numpy2 + steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/astrocut/utils/wcs_fitting.py b/astrocut/utils/wcs_fitting.py index 92c8a93d..8cdc8b84 100644 --- a/astrocut/utils/wcs_fitting.py +++ b/astrocut/utils/wcs_fitting.py @@ -15,6 +15,7 @@ # flake8: noqa +import copy import numpy as np from astropy import units as u diff --git a/tox.ini b/tox.ini index 23fdfe53..72d74411 100644 --- a/tox.ini +++ b/tox.ini @@ -38,12 +38,14 @@ description = astropy52: with astropy 5.2.* numpy120: with numpy 1.20.* numpy123: with numpy 1.23.* + numpy2: with numpy 2 astroquery04: with astroquery 0.4.* # The following provides some specific pinnings for key packages deps = numpy120: numpy==1.20.* numpy123: numpy==1.23.* + numpy2: numpy==2.0.0rc2 astropy52: astropy==5.2.*