-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
94 lines (81 loc) · 2.79 KB
/
tox.ini
File metadata and controls
94 lines (81 loc) · 2.79 KB
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
87
88
89
90
91
92
93
94
[tox]
envlist = flake8, mypy, tests, tests-py37, tests-py38, tests-py39, docs, docs-latex, docs-linkcheck
[testenv]
basepython = python3.6
[testenv:flake8]
description = Enforce style guidelines.
skip_install = True
deps = flake8
commands = flake8
[testenv:mypy]
description = Check types.
skip_install = True
deps = mypy
commands = mypy .
[testenv:tests]
description = Run the test suite.
extras = tests
commands = pytest -x -r s -n {posargs:3}
[testenv:tests-py37]
description = Run the test suite with Python 3.7.
basepython = python3.7
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:tests-py38]
description = Run the test suite with Python 3.8.
basepython = python3.8
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:tests-py39]
description = Run the test suite with Python 3.9.
basepython = python3.9
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:docs]
description = Build the documentation.
extras = docs
changedir = docs
commands = sphinx-build -E -d _build/html-doctrees -b html . _build/html
[testenv:docs-latex]
description = Build a LaTeX version of the documentation.
extras = {[testenv:docs]extras}
changedir = {[testenv:docs]changedir}
whitelist_externals =
pdflatex
makeindex
commands =
sphinx-build -E -d _build/latex-doctrees -b latex . _build/latex
pdflatex -quiet -halt-on-error -interaction=nonstopmode -include-directory=_build/latex -output-directory=_build/latex _build/latex/pyhdfe.tex
makeindex -s _build/latex/python.ist -o _build/latex/pyhdfe.ind _build/latex/pyhdfe.idx
pdflatex -quiet -halt-on-error -interaction=nonstopmode -include-directory=_build/latex -output-directory=_build/latex _build/latex/pyhdfe.tex
[testenv:docs-linkcheck]
description = Test external links in the documentation.
extras = {[testenv:docs]extras}
changedir = {[testenv:docs]changedir}
commands = sphinx-build -E -W -d _build/linkcheck-doctrees -b linkcheck . _build/linkcheck
[testenv:build]
description = Check the description, clean build files, create a source distribution, and create a wheel.
skip_install = True
deps =
wheel
setuptools
readme_renderer
commands = python setup.py check -r -s clean -a sdist bdist_wheel
[testenv:release]
description = Run the build commands and upload the source distribution and wheel to PyPI.
skip_install = True
deps =
twine
{[testenv:build]deps}
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*
[testenv:release-test]
description = Run the build commands and upload the source distribution and wheel to the test instance of PyPI.
skip_install = True
deps =
twine
{[testenv:build]deps}
commands =
{[testenv:build]commands}
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*