Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/QtPy/
Date: Sat, 02 Apr 2022 15:58:39
Message-Id: 1648915067.4e5f4091abe3d83d5551330ab13f673814c57133.mgorny@gentoo
1 commit: 4e5f4091abe3d83d5551330ab13f673814c57133
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 15:57:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 15:57:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e5f4091
7
8 dev-python/QtPy: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/QtPy/Manifest | 1 -
13 dev-python/QtPy/QtPy-2.0.0.ebuild | 140 --------------------------------------
14 2 files changed, 141 deletions(-)
15
16 diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest
17 index dfd253d5f51f..7e9bb91dfc69 100644
18 --- a/dev-python/QtPy/Manifest
19 +++ b/dev-python/QtPy/Manifest
20 @@ -1,2 +1 @@
21 -DIST QtPy-2.0.0.tar.gz 39628 BLAKE2B bc1b2cf975c3457cb026016854ec70e0aa3247c1234643dbf95681f655678e43ba0200b26e16a0b9eafd6fb373c1f876d9a54458ceb9b9b035ad463b7874db2c SHA512 95855c305da7f54850bcb6297a1f12ceda79eaf6d9b01771b1391d2d7b07b8f690e134cc2d52417bcc320395dce8c1f7f5c6ccadf2939db196e0ed5441215d5a
22 DIST QtPy-2.0.1.tar.gz 43047 BLAKE2B 66625852e75fbfcf0bf96e740754ca26b6d5226dd5450d0274cf6dc875cba18e5ed8e339c8c7ad084ffa9b135f19447e087b338690ec521205316c4f22f09197 SHA512 5d482b0a5bd2be67a0fabccf98a9dedf28ef328641c8c976e2274d4a5afb14b9fefce251e80496ed54425dcb3da24984c6c36308db0bfc810ea2142528ad88fd
23
24 diff --git a/dev-python/QtPy/QtPy-2.0.0.ebuild b/dev-python/QtPy/QtPy-2.0.0.ebuild
25 deleted file mode 100644
26 index 9fcfb7eab3c3..000000000000
27 --- a/dev-python/QtPy/QtPy-2.0.0.ebuild
28 +++ /dev/null
29 @@ -1,140 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -PYTHON_COMPAT=( python3_{8..10} )
36 -
37 -inherit distutils-r1 virtualx
38 -
39 -DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets"
40 -HOMEPAGE="https://github.com/spyder-ide/qtpy/"
41 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 -
43 -LICENSE="MIT"
44 -SLOT="0"
45 -KEYWORDS="amd64 ~arm arm64 x86"
46 -
47 -_IUSE_QT_MODULES="
48 - declarative designer gui help location multimedia network opengl
49 - positioning printsupport sensors serialport speech sql svg testlib
50 - webchannel webengine websockets widgets x11extras xml xmlpatterns
51 -"
52 -IUSE="+pyqt5 pyside2 ${_IUSE_QT_MODULES}"
53 -unset _IUSE_QT_MODULES
54 -
55 -REQUIRED_USE="|| ( pyqt5 pyside2 )"
56 -
57 -# These flags are currently *not* common to both the PySide2 and PyQt5 ebuild
58 -# Disable them for now, please check periodically if this is still up to date.
59 -# bluetooth? ( pyqt5 )
60 -# dbus? ( pyqt5 )
61 -#
62 -# 3d? ( pyside2 )
63 -# charts? ( pyside2 )
64 -# concurrent? ( pyside2 )
65 -# datavis? ( pyside2 )
66 -# scxml? ( pyside2 )
67 -# script? ( pyside2 )
68 -# scripttools? ( pyside2 )
69 -
70 -# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going
71 -# to work. The package only checks whether PyQt5/pyside2 is installed, it does
72 -# not verify whether they have the necessary modules (i.e. satisfy the USE dep).
73 -#
74 -# Webengine is a special case, because PyQt5 provides this in a separate package
75 -# while PySide2 ships it in the same package.
76 -#
77 -# declarative/qml/quick is a special case, because PyQt5 bundles the bindings
78 -# for qml and quick in one flag: declarative PySide2 does not.
79 -#
80 -# The PyQt5 ebuild currently enables xml support unconditionally, the flag is
81 -# added anyway with a (+) to make it future proof if the ebuild were to change
82 -# this behaviour in the future.
83 -#
84 -# The PySide2 ebuild currently enables opengl and serialport support
85 -# unconditionally, the flag is added anyway with a (+) to make it future proof
86 -# if the ebuild were to change this behaviour in the future.
87 -RDEPEND="
88 - dev-python/packaging[${PYTHON_USEDEP}]
89 - pyqt5? (
90 - dev-python/PyQt5[${PYTHON_USEDEP}]
91 - dev-python/PyQt5[declarative?,designer?,gui?,help?,location?]
92 - dev-python/PyQt5[multimedia?,network?,opengl?,positioning?]
93 - dev-python/PyQt5[printsupport?,sensors?,serialport?,speech(-)?,sql?,svg?]
94 - dev-python/PyQt5[testlib?,webchannel?,websockets?,widgets?]
95 - dev-python/PyQt5[x11extras?,xml(+)?,xmlpatterns?]
96 - webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )
97 - )
98 - pyside2? (
99 - dev-python/pyside2[${PYTHON_USEDEP}]
100 - dev-python/pyside2[designer?,gui?,help?,location?,multimedia?]
101 - dev-python/pyside2[network?,opengl(+)?,positioning?,printsupport?]
102 - dev-python/pyside2[sensors?,serialport(+)?,speech?,sql?,svg?]
103 - dev-python/pyside2[testlib?,webchannel?,webengine?,websockets?]
104 - dev-python/pyside2[widgets?,x11extras?,xml?,xmlpatterns?]
105 - declarative? ( dev-python/pyside2[qml,quick] )
106 - )
107 -"
108 -
109 -# The QtPy testsuite skips tests for bindings that are not installed, so here we
110 -# ensure that everything is available and all tests are run. Note that not
111 -# all flags are available in PyQt5/PySide2, so some tests are still skipped.
112 -BDEPEND="
113 - test? (
114 - dev-python/mock[${PYTHON_USEDEP}]
115 - pyqt5? (
116 - dev-python/PyQt5[${PYTHON_USEDEP}]
117 - dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location]
118 - dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport]
119 - dev-python/PyQt5[sensors,serialport,speech(-),sql,svg,testlib,webchannel]
120 - dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns]
121 - dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
122 - )
123 - pyside2? (
124 - dev-python/pyside2[${PYTHON_USEDEP}]
125 - dev-python/pyside2[3d,charts,concurrent,datavis,designer,gui,help]
126 - dev-python/pyside2[location,multimedia,network,opengl(+),positioning]
127 - dev-python/pyside2[printsupport,qml,quick,script,scripttools,scxml]
128 - dev-python/pyside2[sensors,serialport(+),speech,sql,svg,testlib]
129 - dev-python/pyside2[webchannel,webengine,websockets,widgets,x11extras]
130 - dev-python/pyside2[xml,xmlpatterns]
131 - )
132 - )
133 -"
134 -
135 -distutils_enable_tests pytest
136 -
137 -src_prepare() {
138 - default
139 - # Disale Qt for Python implementations that are not selected
140 - if ! use pyqt5; then
141 - sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die
142 - fi
143 - if ! use pyside2; then
144 - sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
145 - sed -i -e "s/from PySide2.QtCore import/raise ImportError #/" qtpy/__init__.py || die
146 - fi
147 -
148 - # Disable outdated PyQt4 and PySide
149 - sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die
150 - sed -i -e "s/from PyQt4.QtCore import/raise ImportError #/" qtpy/__init__.py || die
151 - sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die
152 - sed -i -e "s/from PySide.QtCore import/raise ImportError #/" qtpy/__init__.py || die
153 -}
154 -
155 -python_test() {
156 - if use pyqt5; then
157 - QT_API="pyqt5" virtx epytest
158 - fi
159 - if use pyside2; then
160 - QT_API="pyside2" virtx epytest
161 - fi
162 -}
163 -
164 -pkg_postinst() {
165 - if use pyqt5 && use pyside2; then
166 - ewarn "You have enabled both PyQt5 and PySide2, note that QtPy will default"
167 - ewarn "to PyQt5 unless the QT_API environment variable overrides this."
168 - fi
169 -}