Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/QtPy/
Date: Tue, 14 Sep 2021 09:33:14
Message-Id: 1631611987.588b189d3963bf007e3695bd8745d752558239b8.andrewammerlaan@gentoo
1 commit: 588b189d3963bf007e3695bd8745d752558239b8
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 14 09:32:37 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 09:33:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588b189d
7
8 dev-python/QtPy: drop version 1.9.0-r3
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/QtPy/QtPy-1.9.0-r3.ebuild | 55 ------------------------------------
14 1 file changed, 55 deletions(-)
15
16 diff --git a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild b/dev-python/QtPy/QtPy-1.9.0-r3.ebuild
17 deleted file mode 100644
18 index 7ee5dea86d8..00000000000
19 --- a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild
20 +++ /dev/null
21 @@ -1,55 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -PYTHON_COMPAT=( python3_{7..9} )
28 -
29 -inherit distutils-r1 virtualx
30 -
31 -DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets"
32 -HOMEPAGE="https://github.com/spyder-ide/qtpy"
33 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 -
35 -LICENSE="MIT"
36 -SLOT="0"
37 -KEYWORDS="amd64 arm64 x86"
38 -IUSE="designer gui opengl printsupport svg testlib webengine"
39 -
40 -# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going
41 -# to work. The package only checks whether PyQt5/pyside2 is installed, it does
42 -# not verify whether they have the necessary modules (i.e. satisfy the USE dep).
43 -RDEPEND="
44 - dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,printsupport?,svg?]
45 - gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
46 - testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
47 - webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )"
48 -# The QtPy testsuite skips tests for bindings that are
49 -# not installed, so here we ensure that everything
50 -# is available and all tests are run.
51 -BDEPEND="
52 - test? (
53 - dev-python/mock[${PYTHON_USEDEP}]
54 - dev-python/PyQt5[${PYTHON_USEDEP}]
55 - dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location]
56 - dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport]
57 - dev-python/PyQt5[sensors,serialport,sql,svg,testlib,webchannel]
58 - dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns]
59 - dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
60 - )"
61 -
62 -distutils_enable_tests pytest
63 -
64 -src_prepare() {
65 - default
66 -
67 - sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die
68 - sed -i -e "s/from PyQt4.QtCore import/raise ImportError #/" qtpy/__init__.py || die
69 - sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die
70 - sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
71 -}
72 -
73 -python_test() {
74 - local -x QT_API="pyqt5"
75 - virtx pytest -vv
76 -}