Skip to content

Commit e022e98

Browse files
Update tox environments
1 parent 046fd88 commit e022e98

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

requirements-dev-thirdparty.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ git+https://github.com/seperman/deepdiff.git@dev
1010

1111
# Use weekly astropy dev build
1212
git+https://github.com/astropy/asdf-astropy.git
13-
--extra-index-url https://pypi.anaconda.org/liberfa/simple pyerfa --pre
14-
--extra-index-url https://pypi.anaconda.org/astropy/simple
1513
astropy>=0.0.dev0
14+
pyerfa>=0.0.dev0
1615
photutils>=0.0.dev0
1716

1817
# Use Bi-weekly numpy/scipy dev builds
19-
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
2018
numpy>=2.0.0.dev0
2119
scipy>=0.0.dev0

tox.ini

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ env_list =
44
test{,-alldeps,-devdeps}{,-pyargs,-warnings,-regtests,-cov,-webbpsf}{-nolegacypath}
55
test-numpy{120,121,122}-xdist
66
build-{docs,dist}
7+
requires =
8+
tox-uv
79

810
# tox environments are constructed with so-called 'factors' (or terms)
911
# separated by hyphens, e.g. test-devdeps-cov. Lines below starting with factor:
@@ -56,20 +58,26 @@ pass_env =
5658
CODECOV_*
5759
DD_*
5860
WEBBPSF_PATH
61+
set_env =
62+
devdeps: UV_INDEX = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
63+
devdeps: UV_INDEX_STRATEGY = unsafe-any-match
5964
extras =
6065
test
6166
alldeps: all
67+
uv_resolution =
68+
oldestdeps: lowest-direct
6269
deps =
6370
xdist: pytest-xdist
6471
ddtrace: ddtrace
65-
oldestdeps: minimum_dependencies
72+
stdevdeps,devdeps: -r requirements-dev-st.txt
73+
devdeps: -r requirements-dev-thirdparty.txt
74+
sdpdeps: -r requirements-sdp.txt
75+
oldestdeps: minimum_dependencies>=0.1.0
76+
oldestdeps: setuptools>=69 # for pkg_resources for pysiaf
6677
commands_pre =
6778
oldestdeps: minimum_dependencies romancal --filename requirements-min.txt
68-
oldestdeps: pip install -r requirements-min.txt
69-
stdevdeps: pip install -r requirements-dev-st.txt -U --upgrade-strategy eager
70-
devdeps: pip install -I -r requirements-dev-thirdparty.txt -r requirements-dev-st.txt -U --upgrade-strategy eager
71-
sdpdeps: pip install -r requirements-sdp.txt
72-
pip list
79+
oldestdeps: uv pip install -r requirements-min.txt
80+
{list_dependencies_command}
7381
commands =
7482
pytest \
7583
cov: --cov --cov-config pyproject.toml --cov-report term-missing --cov-report xml \

0 commit comments

Comments
 (0)