-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
60 lines (49 loc) · 1.93 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist =
py38-test-oldestdeps,
py310-test-astroscrappy11,
py39-test-alldeps-numpy119-cov,
py39-test-alldeps-numpy119-cov-bottleneck,
py310-test-alldeps-numpy121,
py39-test-alldeps,
py310-test-alldeps,
# add more envs here
extras = test
# Run the tests in a temporary directory to make sure that we don't
# import this package from the source tree
changedir =
test: .tmp/{envname}
deps =
cov: coverage
numpy117: numpy==1.17.*
numpy118: numpy==1.18.*
numpy119: numpy==1.19.*
numpy120: numpy==1.20.*
numpy121: numpy==1.21.*
astroscrappy11: astroscrappy==1.1.*
astroscrappy10: astroscrappy==1.0.*
astropylts: astropy==4.0.*
bottleneck: bottleneck>=1.3.2
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: git+https://github.com/astropy/astroscrappy.git#egg=astroscrappy
# Remember to transfer any changes here to setup.cfg also. Only listing
# 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.21.*
oldestdeps: astropy==5.0.*
oldestdeps: reproject==0.7
# 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}
# Define other [testenv:{your_env_name}] sections as needed.