forked from jeffgortmaker/pyblp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
128 lines (112 loc) · 3.98 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[tox]
envlist = flake8, mypy, tests, tests-py37, tests-py38, tests-longdouble, tests-py37-longdouble, tests-py38-longdouble, docs, docs-latex, docs-linkcheck
requires = tox-conda
[testenv]
basepython = python3.6
whitelist_externals = python
[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.
passenv = KNITRODIR ARTELYS_LICENSE LD_LIBRARY_PATH
conda_deps =
numpy
sympy
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
passenv = {[testenv:tests]passenv}
conda_deps = {[testenv:tests]conda_deps}
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:tests-py38]
description = Run the test suite with Python 3.8.
basepython = python3.8
passenv = {[testenv:tests]passenv}
conda_deps = {[testenv:tests]conda_deps}
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:tests-longdouble]
description = Run the test suite with extended precision.
setenv = DTYPE = longdouble
passenv = {[testenv:tests]passenv}
conda_deps = {[testenv:tests]conda_deps}
extras = {[testenv:tests]extras}
commands = {[testenv:tests]commands}
[testenv:tests-py37-longdouble]
description = Run the test suite with Python 3.7 and extended precision.
basepython = python3.7
setenv = {[testenv:tests-longdouble]setenv}
passenv = {[testenv:tests-longdouble]passenv}
conda_deps = {[testenv:tests]conda_deps}
extras = {[testenv:tests-longdouble]extras}
commands = {[testenv:tests-longdouble]commands}
[testenv:tests-py38-longdouble]
description = Run the test suite with Python 3.8 and extended precision.
basepython = python3.8
setenv = {[testenv:tests-longdouble]setenv}
passenv = {[testenv:tests-longdouble]passenv}
conda_deps = {[testenv:tests]conda_deps}
extras = {[testenv:tests-longdouble]extras}
commands = {[testenv:tests-longdouble]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/pyblp.tex
makeindex -s _build/latex/python.ist -o _build/latex/pyblp.ind _build/latex/pyblp.idx
pdflatex -quiet -halt-on-error -interaction=nonstopmode -include-directory=_build/latex -output-directory=_build/latex _build/latex/pyblp.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/*
[pytest]
filterwarnings =
ignore:the matrix subclass:PendingDeprecationWarning