@@ -40,19 +40,21 @@ this order:
40
40
41
41
To force a particular API, set the configuration variable ``qt_api `` in your ``pytest.ini `` file to
42
42
``pyqt5 ``, ``pyside ``, ``pyqt4 `` or ``pyqt4v2 ``. ``pyqt4v2 `` sets the ``PyQt4 ``
43
- API to `version 2 < version2 > `_.
43
+ API to `version 2 `_.
44
44
45
45
.. code-block :: ini
46
46
47
47
[pytest]
48
48
qt_api =pyqt5
49
49
50
+ Alternatively, you can set the ``PYTEST_QT_API `` environment variable to the
51
+ same values described above (the environment variable wins over the
52
+ configuration if both are set).
50
53
51
- Alternatively, you can set the ``PYTEST_QT_API `` environment
52
- variable to the same values described above (the environment variable wins over the configuration
53
- if both are set).
54
+ From ``pytest-qt `` version 2 the behaviour of ``pyqt4v2 `` has changed, as
55
+ explained in :doc: `note_pyqt4v2 `.
54
56
55
- .. _ version2 : http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
57
+ .. _ version 2 : http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
56
58
57
59
Installation
58
60
------------
@@ -77,9 +79,13 @@ activate a new fresh environment and execute::
77
79
78
80
git clone https://github.com/pytest-dev/pytest-qt.git
79
81
cd pytest-qt
80
- python setup.py develop
82
+ pip install -e . # or python setup.py develop
81
83
pip install pyside # or pyqt4/pyqt5
82
84
85
+ If you also intend to build the documentation locally, you can make sure to have
86
+ all the needed dependences executing::
87
+
88
+ pip install -e .[doc]
83
89
84
90
.. _virtualenv : https://virtualenv.readthedocs.io/
85
91
0 commit comments