forked from thobbs/pure-sasl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
121 lines (101 loc) · 2.49 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[global]
src =
puresasl
tests
setup.py
[tox]
envlist = py26,py27,py33,py34,py35,py36,py37,py38,py39,py310,py311,pep8
skipsdist = true
skip_install = true
usedevelop = false
###########################
# Default testenv
###########################
[testenv]
basepython =
py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
passenv =
# See https://github.com/codecov/example-python#testing-with-tox
codecov: CI TRAVIS TRAVIS_*
codecov: TOXENV
deps =
-r{toxinidir}/test-requirements.txt
install_command =
pip install {opts} {packages}
skipsdist = true
skip_install = true
usedevelop = true
changedir = {toxinidir}
commands =
nosetests \
--with-coverage \
--cover-package={[coverage:run]source} \
{posargs}
coverage combine --append
###########################
# Run pytest
###########################
[testenv:py26]
[testenv:py27]
[testenv:py33]
[testenv:py34]
[testenv:py35]
[testenv:py36]
[testenv:py37]
[testenv:py38]
[testenv:py39]
[testenv:py310]
[testenv:py311]
###########################
# Publish to Codecov
###########################
[testenv:codecov]
basepython = python3
deps = codecov
skipsdist = true
skip_install = true
usedevelop = false
changedir = {toxinidir}
commands =
codecov -e TOXENV --required
###########################
# Run PEP8
###########################
[testenv:pep8]
basepython = python3
deps = pycodestyle
skipsdist = true
skip_install = true
usedevelop = false
changedir = {toxinidir}
commands=
pycodestyle \
{posargs:{[global]src}}
###############################################################################
###############################################################################
###############################################################################
[pycodestyle]
show_source = false
show_pep8 = false
count = true
###############################################################################
[coverage:run]
source = puresasl
branch = true
concurrency =
thread
multiprocessing