From aa456d740a05e27df9ea3b969985ea0616b41c26 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 22 Nov 2024 15:57:14 -0500 Subject: [PATCH] Update to use oldestdeps from uv --- pyproject.toml | 4 ++-- requirements-dev.txt | 6 ++---- tox.ini | 11 ++++++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0ddae70a..c01ff653 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ "asdf >=3.3.0", "asdf-astropy >=0.5.0", "gwcs >=0.19.0", - "numpy >=1.22", + "numpy >=1.24", "astropy >=5.3.0", "rad >=0.22.0, <0.23.0", # "rad @ git+https://github.com/spacetelescope/rad.git", @@ -29,7 +29,7 @@ file = "LICENSE" test = [ "pytest >=6.0.0", "pytest-doctestplus", - "pytest-doctestplus >=0.10.0", + "pytest-doctestplus >=1.2.1", "pytest-env >= 0.8", ] aws = ["stsci-aws-utils >= 0.1.2"] diff --git a/requirements-dev.txt b/requirements-dev.txt index f42d2cc6..5cfb2054 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,11 +5,9 @@ git+https://github.com/asdf-format/asdf-wcs-schemas git+https://github.com/astropy/asdf-astropy # Use weekly astropy dev build ---extra-index-url https://pypi.anaconda.org/astropy/simple astropy --pre ---extra-index-url https://pypi.anaconda.org/liberfa/simple pyerfa --pre +astropy>=0.0.dev0 +pyerfa>=0.0.dev0 -# Use Bi-weekly numpy/scipy dev builds ---extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy>=0.0.dev0 scipy>=0.0.dev0 diff --git a/tox.ini b/tox.ini index f7842a5b..757475bd 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,8 @@ env_list = test-numpy{120,121,122}-xdist build-{docs,dist} withromancal +requires = + tox-uv # tox environments are constructed with so-called 'factors' (or terms) # separated by hyphens, e.g. test-devdeps-cov. Lines below starting with factor: @@ -38,18 +40,21 @@ pass_env = CI TOXENV CODECOV_* +set_env = + devdeps: UV_INDEX = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple + devdeps: UV_INDEX_STRATEGY = unsafe-any-match extras = test +uv_resolution = + oldestdeps: lowest-direct deps = xdist: pytest-xdist cov: pytest-cov oldestdeps: minimum_dependencies rad: rad @ git+https://github.com/spacetelescope/rad.git@main#egg=rad romancal: romancal[test] @ git+https://github.com/spacetelescope/romancal.git + devdeps: -r requirements-dev.txt commands_pre = - oldestdeps: minimum_dependencies roman_datamodels --filename requirements-min.txt - oldestdeps: pip install -r requirements-min.txt - devdeps: pip install -r requirements-dev.txt -U --upgrade-strategy eager {list_dependencies_command} commands = pytest \