Skip to content

Commit

Permalink
Merge pull request #807 from mwcraig/more-minimum-version-updates
Browse files Browse the repository at this point in the history
Fix the tox test for oldest dependencies
  • Loading branch information
mwcraig committed May 25, 2023
2 parents 4b3ad2d + 65d7213 commit fc6ce71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ github_project = astropy/ccdproc
packages = find:
zip_safe = False
setup_requires = setuptools_scm
install_requires = numpy>=1.18
install_requires = numpy>=1.21
astropy>=5.0.1
scipy
astroscrappy>=1.0.8
Expand Down
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,21 @@ deps =
# packages which are constrained in the setup.cfg
# NOTE ABOUT NUMPY VERSION: for astroscrappy 1.0.8 have to use at least 1.20
# for the tests to even get to the point of running.
oldestdeps: numpy==1.20.*
oldestdeps: astropy==4.0.*
oldestdeps: numpy==1.21.*
oldestdeps: astropy==5.0.*
oldestdeps: reproject==0.7
oldestdeps: astroscrappy==1.0.8
# astroscrappy needs to install AFTER numpy so its install is done in
# the commands section instead of here.
#oldestdeps: astroscrappy==1.0.8
oldestdeps: cython

commands =
pip freeze
!cov-!oldestdeps: pytest --pyargs ccdproc {toxinidir}/docs {posargs}
cov: pytest --pyargs ccdproc {toxinidir}/docs --cov ccdproc --cov-config={toxinidir}/setup.cfg {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
# install astroscrappy after numpy
oldestdeps: python -m pip install astroscrappy==1.0.8
# Do not care about warnings on the oldest builds
oldestdeps: pytest --pyargs ccdproc {toxinidir}/docs -W ignore {posargs}

Expand Down

0 comments on commit fc6ce71

Please sign in to comment.