File: tox.ini

package info (click to toggle)
python-treq 18.6.0-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 468 kB
  • sloc: python: 3,617; makefile: 131
file content (50 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (3)
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
[tox]
envlist =
        {pypy,py27,py34,py35,py36}-twisted_{lowest,latest},
        {pypy,py27,py34,py35,py36}-twisted_trunk-pyopenssl_trunk,
        pypi-readme, check-manifest, flake8, docs

[testenv]
extras = dev
deps =
    coverage
    mock

    twisted_lowest: Twisted==16.4.0
    twisted_latest: Twisted
    twisted_trunk: https://github.com/twisted/twisted/archive/trunk.zip

    pyopenssl_trunk: https://github.com/pyca/pyopenssl/archive/master.zip

    docs: Sphinx>=1.4.8
setenv =
    # Avoid unnecessary network access when creating virtualenvs for speed.
    VIRTUALENV_NO_DOWNLOAD=1
    PIP_DISABLE_PIP_VERSION_CHECK=1
passenv = TERM  # ensure colors
commands =
    pip list
    coverage run {envbindir}/trial {posargs:treq}
    coverage report -m

[testenv:flake8]
skip_install = True
deps = flake8
commands = flake8 src/treq/

[testenv:pypi-readme]
deps =
    readme_renderer
commands =
    python setup.py check -r -s

[testenv:check-manifest]
deps =
    check-manifest
commands =
    check-manifest

[testenv:docs]
changedir = docs
commands =
    sphinx-build -b html . html