Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tox environments #1540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading