-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
tox.ini
74 lines (61 loc) · 2.1 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
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}
description =
run tests
alldeps: with all optional dependencies
devdeps: with the latest developer version of key dependencies
oldestdeps: with the oldest supported version of key dependencies
cov: and test coverage
numpy124: with numpy 1.24.*
numpy126: with numpy 1.26.*
numpy200: with numpy 2.0.*
numpy210: with numpy 2.1.*
bottleneck: with bottleneck
# The following provides some specific pinnings for key packages
deps =
cov: coverage
numpy124: numpy==1.24.* # current oldest suppported numpy
numpy126: numpy==1.26.*
numpy200: numpy==2.0.*
numpy210: numpy==2.1.*
astroscrappy11: astroscrappy==1.1.*
astroscrappy11: numpy<2.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
oldestdeps: numpy==1.24.*
oldestdeps: astropy==5.0.*
oldestdeps: reproject==0.7
oldestdeps: cython
commands =
pip freeze
!cov-!oldestdeps: pytest --pyargs ccdproc {toxinidir}/docs {posargs}
cov: pytest --pyargs ccdproc {toxinidir}/docs --cov ccdproc --cov-config={toxinidir}/pyproject.toml {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
# install astroscrappy after numpy
oldestdeps: python -m pip install astroscrappy==1.1.0
# Do not care about warnings on the oldest builds
oldestdeps: pytest --pyargs ccdproc {toxinidir}/docs -W ignore {posargs}
[testenv:build_docs]
extras = docs
changedir = docs
commands =
pip freeze
sphinx-build . _build/html -b html -W {posargs}
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style with ruff
deps = ruff
commands = ruff check ccdproc