forked from feder-observatory/stellarphot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (52 loc) · 1.27 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
[tox]
envlist =
py{36,37,38}-test-dev
build_docs
pycodestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
package_name = glowing_waffles
[testenv]
passenv =
HOME
WINDIR
LC_ALL
LC_CTYPE
CC
CFLAGS
changedir =
test: .tmp/{envname}
build_docs: docs
description =
test: run tests with pytest
build_docs: invoke sphinx-build to build the HTML docs
dev: run tests with astropy dev version
coverage: run tests with coverage report
deps =
astropylts: astropy>=4,<4.1
numpy116: numpy==1.16.*
numpy117: numpy==1.17.*
numpy118: numpy==1.18.*
astropy3: astropy>=3.2,<4
dev: git+https://github.com/astropy/astropy.git#egg=astropy
extras =
test: test
build_docs: docs
commands =
test: pytest --pyargs {[tox]package_name} {toxinidir}/docs {posargs}
build_docs: sphinx-build -W -b html . _build/html {posargs}
[testenv:coverage]
passenv = {[testenv]passenv}
deps =
coverage: pytest-cov
extras =
coverage: test
commands =
coverage: pytest --cov={[tox]package_name} --pyargs {[tox]package_name} {toxinidir}/docs {posargs}
[testenv:pycodestyle]
skip_install = true
description = invoke pycodestyle on package code
deps = pycodestyle
commands = pycodestyle {[tox]package_name}