File: tox.ini

package info (click to toggle)
python-oslo.messaging 10.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,640 kB
  • sloc: python: 14,376; sh: 88; makefile: 24
file content (127 lines) | stat: -rw-r--r-- 3,511 bytes parent folder | download
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
122
123
124
125
126
127
[tox]
minversion = 2.0
envlist = py27,py37,pep8

[testenv]
setenv =
    VIRTUAL_ENV={envdir}
passenv = OS_*
          ZUUL_CACHE_DIR
          REQUIREMENTS_PIP_LOCATION
install_command = pip install {opts} {packages}
deps =
  -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  -r{toxinidir}/test-requirements.txt
  -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}

[testenv:pep8]
basepython = python3
commands =
  flake8
  # run security linter
  bandit -r oslo_messaging -x tests -n5

[testenv:cover]
basepython = python3
setenv =
    PYTHON=coverage run --source oslo_messaging --parallel-mode
commands =
  stestr run --slowest {posargs}
  coverage combine
  coverage html -d cover
  coverage report

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html

[testenv:py27-func-rabbit]
basepython = python2.7
setenv =
    {[testenv]setenv}
    TRANSPORT_DRIVER=rabbit
commands = pifpaf run rabbitmq --  stestr run --slowest {posargs:oslo_messaging.tests.functional}

[testenv:py36-func-rabbit]
basepython = python3.6
setenv =
    {[testenv]setenv}
    TRANSPORT_DRIVER=rabbit
commands = pifpaf run rabbitmq --  stestr run --slowest {posargs:oslo_messaging.tests.functional}

[testenv:py27-func-kafka]
basepython = python2.7
setenv =
    {[testenv]setenv}
    TRANSPORT_URL=kafka://127.0.0.1:9092/
    OS_GROUP_REGEX=oslo_messaging.tests.functional
commands = {toxinidir}/setup-test-env-kafka.sh stestr run --slowest {posargs:oslo_messaging.tests.functional}

[testenv:py27-func-amqp1]
basepython = python2.7
setenv =
    {[testenv]setenv}
    TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:5672//
    ENVNAME={envname}
    WORKDIR={toxworkdir}
commands = {toxinidir}/tools/setup-test-env-amqp1.sh stestr run --slowest {posargs:oslo_messaging.tests.functional}

[testenv:py36-func-amqp1]
basepython = python3.6
setenv =
    {[testenv]setenv}
    TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:5672//
    ENVNAME={envname}
    WORKDIR={toxworkdir}
commands = {toxinidir}/tools/setup-test-env-amqp1.sh stestr run --slowest {posargs:oslo_messaging.tests.functional}

[testenv:py36-func-kafka]
basepython = python3.6
setenv =
    {[testenv]setenv}
    TRANSPORT_URL=kafka://127.0.0.1:9092/
    OS_GROUP_REGEX=oslo_messaging.tests.functional
commands = {toxinidir}/setup-test-env-kafka.sh stestr run --slowest {posargs:oslo_messaging.tests.functional}


[testenv:bandit]
# NOTE(kgiusti): This is required for the integration test job of the bandit
# project. Please do not remove.
basepython = python3
commands = bandit -r oslo_messaging -x tests -n5

[flake8]
# E731 skipped as assign a lambda expression

show-source = True
enable-extensions = H203,H106
ignore = E731,H405
exclude = .tox,dist,doc,*.egg,build,__init__.py

[hacking]
import_exceptions =
  six.moves
local-check-factory = oslo_messaging.hacking.checks.factory

[testenv:releasenotes]
basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
deps = -r{toxinidir}/doc/requirements.txt

[testenv:bindep]
basepython = python3
deps = bindep
commands = bindep {posargs}

[testenv:lower-constraints]
basepython = python3
deps =
  -c{toxinidir}/lower-constraints.txt
  -r{toxinidir}/test-requirements.txt
  -r{toxinidir}/requirements.txt