-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
tox.ini
38 lines (33 loc) · 902 Bytes
/
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
[tox]
envlist =
py{310,311,312}-{test}{,-oldestdeps}
build_docs
isolated_build = True
[testenv]
setenv =
HOME = {envtmpdir}
MPLBACKEND = Agg
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
changedir =
.tmp/{envname}
deps =
oldestdeps: pyparsing==2.0.*
oldestdeps: numpy==1.23.*
oldestdeps: astropy==5.0.*
devdeps: numpy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
devdeps: astropy>=0.0.dev0
extras =
test
pip_pre =
devdeps: true
commands =
{list_dependencies_command}
!oldestdeps: pytest --pyargs pyregion {posargs}
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
{list_dependencies_command}
sphinx-build -W -b html . _build/html