From b08965afb5c513764286d8a11795f550d4fd13cc Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Mon, 25 Nov 2024 14:57:41 -0500 Subject: [PATCH] Update tox environments --- requirements-dev-thirdparty.txt | 4 +--- tox.ini | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/requirements-dev-thirdparty.txt b/requirements-dev-thirdparty.txt index 74ad2dfe4..b465537ae 100644 --- a/requirements-dev-thirdparty.txt +++ b/requirements-dev-thirdparty.txt @@ -10,12 +10,10 @@ git+https://github.com/seperman/deepdiff.git@dev # Use weekly astropy dev build git+https://github.com/astropy/asdf-astropy.git ---extra-index-url https://pypi.anaconda.org/liberfa/simple pyerfa --pre ---extra-index-url https://pypi.anaconda.org/astropy/simple astropy>=0.0.dev0 +pyerfa>=0.0.dev0 photutils>=0.0.dev0 # Use Bi-weekly numpy/scipy dev builds ---extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy>=2.0.0.dev0 scipy>=0.0.dev0 diff --git a/tox.ini b/tox.ini index 68cf212cb..e04ab87da 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,8 @@ env_list = test{,-alldeps,-devdeps}{,-pyargs,-warnings,-regtests,-cov,-webbpsf}{-nolegacypath} test-numpy{120,121,122}-xdist build-{docs,dist} +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: @@ -56,20 +58,26 @@ pass_env = CODECOV_* DD_* WEBBPSF_PATH +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 alldeps: all +uv_resolution = + oldestdeps: lowest-direct deps = xdist: pytest-xdist ddtrace: ddtrace - oldestdeps: minimum_dependencies + stdevdeps,devdeps: -r requirements-dev-st.txt + devdeps: -r requirements-dev-thirdparty.txt + sdpdeps: -r requirements-sdp.txt + oldestdeps: minimum_dependencies>=0.1.0 + oldestdeps: setuptools>=69 # for pkg_resources for pysiaf commands_pre = oldestdeps: minimum_dependencies romancal --filename requirements-min.txt - oldestdeps: pip install -r requirements-min.txt - stdevdeps: pip install -r requirements-dev-st.txt -U --upgrade-strategy eager - devdeps: pip install -I -r requirements-dev-thirdparty.txt -r requirements-dev-st.txt -U --upgrade-strategy eager - sdpdeps: pip install -r requirements-sdp.txt - pip list + oldestdeps: uv pip install -r requirements-min.txt + {list_dependencies_command} commands = pytest \ cov: --cov --cov-config pyproject.toml --cov-report term-missing --cov-report xml \