forked from astropy/pyvo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (60 loc) · 1.91 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
[tox]
# Please note that not all the combinations below are guaranteed to work
# as oldestdeps and devastropy might not support the full python range
# listed here
envlist =
py{38,39,310,311,312}-test{,-alldeps,-oldestdeps,-devdeps}{,-online}{,-cov}
linkcheck
codestyle
build_docs
requires =
setuptools >= 30.3.0
pip >= 19.3.1
[testenv]
extras =
test: test
alldeps: all
description =
run tests
oldestdeps: with oldest supported dependencies
devdeps: with development version of dependencies
cov: determine the code coverage
setenv =
PYTEST_ARGS = -rsxf --show-capture=no
online: PYTEST_ARGS = --remote-data=any --reruns=1 --reruns-delay 10 -rsxf --show-capture=no
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple
deps =
cov: coverage
devdeps: numpy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
devdeps: astropy>=0.0.dev0
oldestdeps: astropy==4.1
# We set a suitably old numpy along with an old astropy, no need to pick up
# deprecations and errors due to their unmatching versions
oldestdeps: numpy==1.16
online: pytest-rerunfailures
commands =
pip freeze
!cov: pytest --pyargs {env:PYTEST_ARGS}
cov: pytest --pyargs --cov pyvo --cov-config={toxinidir}/setup.cfg {env:PYTEST_ARGS}
cov: coverage xml -o {toxinidir}/coverage.xml
[testenv:linkcheck]
changedir = docs
description = check the links in the HTML docs
extras = docs
commands =
pip freeze
sphinx-build -W -b linkcheck . _build/html
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
pip freeze
sphinx-build -W -b html . _build/html
[testenv:codestyle]
skip_install = true
description = check code style
deps = flake8
changedir = {toxinidir}
commands = flake8 pyvo --count