Skip to content

Commit

Permalink
Update to use oldestdeps from uv
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Nov 22, 2024
1 parent 49ed32c commit aa456d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]
Expand Down
6 changes: 2 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit aa456d7

Please sign in to comment.