-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
86 lines (65 loc) · 1.66 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = dev, docs, changes, deploy-docs
minversion = 3.25.0
; skipsdist = True
# auto-provision
requires =
tox_conda
# use PEP517 build system
isolated_build = True
[testenv]
basepython = python3.10
setenv =
PYTHONHASHSEED=23
# use customized PYPI server
; setenv =
; PIP_INDEX_URL = https://pypi.my-alternative-index.org
; PIP_EXTRA_INDEX_URL = https://mypypiserver.org
allowlist_externals =
bash
ls
echo
grep
awk
sed
git
[testenv:dev]
# recreate env for each run
recreate = True
# anaconda dependencies
; conda_deps=
; numpy>=1.21
; conda_channels=
; conda-forge
# pypi dependencies
deps =
-rrequirements-dev.txt
commands =
pre-commit run --all-files
pytest --basetemp="{envtmpdir}" {posargs}
[testenv:docs]
description = Run a development server for working on documentation
deps =
-rrequirements-doc.txt
commands = mkdocs build --clean
python -c 'print("###### Starting local server. Press Control+C to stop server ######")'
- mkdocs serve -a localhost:8080
[testenv:changes]
description = Collect change news to CHANGELOG.md by towncrier
passenv =
HOME
deps =
versioningit
-rrequirements-doc.txt
commands =
python .github/scripts/collect_news.py
[testenv:deploy-docs]
description = Deploy docs to Github Pages
deps =
-rrequirements-doc.txt
commands = mkdocs build --clean
mkdocs gh-deploy --force