-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtox.ini
59 lines (52 loc) · 1.31 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
[tox]
envlist =
py27,
pep8,
pypy,
py34,
py35,
py36,
py37,
pylint,
coverage
[testenv]
deps = -rrequirements-dev.txt
commands = {envpython} setup.py test
[testenv:pep8]
commands =
pep8 rotunicode setup.py
pep8 --ignore=E501 test
[testenv:pylint]
deps = -rrequirements-dev.txt
commands =
pylint --rcfile=.pylintrc rotunicode setup.py
pylint --rcfile=.pylintrc --disable=C0301,C0411 test
[testenv:coverage]
commands = coverage run --rcfile=.coveragerc setup.py test
[pep8]
show-pep8 = True
show-source = True
[testenv:py36-build]
description = Build the source and binary wheel packages for distribution.
pypi_dist_dir = {toxinidir}/pypi-dist
commands =
rm -rf "{[testenv:py36-build]pypi_dist_dir}"
{envpython} setup.py -vv \
sdist --formats=gztar --keep-temp --dist-dir="{[testenv:py36-build]pypi_dist_dir}" \
bdist_wheel --keep-temp --dist-dir="{[testenv:py36-build]pypi_dist_dir}"
skip_install = True
sitepackages = False
recreate = True
deps =
wheel
setuptools
whitelist_externals = rm
[testenv:py36-upload]
description = Upload packages to PyPI.
commands =
twine upload --config-file="{toxinidir}/.pypirc" {posargs} {[testenv:py36-build]pypi_dist_dir}/*
skip_install = True
sitepackages = False
recreate = True
deps =
twine