Diff QtPy-2.3.1-r1 with a QtPy-2.4.0
/usr/portage/dev-python/QtPy/QtPy-2.4.0.ebuild 2023-10-09 14:52:30.248368369 +0300 | ||
---|---|---|
17 | 17 | |
18 | 18 |
LICENSE="MIT" |
19 | 19 |
SLOT="0" |
20 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" |
|
20 |
KEYWORDS="~amd64 ~arm64 ~loong ~riscv x86" |
|
21 | 21 | |
22 | 22 |
_IUSE_QT_MODULES=" |
23 | 23 |
designer +gui help multimedia +network opengl positioning |
... | ... | |
113 | 113 |
BDEPEND=" |
114 | 114 |
test? ( |
115 | 115 |
dev-python/mock[${PYTHON_USEDEP}] |
116 |
dev-python/pytest-qt[${PYTHON_USEDEP}] |
|
116 | 117 |
pyqt5? ( |
117 | 118 |
dev-python/PyQt5[${PYTHON_USEDEP}] |
118 | 119 |
dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location] |
... | ... | |
158 | 159 |
sed -i -e 's:--cov=qtpy --cov-report=term-missing::' pytest.ini || die |
159 | 160 |
# Disable Qt for Python implementations that are not selected |
160 | 161 |
if ! use pyqt5; then |
161 |
sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die |
|
162 |
sed -i -e '/from PyQt5.QtCore import/,/)/c\ \ \ \ \ \ \ \ raise ImportError #/' qtpy/__init__.py || die |
|
162 | 163 |
fi |
163 | 164 |
if ! use pyqt6; then |
164 |
sed -i -e "s/from PyQt6.QtCore import/raise ImportError #/" qtpy/__init__.py || die |
|
165 |
sed -i -e '/from PyQt6.QtCore import/,/)/c\ \ \ \ \ \ \ \ raise ImportError #/' qtpy/__init__.py || die |
|
165 | 166 |
fi |
166 | 167 |
if ! use pyside2; then |
167 | 168 |
sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die |