File: tox.ini

package info (click to toggle)
python-cloudkittyclient 5.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: python: 3,512; makefile: 26; sh: 2
file content (104 lines) | stat: -rw-r--r-- 2,611 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
[tox]
minversion = 3.18.0
envlist = py3,pep8
skipsdist = True
ignore_basepython_conflict = True

[testenv]
basepython = python3
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   DEVSTACK_VENV={env:DEVSTACK_VENV}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}

[testenv:cover]
setenv =
    PYTHON=coverage run --source cloudkittyclient --parallel-mode
commands =
    stestr run {posargs}
    coverage combine
    coverage html -d cover
    coverage xml -o cover/coverage.xml
    coverage report

[testenv:debug]
commands = oslo_debug_helper -t cloudkittyclient/tests {posargs}

[testenv:functional-v1]
passenv =
      OS_CLOUD
      OS_PROJECT_DOMAIN_ID
      OS_USER_DOMAIN_ID
      OS_PROJECT_DOMAIN_NAME
      OS_USER_DOMAIN_NAME
      OS_PROJECT_NAME
      OS_IDENTITY_API_VERSION
      OS_PASSWORD
      OS_AUTH_TYPE
      OS_AUTH_URL
      OS_USERNAME
      OS_ENDPOINT
      DEVSTACK_VENV
      VIRTUAL_ENV
setenv = OS_RATING_API_VERSION=1
commands = stestr run --concurrency=1 --test-path ./cloudkittyclient/tests/functional/v1

[testenv:functional-v2]
passenv = 
      OS_CLOUD
      OS_PROJECT_DOMAIN_ID
      OS_USER_DOMAIN_ID
      OS_PROJECT_DOMAIN_NAME
      OS_USER_DOMAIN_NAME
      OS_PROJECT_NAME
      OS_IDENTITY_API_VERSION
      OS_PASSWORD
      OS_AUTH_TYPE
      OS_AUTH_URL
      OS_USERNAME
      OS_ENDPOINT
      DEVSTACK_VENV
      VIRTUAL_ENV
setenv = OS_RATING_API_VERSION=2
commands = stestr run --concurrency=1 --test-path ./cloudkittyclient/tests/functional/v2

[testenv:pep8]
commands = flake8

[testenv:venv]
commands = {posargs}

[testenv:docs]
deps =
  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  -r{toxinidir}/doc/requirements.txt
commands = sphinx-build --keep-going -b html doc/source doc/build/html

[testenv:pdf-docs]
deps = {[testenv:docs]deps}
allowlist_externals =
  make
commands =
  sphinx-build --keep-going -b latex doc/source doc/build/pdf
  make -C doc/build/pdf

[flake8]
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125,W503,W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,releasenotes

[hacking]
import_exceptions = cloudkittyclient.i18n

[testenv:releasenotes]
deps =
  -c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  -r{toxinidir}/doc/requirements.txt
commands =
  sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html