File: tox.ini

package info (click to toggle)
python-gnocchiclient 7.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 960 kB
  • sloc: python: 3,199; makefile: 34; sh: 33
file content (48 lines) | stat: -rw-r--r-- 1,181 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
[tox]
minversion = 1.6
envlist = py35,py36,py27,pypy,pep8,docs-gnocchi.xyz
skipsdist = True

[testenv]
usedevelop = True
setenv =
   VIRTUAL_ENV={envdir}
   GNOCCHI_CLIENT_EXEC_DIR={envdir}/bin
passenv = GNOCCHI_*
# NOTE(jd): the -e argument is on its own line so it's passed as an argument to pip
deps = .[test,openstack]
       -e
       git+https://github.com/gnocchixyz/gnocchi.git#egg=gnocchi[postgresql,file]
       pifpaf[gnocchi]
commands = pifpaf run gnocchi -- pytest {posargs:gnocchiclient/tests}

[testenv:pep8]
basepython = python3
deps = hacking<0.13,>=0.12
       doc8>=0.8.0
commands = flake8
           doc8 --ignore-path doc/source/gnocchi.rst --ignore-path-errors doc/source/shell.rst;D000 doc/source

[testenv:venv]
deps = .[test,doc]
commands = {posargs}

[testenv:cover]
deps = {[testenv]deps}
       pytest-cov
commands = pifpaf run gnocchi -- pytest --cov=gnocchiclient {posargs:gnocchiclient/tests}

[testenv:docs-gnocchi.xyz]
basepython = python3
deps = .[test,doc]
commands =
   python setup.py build_sphinx

[flake8]
show-source = True
ignore =
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

[pytest]
addopts = --verbose
norecursedirs = .tox