Add a mkvenv-pypi-old environment

Fixes #4038
See #3662
This commit is contained in:
Florian Bruhin 2018-07-04 14:08:04 +02:00
parent 0a31e19eda
commit e80e695a56
2 changed files with 17 additions and 0 deletions

View File

@ -392,6 +392,10 @@ https://docs.python.org/3/library/venv.html[virtual environment]:
$ tox -e mkvenv-pypi $ tox -e mkvenv-pypi
---- ----
If your system comes with Python 3.5.3 or older (such as Ubuntu 16.04 LTS), use
`tox -e mkvenv-pypi-old` instead. This installs an older Qt version (5.10) due
to bugs in newer versions.
This installs all needed Python dependencies in a `.venv` subfolder. This installs all needed Python dependencies in a `.venv` subfolder.
This comes with an up-to-date Qt/PyQt including QtWebEngine, but has a few This comes with an up-to-date Qt/PyQt including QtWebEngine, but has a few

13
tox.ini
View File

@ -62,6 +62,19 @@ deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-pyqt.txt -r{toxinidir}/misc/requirements/requirements-pyqt.txt
# Older PyQt for Python 3.5
# 5.11.2: https://www.riverbankcomputing.com/pipermail/pyqt/2018-July/040511.html
# 5.10.1: https://github.com/qutebrowser/qutebrowser/issues/3662
[testenv:mkvenv-pypi-old]
basepython = {env:PYTHON:python3.5}
envdir = {toxinidir}/.venv
commands = {envpython} -c ""
usedevelop = true
deps =
-r{toxinidir}/requirements.txt
PyQt5==5.10
sip==4.19.8
[testenv:misc] [testenv:misc]
ignore_errors = true ignore_errors = true
basepython = {env:PYTHON:python3} basepython = {env:PYTHON:python3}