Skip to content

Commit

Permalink
Update tox environments
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Nov 26, 2024
1 parent 046fd88 commit e022e98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 1 addition & 3 deletions requirements-dev-thirdparty.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 14 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit e022e98

Please sign in to comment.