File: tox.ini

package info (click to toggle)
qtile 0.10.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,920 kB
  • ctags: 2,913
  • sloc: python: 20,455; makefile: 160; sh: 46
file content (57 lines) | stat: -rw-r--r-- 1,468 bytes parent folder | download | duplicates (2)
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
[tox]
skip_missing_interpreters = True
skipsdist=True
minversion = 1.8
envlist =
    py27-trollius,
    py33-trollius,
    py33-tulip,
    py34,
    py35,
    py36,
    pypy-trollius,
    pypy3-trollius,
    py-nightly
    docs,
    pep8,
    packaging

[testenv]
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.
setenv = LC_CTYPE = en_US.UTF-8
# Pass Display down to have it for the tests available
passenv = DISPLAY TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
whitelist_externals = /bin/bash
# Install trollius for 2 and pypy
# Install either trollius or tulip for 3.3
# Asyncio is in the standard library for 3.4+
deps =
    pytest-cov

    trollius: trollius
    tulip: asyncio
commands =
    # xcffib has to be installed before cairo
    pip install xcffib
    # Install unpinned requirements from requirements.in
    pip install -r {toxinidir}/requirements.in
    # build pangocffi module
    bash -c "python -c 'import cffi, sys; sys.exit(cffi.__version_info__[0])' || python {toxinidir}/libqtile/ffi_build.py"
    py.test --cov libqtile --cov-report term-missing

[testenv:packaging]
deps =
    check-manifest
    readme_renderer
commands =
    check-manifest
    python setup.py check -m -r -s

[testenv:pep8]
deps = flake8
commands = flake8 {toxinidir}/libqtile {toxinidir}/bin/

[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html