-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (40 loc) · 1.38 KB
/
tox.ini
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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = initui,py37,docs
[testenv:initui]
deps =
pyqt5
commands =
pyuic5 ui/my_floating_points.ui -o src/main/python/floatingpoints/floating_points_fixed_view.py
pyuic5 ui/my_floating_points_resizable.ui -o src/main/python/floatingpoints/floating_points_resizeable_view.py
[testenv]
deps =
pytest
pytest-cov
pytest-html
pytest-qt
pyqt5
commands =
pytest --html=testreport.html --self-contained-html
setenv =
PYTHONPATH=src/main/python
passenv =
DISPLAY XAUTHORITY USER USERNAME
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.7
deps =
sphinx >= 1.7.5, < 2
pyqt5
commands =
sphinx-apidoc -o docs/source --tocfile index -F -f -P -l --ext-autodoc --ext-coverage src/main/python
sphinx-build -c docs/source "docs/source" "docs/build" --color -W -bhtml -D autodoc_default_flags="members" {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[pytest]
testpaths = src/unittest/python
python_files = test_*.py
python_classes = Test
qt_api=pyqt5