-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
66 lines (54 loc) · 1.21 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
[tox]
envlist = build, style, test
[testenv]
basepython = python3
changedir = {envtmpdir}
passenv = HOME https_proxy http_proxy no_proxy
[testenv:build]
skip_install = True
deps =
wheel
commands =
{envpython} {toxinidir}/setup.py sdist
{envpython} {toxinidir}/setup.py bdist_wheel
[testenv:style]
skip_install = True
deps =
flake8
pep8-naming
commands =
flake8 {toxinidir}
[testenv:test]
deps =
-rtest/requirements.txt
orjson
ujson
commands =
# Run test suite
py.test -s -vv \
--junitxml=tests.xml \
--cov=jwtpie \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs} \
{toxinidir}/test
[testenv:publish]
skip_install = True
deps =
wheel
twine
whitelist_externals =
ls
commands =
{envpython} {toxinidir}/setup.py sdist
{envpython} {toxinidir}/setup.py bdist_wheel
ls -lh {toxinidir}/dist/
twine check {toxinidir}/dist/*
{envpython} -c "print((\
'Packages ready. '\
'Execute the following command to publish:\n'\
' twine upload --username kuralabs --skip-existing dist/*'\
))"
[flake8]
exclude = .git,.tox,.cache,__pycache__,build,*.egg-info,.local