Support for Generative Env Lists in extras
#140
Unanswered
adam-grant-hendry
asked this question in
Q&A
Replies: 1 comment
-
Since this might not be supported by tox extras itself, I simply switched my [testenv]
description = Run tests
runner = uv-venv-lock-runner
depends =
py3{9,10,11,12}-{pyqt6,pyside6}: clean
coverage: py3{9,10,11,12}-{pyqt6,pyside6}
allowlist_externals =
coverage
commands =
coverage run -m pytest {posargs:tests}
[testenv:py3{9,10,11,12}-pyqt6]
extras = tests,pyqt6
setenv =
; See: https://github.com/tox-dev/tox/issues/1550
PYTHONIOENCODING=utf-8
COVERAGE_FILE=.coverage.{envname}
; See https://github.com/pytest-dev/pytest-qt/issues/437
D:PYTEST_QT_API=pyqt6
D:QT_API=pyqt6
[testenv:py3{9,10,11,12}-pyside6]
extras = tests,pyside6
setenv =
; See: https://github.com/tox-dev/tox/issues/1550
PYTHONIOENCODING=utf-8
COVERAGE_FILE=.coverage.{envname}
; See https://github.com/pytest-dev/pytest-qt/issues/437
D:PYTEST_QT_API=pyside6
D:QT_API=pyside6 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I attempted to create a generative environment list under the
extras
key in mytox.ini
to only installpyqt6
in thepyqt6
environment andpyside6
in thepyside6
environment respectively:However, it seems all extras get installed. For example, in my
py39-pyqt6
environment.My package uses
qtpy
under the hood, so it is important only oneQt
backend be loaded in each environment to ensure the right tests are being run.Does
tox-uv
support generative lists in this manner?Beta Was this translation helpful? Give feedback.
All reactions