diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-05-18 13:45:27 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-05-18 13:45:27 +0000 |
| commit | aa3a513695d35eeaff334adc4008b41f8ca70980 (patch) | |
| tree | ee686b984793b617b480528f06f55b63d75c33ab /dev-python/QtPy | |
| parent | 5a34f8bf0a83c761c70f021bb56c9eda6f635f29 (diff) | |
| download | baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.tar.gz baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.tar.xz baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.zip | |
Adding metadata
Diffstat (limited to 'dev-python/QtPy')
| -rw-r--r-- | dev-python/QtPy/QtPy-1.9.0-r2.ebuild | 24 | ||||
| -rw-r--r-- | dev-python/QtPy/QtPy-1.9.0-r3.ebuild | 107 | ||||
| -rw-r--r-- | dev-python/QtPy/metadata.xml | 17 |
3 files changed, 21 insertions, 127 deletions
diff --git a/dev-python/QtPy/QtPy-1.9.0-r2.ebuild b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild index e9e305b6897a..f0679d11bb57 100644 --- a/dev-python/QtPy/QtPy-1.9.0-r2.ebuild +++ b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 +inherit distutils-r1 virtualx -DESCRIPTION="Abstraction layer for PyQt5/PySide" +DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets" HOMEPAGE="https://github.com/spyder-ide/qtpy" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" @@ -16,11 +16,24 @@ SLOT="0" KEYWORDS="amd64 arm64 x86" IUSE="designer gui opengl printsupport svg testlib webengine" +# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going +# to work. The package only checks whether PyQt5/pyside2 is installed, it does +# not verify whether they have the necessary modules (i.e. satisfy the USE dep). RDEPEND=" dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,printsupport?,svg?] gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] ) testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] ) webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )" +# The QtPy testsuite skips tests for bindings that are +# not installed, so here we ensure that everything +# is available and all tests are run. +BDEPEND=" + test? ( + dev-python/PyQt5[${PYTHON_USEDEP},bluetooth,dbus,declarative,designer,gui,help,location,multimedia,network,networkauth,opengl,positioning,printsupport,sensors,serialport,sql,ssl,svg,testlib,webchannel,webkit,websockets,widgets,x11extras,xml(+),xmlpatterns] + dev-python/PyQtWebEngine[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest src_prepare() { default @@ -29,3 +42,8 @@ src_prepare() { sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die } + +python_test() { + local -x QT_API="pyqt5" + virtx pytest -vv +} diff --git a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild b/dev-python/QtPy/QtPy-1.9.0-r3.ebuild deleted file mode 100644 index 1a7d6a9f3f75..000000000000 --- a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets" -HOMEPAGE="https://github.com/spyder-ide/qtpy" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -IUSE=" - declarative designer gui help location multimedia network - opengl positioning printsupport qml quick sensors serialport - sql svg test testlib webchannel webengine websockets - widgets x11extras xml xmlpatterns -" - -# Webengine is a special case, because PyQt5 provides this in a -# separate package , while PySide2 ships it in the same package -# -# declarative/qml/quick is a special case, because PyQt5 bundles -# the bindings for qml and quick in one flag: declarative, -# PySide2 does not. -# -# The PyQt5 ebuild currently enables xml support unconditionally, -# the flag is added anyway with a (+) to make it future proof -# if the ebuild were to change this behaviour in the future. -# -# The PySide2 ebuild currently enables opengl and serialport -# support unconditionally, the flag is added anyway with a (+) -# to make it future proof if the ebuild were to change this -# behaviour in the future. -# -RDEPEND=" - app-eselect/eselect-QtPy - || ( - dev-python/PyQt5[${PYTHON_USEDEP},designer?,gui?,help?,location?,multimedia?,network?,opengl?,positioning?,printsupport?,sensors?,serialport?,sql?,svg?,testlib?,webchannel?,websockets?,widgets?,x11extras?,xml(+)?,xmlpatterns?] - dev-python/pyside2[${PYTHON_USEDEP},designer?,gui?,help?,location?,multimedia?,network?,opengl(+)?,positioning?,printsupport?,sensors?,serialport(+)?,sql?,svg?,testlib?,webchannel?,websockets?,widgets?,x11extras?,xml?,xmlpatterns?] - ) - - webengine? ( || ( - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyside2[${PYTHON_USEDEP},webengine] - ) ) - - qml? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},qml] - ) ) - - quick? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},quick] - ) ) - - declarative? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},qml,quick] - ) ) -" - -# These bindings are currently only provided by PyQt5 or PySide2 -# but not by both. Just DEPEND on these directly if they are -# required. -# Please check periodically if this list is still up to date -# -# bluetooth? ( dev-python/PyQt5[${PYTHON_USEDEP},bluetooth] ) -# dbus? ( dev-python/PyQt5[${PYTHON_USEDEP},dbus] ) -# examples? ( dev-python/PyQt5[${PYTHON_USEDEP},examples] ) -# networkauth? ( dev-python/PyQt5[${PYTHON_USEDEP},networkauth] ) -# ssl? ( dev-python/PyQt5[${PYTHON_USEDEP},ssl] ) -# webkit? ( dev-python/PyQt5[${PYTHON_USEDEP},webkit] ) -# -# 3d? ( dev-python/pyside2[${PYTHON_USEDEP},3d] ) -# charts? ( dev-python/pyside2[${PYTHON_USEDEP},charts] ) -# concurrent? ( dev-python/pyside2[${PYTHON_USEDEP},concurrent] ) -# datavis? ( dev-python/pyside2[${PYTHON_USEDEP},datavis] ) -# scxml? ( dev-python/pyside2[${PYTHON_USEDEP},scxml] ) -# script? ( dev-python/pyside2[${PYTHON_USEDEP},script] ) -# scripttools? ( dev-python/pyside2[${PYTHON_USEDEP},scripttools] ) -# speech? ( dev-python/pyside2[${PYTHON_USEDEP},speech] ) - -# The QtPy testsuite skips tests for bindings that are -# not installed, so here we ensure that everything -# is available and all tests are run. -BDEPEND="test? ( - dev-python/PyQt5[${PYTHON_USEDEP},bluetooth,dbus,declarative,designer,gui,help,location,multimedia,network,networkauth,opengl,positioning,printsupport,sensors,serialport,sql,ssl,svg,testlib,webchannel,webkit,websockets,widgets,x11extras,xml(+),xmlpatterns] - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyside2[${PYTHON_USEDEP},3d,charts,concurrent,datavis,designer,gui,help,location,multimedia,network,opengl(+),positioning,printsupport,qml,quick,script,scripttools,scxml,sensors,serialport(+),speech,sql,svg,testlib,webchannel,webengine,websockets,widgets,x11extras,xml,xmlpatterns] -)" - -distutils_enable_tests pytest - -python_test() { - export QT_API="pyqt5" - virtx pytest -vv - export QT_API="pyside2" - virtx pytest -vv - unset QT_API -} diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml index f93670ba2542..5d6a0f9e44cf 100644 --- a/dev-python/QtPy/metadata.xml +++ b/dev-python/QtPy/metadata.xml @@ -23,30 +23,13 @@ <remote-id type="pypi">QtPy</remote-id> </upstream> <use> - <flag name="declarative">Pull in bindings for the QtQml/QtQuick modules and enable the qmlscene plugin</flag> <flag name="designer">Pull in bindings for the QtDesigner module and enable the designer plugin</flag> <flag name="gui">Pull in bindings for the QtGui module</flag> - <flag name="help">Pull in bindings for the QtHelp module</flag> - <flag name="location">Pull in bindings for the QtLocation module</flag> - <flag name="multimedia">Pull in QtMultimedia and QtMultimediaWidgets modules</flag> - <flag name="network">Pull in bindings for the QtNetwork module</flag> <flag name="opengl">Pull in bindings for the QtOpenGL module</flag> - <flag name="positioning">Pull in bindings for the QtPositioning module</flag> <flag name="printsupport">Pull in bindings for the QtPrintSupport module</flag> - <flag name="qml">Pull in QtQml module</flag> - <flag name="quick">Pull in QtQuick and QtQuickWidgets modules</flag> - <flag name="sensors">Pull in bindings for the QtSensors module</flag> - <flag name="serialport">Pull in bindings for the QtSerialPort module</flag> - <flag name="sql">Pull in bindings for the QtSql module</flag> <flag name="svg">Pull in bindings for the QtSvg module</flag> <flag name="testlib">Pull in bindings for the QtTest module</flag> - <flag name="webchannel">Pull in bindings for the QtWebChannel module</flag> <flag name="webengine">Pull in QtWebEngine and QtWebEngineWidgets modules</flag> - <flag name="websockets">Pull in bindings for the QtWebSockets module</flag> - <flag name="widgets">Pull in bindings for the QtWidgets module</flag> - <flag name="x11extras">Pull in bindings for the QtX11Extras module</flag> - <flag name="xmlpatterns">Pull in bindings for the QtXmlPatterns module</flag> - <flag name="xml">Pull in QtXml module</flag> </use> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file |
