-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
60 lines (56 loc) · 1.29 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 = py{39,310,311,312},check,doc
requires =
setuptools >= 45
pip >= 19.3.1
isolated_build = true
[testenv]
passenv = HOME
deps =
py39: regions>=0.6
pytest-cov
pytest-remotedata
py39: astropy>=5.0,<5.1
py310: astropy>=5.0
py311: astropy>=5.0
py312: astropy>=5.0
extras = all
commands =
python --version
pip freeze -l
pytest --cov mpdaf --cov-report term {posargs}
[testenv:check]
skip_install = true
deps =
numpy
docutils
# check-manifest
flake8
collective.checkdocs
pygments
rstcheck
# restructuredtext_lint
commands =
python setup.py checkdocs
python setup.py check --strict --metadata
# check-manifest {toxinidir}
rstcheck --report-level warning --ignore-messages "pull" README.rst CHANGELOG
# rst-lint README.rst CHANGELOG
[testenv:docs]
changedir = doc
deps = pickleshare
extras = docs
whitelist_externals = sphinx-build
commands =
sphinx-build {posargs:-W} . build/html
[testenv:dash]
changedir = doc
deps = doc2dash
passenv = SSH_AUTH_SOCK
whitelist_externals =
tar
rsync
commands =
doc2dash -f -n MPDAF -d build build/html
tar --exclude='.DS_Store' -czf build/MPDAF.docset.tgz build/MPDAF.docset
rsync -rlDvhc build/MPDAF.docset.tgz urania1:{posargs:public_html/mpdaf/}