forked from sekipaolo/pypingdom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
42 lines (36 loc) · 761 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
39
40
41
42
[tox]
envlist = style,py36,py37,docs
skipsdist=True
[testenv]
commands =
{envpython} setup.py test
[testenv:style]
deps = -rrequirements/style.txt
commands = flake8 --version
flake8 {posargs} --ignore=D1
[testenv:docs]
changedir=docs/source
deps = -rrequirements/doc.txt
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
# Release tooling
[testenv:build]
basepython = python3
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
[testenv:release]
basepython = python3
skip_install = true
deps =
{[testenv:build]deps}
twine >= 1.5.0
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*
[travis]
python =
3.6: py36, style, docs