More qt 6 tooling

This commit is contained in:
Florian Bruhin 2023-06-24 12:01:14 +02:00
parent 58ee4cc21a
commit b5d5c7f4d3
4 changed files with 13 additions and 12 deletions

View File

@ -56,7 +56,8 @@ jobs:
- name: Install dependencies
run: |
[[ ${{ matrix.testenv }} == eslint ]] && npm install -g eslint
[[ ${{ matrix.testenv }} == docs ]] && sudo apt-get update && sudo apt-get install --no-install-recommends asciidoc
[[ ${{ matrix.testenv }} == docs ]] && sudo apt-get update && sudo apt-get install --no-install-recommends asciidoc libegl1-mesa
[[ ${{ matrix.testenv }} == vulture || ${{ matrix.testenv }} == pylint ]] && sudo apt-get update && sudo apt-get install --no-install-recommends libegl1-mesa
if [[ ${{ matrix.testenv }} == shellcheck ]]; then
scversion="stable"
bindir="$HOME/.local/bin"
@ -89,17 +90,16 @@ jobs:
fail-fast: false
matrix:
include:
- testenv: py
- testenv: py-qt5
image: archlinux-webkit
- testenv: py
- testenv: py-qt5
image: archlinux-webengine
- testenv: py-qt6
- testenv: py-qt5
image: archlinux-webengine-unstable
- testenv: py
image: archlinux-webengine-qt6
- testenv: py
image: archlinux-webengine-unstable
args: ""
# - testenv: py
# image: archlinux-webengine-unstable-qt6 # FIXME:qt6.5 activate
image: archlinux-webengine-unstable-qt6
container:
image: "qutebrowser/ci:${{ matrix.image }}"
env:

View File

@ -178,6 +178,7 @@ def _select_wrapper(args: Optional[argparse.Namespace]) -> SelectionInfo:
return SelectionInfo(wrapper=env_wrapper, reason=SelectionReason.env)
if _WRAPPER_OVERRIDE is not None:
pass # type: ignore[unreachable]
assert _WRAPPER_OVERRIDE in WRAPPERS, _WRAPPER_OVERRIDE
return SelectionInfo(wrapper=_WRAPPER_OVERRIDE, reason=SelectionReason.override)

View File

@ -125,7 +125,7 @@ def get_lib_path(executable, name, required=True):
raise ValueError("Unexpected output: {!r}".format(output))
def link_pyqt(executable, venv_path, *, version='5'):
def link_pyqt(executable, venv_path, *, version):
"""Symlink the systemwide PyQt/sip into the venv.
Args:

View File

@ -56,10 +56,10 @@ commands =
{envpython} -bb -m pytest {posargs:tests}
cov: {envpython} scripts/dev/check_coverage.py {posargs}
[testenv:py-qt6]
[testenv:py-qt5]
setenv =
PYTEST_QT_API=pyqt6
QUTE_QT_WRAPPER=PyQt6
PYTEST_QT_API=pyqt5
QUTE_QT_WRAPPER=PyQt5
[testenv:bleeding]
basepython = {env:PYTHON:python3}