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/pyqtgraph/files/, dev-python/pyqtgraph/
Date: Wed, 28 Apr 2021 17:50:18
Message-Id: 1619632209.a896966bca383d25d6ec4b579e25ce56b6b2b62c.mgorny@gentoo
1 commit: a896966bca383d25d6ec4b579e25ce56b6b2b62c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 28 17:48:40 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 28 17:50:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a896966b
7
8 dev-python/pyqtgraph: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyqtgraph/Manifest | 2 -
13 .../files/pyqtgraph-0.11.0-qt5_only.patch | 11 ---
14 dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild | 48 ------------
15 dev-python/pyqtgraph/pyqtgraph-0.12.0.ebuild | 86 ----------------------
16 4 files changed, 147 deletions(-)
17
18 diff --git a/dev-python/pyqtgraph/Manifest b/dev-python/pyqtgraph/Manifest
19 index 9df18fd3548..f64219dc7ab 100644
20 --- a/dev-python/pyqtgraph/Manifest
21 +++ b/dev-python/pyqtgraph/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST pyqtgraph-0.11.0_rc0.tar.gz 755973 BLAKE2B 845c57a16c71d449419cca452ac70468eb21f198b3aebe39204e8ac1408ebd4471a95b24cbd91cd4c745439c17a805738e50a29f8690de5d84f86c2597310aea SHA512 6eb5573b19c7fc0bc263bdc5d75a9a7a5d86d5ce525e406fcbd8f4215a8b2a0a9a7d4839d177fb10ff62a5feacdf088347828900daa9f60ae84e54824b98f470
24 -DIST pyqtgraph-0.12.0.tar.gz 893557 BLAKE2B a5fab600adad7b71d63602ed075ecdfba96316ffd1205a11c6551c132055c40f81bbac4a51e9abcfdb877365f1e95d1f05d0fdcc7131cf5f0646f641512e70aa SHA512 a30c7cab0a8a1efff697271fdcc27b1aef55a2766a90562191adc4d6e5ed6fb71da73b4b25ea4e16b7eff33876eb47468c27bc8bcdf1a0abaefa2b6c202c8739
25 DIST pyqtgraph-0.12.1.tar.gz 899513 BLAKE2B 17f6dec41039186ceb0afdfbcba64aebf5900d17b890d9a6d1f8a30586a27e3cc61bb1d3a8fb2446f9ee3a66c54095b7c5d37b5c5fb83296b481d8a95a7fdab5 SHA512 b1ed004c7db4ee4f8302a42dd9e8574692b4c353bf512ec7a42d5ebeaab126e9ed5df3a228c631dc77e16a61efce1c918cbd0a8b319649e346e2082215c56d40
26 DIST pyqtgraph-test-data-8.tar.gz 306068 BLAKE2B f3aa418dfaf2e74950fa880da4b6dfb4ef5dbd46346b78065d885c1f9fc06fc3de86756af17e27035d4cd47d98cc7ce58c036b493837b568086a4ebceb230c78 SHA512 07ef414f2b57e00589f8c18459e88ab16001c7cc3766164cdfcd69faa26cbc90ed64611fd0c5e3b401dc6a3f1a6e9e4ce6a7d9fa96ebcc4360e03fa9fbb856d2
27
28 diff --git a/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch b/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch
29 deleted file mode 100644
30 index 1e65b0de926..00000000000
31 --- a/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch
32 +++ /dev/null
33 @@ -1,11 +0,0 @@
34 ---- a/pyqtgraph/Qt.py
35 -+++ b/pyqtgraph/Qt.py
36 -@@ -25,7 +25,7 @@
37 - ## This is done by first checking to see whether one of the libraries
38 - ## is already imported. If not, then attempt to import PyQt4, then PySide.
39 - if QT_LIB is None:
40 -- libOrder = [PYQT4, PYSIDE, PYQT5, PYSIDE2]
41 -+ libOrder = [PYQT5]
42 -
43 - for lib in libOrder:
44 - if lib in sys.modules:
45
46 diff --git a/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild
47 deleted file mode 100644
48 index c6a713fe7b5..00000000000
49 --- a/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild
50 +++ /dev/null
51 @@ -1,48 +0,0 @@
52 -# Copyright 1999-2020 Gentoo Authors
53 -# Distributed under the terms of the GNU General Public License v2
54 -
55 -EAPI=7
56 -
57 -PYTHON_COMPAT=( python3_{7..9} )
58 -
59 -inherit distutils-r1
60 -
61 -MY_PV=$(ver_rs 3 "")
62 -MY_P="${PN}-${MY_PV}"
63 -
64 -DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy"
65 -HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.org/project/pyqtgraph/"
66 -SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
67 -
68 -LICENSE="MIT"
69 -SLOT="0"
70 -KEYWORDS="amd64 x86"
71 -IUSE="examples opengl svg"
72 -
73 -RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
74 - dev-python/scipy[${PYTHON_USEDEP}]
75 - dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}]
76 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
77 -
78 -PATCHES=(
79 - "${FILESDIR}"/${PN}-0.11.0-qt5_only.patch
80 -)
81 -
82 -DOCS=( CHANGELOG README.md )
83 -
84 -S="${WORKDIR}"/${PN}-${MY_P}
85 -
86 -distutils_enable_sphinx doc/source
87 -
88 -python_prepare_all() {
89 - distutils-r1_python_prepare_all
90 -
91 - if ! use opengl; then
92 - rm -r pyqtgraph/opengl || die
93 - fi
94 -}
95 -
96 -python_install_all() {
97 - use examples && DOCS+=( examples/ )
98 - distutils-r1_python_install_all
99 -}
100
101 diff --git a/dev-python/pyqtgraph/pyqtgraph-0.12.0.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.12.0.ebuild
102 deleted file mode 100644
103 index 1ebdf584d19..00000000000
104 --- a/dev-python/pyqtgraph/pyqtgraph-0.12.0.ebuild
105 +++ /dev/null
106 @@ -1,86 +0,0 @@
107 -# Copyright 1999-2021 Gentoo Authors
108 -# Distributed under the terms of the GNU General Public License v2
109 -
110 -EAPI=7
111 -
112 -PYTHON_COMPAT=( python3_{7..9} )
113 -
114 -inherit distutils-r1 multiprocessing virtualx
115 -
116 -TEST_DATA_TAG=test-data-8
117 -DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy"
118 -HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.org/project/pyqtgraph/"
119 -SRC_URI="
120 - https://github.com/pyqtgraph/pyqtgraph/archive/${P}.tar.gz
121 - test? (
122 - https://github.com/pyqtgraph/test-data/archive/${TEST_DATA_TAG}.tar.gz
123 - -> ${PN}-${TEST_DATA_TAG}.tar.gz
124 - )"
125 -S=${WORKDIR}/${PN}-${P}
126 -
127 -LICENSE="MIT"
128 -SLOT="0"
129 -KEYWORDS="~amd64 ~x86"
130 -IUSE="examples opengl svg"
131 -
132 -RDEPEND="
133 - >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
134 - dev-python/scipy[${PYTHON_USEDEP}]
135 - dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}]
136 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
137 -BDEPEND="
138 - test? (
139 - dev-python/h5py[${PYTHON_USEDEP}]
140 - dev-python/PyQt5[svg,testlib,${PYTHON_USEDEP}]
141 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
142 - dev-vcs/git
143 - )"
144 -
145 -distutils_enable_sphinx doc/source
146 -distutils_enable_tests pytest
147 -
148 -python_prepare_all() {
149 - distutils-r1_python_prepare_all
150 -
151 - if use test; then
152 - mkdir "${HOME}"/.pyqtgraph || die
153 - mv "${WORKDIR}/test-data-${TEST_DATA_TAG}" \
154 - "${HOME}"/.pyqtgraph/test-data || die
155 - cd "${HOME}"/.pyqtgraph/test-data || die
156 - # we need to fake a git repo
157 - git config --global user.email "you@×××××××.com"
158 - git config --global user.name "Your Name"
159 - git init -q || die
160 - git commit -q --allow-empty -m "dummy commit" || die
161 - git tag "${TEST_DATA_TAG}" || die
162 - cd - >/dev/null || die
163 - fi
164 - if ! use opengl; then
165 - rm -r pyqtgraph/opengl || die
166 - fi
167 -}
168 -
169 -python_test() {
170 - local deselect=(
171 - # apparently fragile
172 - --deselect pyqtgraph/tests/test_reload.py::test_reload
173 -
174 - # pyside2 is normally skipped if not installed but these two
175 - # fail if it is installed
176 - # TODO: this could be due to USE flags, revisit when pyside2
177 - # gains py3.9
178 - --deselect
179 - 'examples/test_examples.py::testExamples[ DateAxisItem_QtDesigner.py - PySide2 ]'
180 - --deselect
181 - 'examples/test_examples.py::testExamples[ designerExample.py - PySide2 ]'
182 - )
183 -
184 - distutils_install_for_testing
185 - virtx epytest "${deselect[@]}" \
186 - -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
187 -}
188 -
189 -python_install_all() {
190 - use examples && DOCS+=( examples/ )
191 - distutils-r1_python_install_all
192 -}