-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
74 lines (63 loc) · 1.22 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
[tox]
envlist = test, doc
[testenv]
basepython = python3
passenv = http_proxy, https_proxy
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
[testenv:test]
commands =
{envpython} -c "import pyszn; print(pyszn.__file__)"
flake8 {toxinidir}
py.test -s \
--junitxml=tests.xml \
--cov=pyszn \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/pyszn
[testenv:doc]
whitelist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html
[testenv:release]
# Edit version:
#
# nano lib/pyszn/__init__.py
#
# Update changelog in README.rst:
#
# nano README.rst
#
# Commit, tag:
#
# git commit -a
# Bumping version number to x.y.z.
# git tag x.y.z
#
# Push new revision and tag:
#
# git push
# git push origin x.y.z
#
# Release package:
#
# tox -e release
#
skip_install = True
whitelist_externals =
sh
deps =
wheel
twine
changedir = {toxinidir}
commands =
{envpython} setup.py bdist_wheel
sh -c 'twine upload --repository hpepypi --skip-existing dist/*'
[flake8]
exclude = .git,.tox,.cache,__pycache__,build,*.egg-info
[pytest]