File: tox.ini

package info (click to toggle)
python-pyeclib 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,676 kB
  • sloc: python: 2,469; ansic: 878; sh: 139; makefile: 30
file content (51 lines) | stat: -rw-r--r-- 1,360 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
[tox]
envlist = py3{10,11,12}-compilelibs,pep8,docs

[testenv]
deps =
  -r{toxinidir}/test-requirements.txt
commands=
    pytest -v test/
setenv = LIBERASURECODE_DIR={envdir}/liberasurecode
    NASM_DIR={envdir}/nasm
    ISAL_DIR={envdir}/isa-l
    JERASURE_DIR={envdir}/jerasure
    GFCOMPLETE_DIR={envdir}/gf-complete
    compilelibs: LDFLAGS=-L{envdir}/lib -Wl,-rpath,{envdir}/lib
passenv = LIBERASURECODE_REF
allowlist_externals =
    compilelibs: {toxinidir}/tools/pip-install-with-liberasurecode.sh
install_command =
    compilelibs: {toxinidir}/tools/pip-install-with-liberasurecode.sh {opts} {packages}
    !compilelibs: pip install {opts} {packages}

[testenv:pep8]
skip_install = True
deps=
    hacking
commands=
    flake8 pyeclib/ setup.py test/ pack_wheel.py

[testenv:venv]
commands = {posargs}

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

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

[flake8]
# H101: Use TODO(NAME)
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# W504: line break after binary operator
ignore = H101,H404,H405,W504