forked from pyspeckit/pyspeckit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
54 lines (51 loc) · 1.04 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
[tox]
envlist =
py{38,39,310,311}-test{,-dev}
build_docs
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
set_env =
casa: PIP_EXTRA_INDEX_URL = {env:PIP_EXTRA_INDEX_URL:https://casa-pip.nrao.edu/repository/pypi-group/simple}
[testenv]
passenv = HOME,DISPLAY,LC_ALL,LC_CTYPE,ON_TRAVIS
#changedir = .tmp/{envname}
description = run tests
deps =
numpy
astropy[all]
scipy
matplotlib
spectral-cube
radio-beam
pytest
pytest_remotedata
pytest_doctestplus
pytest_astropy_header
extras =
test
dev: dev
cov: cov
latest: latest
allowlist_externals =
pwd
ls
commands =
dev: pip install -U -i https://pypi.anaconda.org/astropy/simple astropy --pre
pip freeze
python setup.py test
[testenv:build_docs]
changedir =
docs
description =
invoke sphinx-build to build the HTML docs
extras =
docs
commands =
sphinx-build -W -b html . _build/html {posargs}
[testenv:codestyle]
deps = flake8
skip_install = true
commands =
flake8 --max-line-length=100 pyspeckit