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/pandas/files/, dev-python/pandas/
Date: Fri, 07 Aug 2020 19:56:27
Message-Id: 1596830180.ce536c2855117bfdf2a072e49ba1a5627941e481.mgorny@gentoo
1 commit: ce536c2855117bfdf2a072e49ba1a5627941e481
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 7 19:47:38 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 7 19:56:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce536c28
7
8 dev-python/pandas: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pandas/Manifest | 2 -
13 .../files/pandas-0.24.2-skip-broken-test.patch | 15 --
14 dev-python/pandas/pandas-0.24.2.ebuild | 166 -------------------
15 dev-python/pandas/pandas-1.0.4.ebuild | 175 ---------------------
16 4 files changed, 358 deletions(-)
17
18 diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
19 index 61155686962..8a40c3370c6 100644
20 --- a/dev-python/pandas/Manifest
21 +++ b/dev-python/pandas/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST pandas-0.24.2.tar.gz 11837693 BLAKE2B 3762e94554a3ae3c803c9a412c5c551c15a9fbf15cb05633f7d1b0ccbfddc646f68f0306666e688a83a4495b0537cea2fec671157f5a63aaa5f9cad6b791261e SHA512 0795c6bb8a47a511853558ea59d371b4540ec175f213cfba4ad2361d6481fea5d3f7074bb4961c32f2f0080a72d7436a9b3706f5cc692074f98d83bfc587fd15
24 -DIST pandas-1.0.4.tar.gz 5040267 BLAKE2B 2855b1708e1ae4c56b6118613ec644d010a3af7db474bb30aec3cf84e497371af03b63a2168f6daf0fc42da07274f8724734117c6aaea34f49eeafbf6ac73b9f SHA512 01ef73cab3db067ca4a29992d71aa637425b8d70473fde6ccfb359dfedc9546315c6d37d74f3825c924cab789c2536ec69db071a303cfc5e1a7897b253dd9467
25 DIST pandas-1.0.5.tar.gz 5007108 BLAKE2B 6aff9602f8b1642af1dca70c7c596f2978bfef8ca9bc782d55aeeab85d3768289849ccd0150291c33cab3442d38cedada91fb846abaade1b3905098edb06c06e SHA512 bb9e3ed9988f7b878ac6f9d7c6c054b119acfc4b960ae42ea92436979ef2098289123cac32b176753942a1edb3b6bd35c4eaf05112a25fbf8a89078fd76a2646
26 DIST pandas-1.1.0.tar.gz 5211071 BLAKE2B 538e7579384dceb29f1761e00181fda4f07556ee15723a127966e47c317babead19b364943808d11f03007d5a48da3b28bf8fd9e5c1f40bb3285604307bff267 SHA512 496344967e6061ed451edfe2057d0b63d7277cdce0e12e2e2ce558aef2c23fa5d85daae239fcf88820196add3a928734f31af2734866da7b0385f363607e2885
27
28 diff --git a/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch b/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch
29 deleted file mode 100644
30 index dcc61dc0cfd..00000000000
31 --- a/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch
32 +++ /dev/null
33 @@ -1,15 +0,0 @@
34 -diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py
35 -index 63ba9bc0f..854afecab 100644
36 ---- a/pandas/tests/io/json/test_ujson.py
37 -+++ b/pandas/tests/io/json/test_ujson.py
38 -@@ -841,7 +841,9 @@ class TestNumpyJSONTests(object):
39 - arr_out = ujson.decode(ujson.encode(arr), numpy=True, dtype=dtype)
40 - tm.assert_almost_equal(arr, arr_out)
41 -
42 -- def test_0d_array(self):
43 -+ # Segfaulting on gentoo, not sure why. TODO: find why.
44 -+ # Clue: https://github.com/pandas-dev/pandas/issues/22718
45 -+ def xtest_0d_array(self):
46 - with pytest.raises(TypeError):
47 - ujson.encode(np.array(1))
48 -
49
50 diff --git a/dev-python/pandas/pandas-0.24.2.ebuild b/dev-python/pandas/pandas-0.24.2.ebuild
51 deleted file mode 100644
52 index fd193a5c024..00000000000
53 --- a/dev-python/pandas/pandas-0.24.2.ebuild
54 +++ /dev/null
55 @@ -1,166 +0,0 @@
56 -# Copyright 1999-2020 Gentoo Authors
57 -# Distributed under the terms of the GNU General Public License v2
58 -
59 -EAPI=7
60 -
61 -PYTHON_COMPAT=( python3_{6,7} )
62 -PYTHON_REQ_USE="threads(+)"
63 -
64 -VIRTUALX_REQUIRED="manual"
65 -
66 -inherit distutils-r1 eutils flag-o-matic virtualx
67 -
68 -DESCRIPTION="Powerful data structures for data analysis and statistics"
69 -HOMEPAGE="https://pandas.pydata.org/"
70 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz"
71 -
72 -SLOT="0"
73 -LICENSE="BSD"
74 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
75 -IUSE="doc full-support minimal test X"
76 -RESTRICT="!test? ( test )"
77 -
78 -RECOMMENDED_DEPEND="
79 - >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}]
80 - >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]
81 -"
82 -
83 -# TODO: add pandas-gbq to the tree
84 -OPTIONAL_DEPEND="
85 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
86 - dev-python/blosc[${PYTHON_USEDEP}]
87 - || (
88 - dev-python/html5lib[${PYTHON_USEDEP}]
89 - dev-python/lxml[${PYTHON_USEDEP}]
90 - )
91 - dev-python/jinja[${PYTHON_USEDEP}]
92 - dev-python/matplotlib[${PYTHON_USEDEP}]
93 - || (
94 - dev-python/openpyxl[${PYTHON_USEDEP}]
95 - dev-python/xlsxwriter[${PYTHON_USEDEP}]
96 - )
97 - >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}]
98 - dev-python/s3fs[${PYTHON_USEDEP}]
99 - dev-python/statsmodels[${PYTHON_USEDEP}]
100 - >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}]
101 - >=dev-python/xarray-0.10.8[${PYTHON_USEDEP}]
102 - >=dev-python/xlrd-1.0.0[${PYTHON_USEDEP}]
103 - dev-python/xlwt[${PYTHON_USEDEP}]
104 - >=sci-libs/scipy-1.1[${PYTHON_USEDEP}]
105 - X? (
106 - || (
107 - dev-python/PyQt5[${PYTHON_USEDEP}]
108 - x11-misc/xclip
109 - x11-misc/xsel
110 - )
111 - )
112 -"
113 -COMMON_DEPEND="
114 - >dev-python/numpy-1.13.1[${PYTHON_USEDEP}]
115 - dev-python/python-dateutil[${PYTHON_USEDEP}]
116 - dev-python/pytz[${PYTHON_USEDEP}]
117 -"
118 -DEPEND="${COMMON_DEPEND}
119 - dev-python/setuptools[${PYTHON_USEDEP}]
120 - dev-python/cython[${PYTHON_USEDEP}]
121 - doc? (
122 - ${VIRTUALX_DEPEND}
123 - app-text/pandoc
124 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
125 - dev-python/html5lib[${PYTHON_USEDEP}]
126 - dev-python/ipython[${PYTHON_USEDEP}]
127 - dev-python/lxml[${PYTHON_USEDEP}]
128 - dev-python/matplotlib[${PYTHON_USEDEP}]
129 - dev-python/nbsphinx[${PYTHON_USEDEP}]
130 - >=dev-python/numpydoc-0.9.1[${PYTHON_USEDEP}]
131 - >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
132 - >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
133 - dev-python/pytz[${PYTHON_USEDEP}]
134 - dev-python/rpy[${PYTHON_USEDEP}]
135 - dev-python/sphinx[${PYTHON_USEDEP}]
136 - dev-python/xlrd[${PYTHON_USEDEP}]
137 - dev-python/xlwt[${PYTHON_USEDEP}]
138 - sci-libs/scipy[${PYTHON_USEDEP}]
139 - x11-misc/xclip
140 - )
141 - test? (
142 - ${VIRTUALX_DEPEND}
143 - ${RECOMMENDED_DEPEND}
144 - ${OPTIONAL_DEPEND}
145 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
146 - dev-python/hypothesis[${PYTHON_USEDEP}]
147 - dev-python/nose[${PYTHON_USEDEP}]
148 - dev-python/pymysql[${PYTHON_USEDEP}]
149 - dev-python/pytest[${PYTHON_USEDEP}]
150 - dev-python/pytest-mock[${PYTHON_USEDEP}]
151 - dev-python/psycopg:2[${PYTHON_USEDEP}]
152 - x11-misc/xclip
153 - x11-misc/xsel
154 - )
155 -"
156 -# dev-python/statsmodels invokes a circular dep
157 -# hence rm from doc? ( ), again
158 -RDEPEND="${COMMON_DEPEND}
159 - !minimal? ( ${RECOMMENDED_DEPEND} )
160 - full-support? ( ${OPTIONAL_DEPEND} )
161 -"
162 -
163 -S="${WORKDIR}/${P/_/}"
164 -
165 -PATCHES=(
166 - "${FILESDIR}/${PN}-0.24.2-skip-broken-test.patch"
167 -)
168 -
169 -python_prepare_all() {
170 - # Prevent un-needed download during build
171 - sed -e "/^ 'sphinx.ext.intersphinx',/d" \
172 - -i doc/source/conf.py || die
173 -
174 - distutils-r1_python_prepare_all
175 -}
176 -
177 -python_compile_all() {
178 - # To build docs the need be located in $BUILD_DIR,
179 - # else PYTHONPATH points to unusable modules.
180 - if use doc; then
181 - cd "${BUILD_DIR}"/lib || die
182 - cp -ar "${S}"/doc . && cd doc || die
183 - LANG=C PYTHONPATH=. virtx ${EPYTHON} make.py html
184 - fi
185 -}
186 -
187 -python_test() {
188 - pushd "${BUILD_DIR}"/lib > /dev/null
189 - "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die
190 - PYTHONPATH=. virtx pytest pandas -v --skip-slow --skip-network \
191 - -m "not single"
192 - popd > /dev/null
193 -}
194 -
195 -python_install_all() {
196 - if use doc; then
197 - dodoc -r "${BUILD_DIR}"/lib/doc/build/html
198 - einfo "An initial build of docs is absent of references to statsmodels"
199 - einfo "due to circular dependency. To have them included, emerge"
200 - einfo "statsmodels next and re-emerge pandas with USE doc"
201 - fi
202 -
203 - distutils-r1_python_install_all
204 -}
205 -
206 -pkg_postinst() {
207 - optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck
208 - optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" ">=dev-python/numexpr-2.1"
209 - optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml
210 - optfeature "for msgpack compression using blosc" dev-python/blosc
211 - optfeature "necessary for Amazon S3 access" dev-python/s3fs
212 - optfeature "Template engine for conditional HTML formatting" dev-python/jinja
213 - optfeature "Plotting support" dev-python/matplotlib
214 - optfeature "Needed for Excel I/O" ">=dev-python/openpyxl-1.6.1" dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt
215 - optfeature "necessary for HDF5-based storage" ">=dev-python/pytables-3.2.1"
216 - optfeature "R I/O support" dev-python/rpy
217 - optfeature "Needed for parts of pandas.stats" dev-python/statsmodels
218 - optfeature "SQL database support" ">=dev-python/sqlalchemy-0.8.1"
219 - optfeature "miscellaneous statistical functions" sci-libs/scipy
220 - optfeature "necessary to use pandas.io.clipboard.read_clipboard support" dev-python/PyQt5 dev-python/pygtk x11-misc/xclip x11-misc/xsel
221 -}
222
223 diff --git a/dev-python/pandas/pandas-1.0.4.ebuild b/dev-python/pandas/pandas-1.0.4.ebuild
224 deleted file mode 100644
225 index 3fb89871d2a..00000000000
226 --- a/dev-python/pandas/pandas-1.0.4.ebuild
227 +++ /dev/null
228 @@ -1,175 +0,0 @@
229 -# Copyright 1999-2020 Gentoo Authors
230 -# Distributed under the terms of the GNU General Public License v2
231 -
232 -EAPI=7
233 -
234 -PYTHON_COMPAT=( python3_{6..9} )
235 -PYTHON_REQ_USE="threads(+)"
236 -
237 -VIRTUALX_REQUIRED="manual"
238 -DISTUTILS_USE_SETUPTOOLS=rdepend
239 -
240 -inherit distutils-r1 eutils flag-o-matic virtualx
241 -
242 -DESCRIPTION="Powerful data structures for data analysis and statistics"
243 -HOMEPAGE="https://pandas.pydata.org/"
244 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz"
245 -S="${WORKDIR}/${P/_/}"
246 -
247 -SLOT="0"
248 -LICENSE="BSD"
249 -KEYWORDS="amd64 ~x86"
250 -IUSE="doc full-support minimal test X"
251 -RESTRICT="!test? ( test )"
252 -
253 -RECOMMENDED_DEPEND="
254 - >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}]
255 - >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]
256 -"
257 -
258 -# TODO: add pandas-gbq to the tree
259 -OPTIONAL_DEPEND="
260 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
261 - dev-python/blosc[${PYTHON_USEDEP}]
262 - || (
263 - dev-python/html5lib[${PYTHON_USEDEP}]
264 - dev-python/lxml[${PYTHON_USEDEP}]
265 - )
266 - dev-python/jinja[${PYTHON_USEDEP}]
267 - dev-python/matplotlib[${PYTHON_USEDEP}]
268 - || (
269 - dev-python/openpyxl[${PYTHON_USEDEP}]
270 - dev-python/xlsxwriter[${PYTHON_USEDEP}]
271 - )
272 - >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}]
273 - dev-python/s3fs[${PYTHON_USEDEP}]
274 - dev-python/statsmodels[${PYTHON_USEDEP}]
275 - $(python_gen_cond_dep '
276 - >=dev-python/xarray-0.10.8[${PYTHON_USEDEP}]
277 - ' python3_{6,7})
278 - >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}]
279 - >=dev-python/xlrd-1.0.0[${PYTHON_USEDEP}]
280 - dev-python/xlwt[${PYTHON_USEDEP}]
281 - >=sci-libs/scipy-1.1[${PYTHON_USEDEP}]
282 - X? (
283 - || (
284 - dev-python/PyQt5[${PYTHON_USEDEP}]
285 - x11-misc/xclip
286 - x11-misc/xsel
287 - )
288 - )
289 -"
290 -COMMON_DEPEND="
291 - >dev-python/numpy-1.13.1[${PYTHON_USEDEP}]
292 - dev-python/python-dateutil[${PYTHON_USEDEP}]
293 - dev-python/pytz[${PYTHON_USEDEP}]
294 -"
295 -DEPEND="${COMMON_DEPEND}
296 - dev-python/setuptools[${PYTHON_USEDEP}]
297 - >=dev-python/cython-0.29.20-r1[${PYTHON_USEDEP}]
298 - doc? (
299 - ${VIRTUALX_DEPEND}
300 - app-text/pandoc
301 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
302 - dev-python/html5lib[${PYTHON_USEDEP}]
303 - dev-python/ipython[${PYTHON_USEDEP}]
304 - dev-python/lxml[${PYTHON_USEDEP}]
305 - dev-python/matplotlib[${PYTHON_USEDEP}]
306 - dev-python/nbsphinx[${PYTHON_USEDEP}]
307 - >=dev-python/numpydoc-0.9.1[${PYTHON_USEDEP}]
308 - >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
309 - >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
310 - dev-python/pytz[${PYTHON_USEDEP}]
311 - dev-python/rpy[${PYTHON_USEDEP}]
312 - dev-python/sphinx[${PYTHON_USEDEP}]
313 - dev-python/xlrd[${PYTHON_USEDEP}]
314 - dev-python/xlwt[${PYTHON_USEDEP}]
315 - sci-libs/scipy[${PYTHON_USEDEP}]
316 - x11-misc/xclip
317 - )
318 - test? (
319 - ${VIRTUALX_DEPEND}
320 - ${RECOMMENDED_DEPEND}
321 - ${OPTIONAL_DEPEND}
322 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
323 - dev-python/hypothesis[${PYTHON_USEDEP}]
324 - dev-python/nose[${PYTHON_USEDEP}]
325 - dev-python/pymysql[${PYTHON_USEDEP}]
326 - dev-python/pytest[${PYTHON_USEDEP}]
327 - dev-python/pytest-mock[${PYTHON_USEDEP}]
328 - dev-python/psycopg:2[${PYTHON_USEDEP}]
329 - x11-misc/xclip
330 - x11-misc/xsel
331 - )
332 -"
333 -# dev-python/statsmodels invokes a circular dep
334 -# hence rm from doc? ( ), again
335 -RDEPEND="${COMMON_DEPEND}
336 - !minimal? ( ${RECOMMENDED_DEPEND} )
337 - full-support? ( ${OPTIONAL_DEPEND} )
338 -"
339 -
340 -python_prepare_all() {
341 - # Prevent un-needed download during build
342 - sed -e "/^ 'sphinx.ext.intersphinx',/d" \
343 - -i doc/source/conf.py || die
344 -
345 - # requires package installed
346 - sed -e 's:test_register_entrypoint:_&:' \
347 - -i pandas/tests/plotting/test_backend.py || die
348 -
349 - distutils-r1_python_prepare_all
350 -}
351 -
352 -python_compile_all() {
353 - # To build docs the need be located in $BUILD_DIR,
354 - # else PYTHONPATH points to unusable modules.
355 - if use doc; then
356 - cd "${BUILD_DIR}"/lib || die
357 - cp -ar "${S}"/doc . && cd doc || die
358 - LANG=C PYTHONPATH=. virtx ${EPYTHON} make.py html
359 - fi
360 -}
361 -
362 -src_test() {
363 - virtx distutils-r1_src_test
364 -}
365 -
366 -python_test() {
367 - local -x LC_ALL=C.UTF-8
368 - pushd "${BUILD_DIR}"/lib > /dev/null || die
369 - "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die
370 - PYTHONPATH=. pytest pandas -v --skip-slow --skip-network \
371 - -m "not single" || die "Tests failed with ${EPYTHON}"
372 - find . '(' -name .pytest_cache -o -name .hypothesis ')' \
373 - -exec rm -r {} + || die
374 - popd > /dev/null || die
375 -}
376 -
377 -python_install_all() {
378 - if use doc; then
379 - dodoc -r "${BUILD_DIR}"/lib/doc/build/html
380 - einfo "An initial build of docs is absent of references to statsmodels"
381 - einfo "due to circular dependency. To have them included, emerge"
382 - einfo "statsmodels next and re-emerge pandas with USE doc"
383 - fi
384 -
385 - distutils-r1_python_install_all
386 -}
387 -
388 -pkg_postinst() {
389 - optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck
390 - optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" ">=dev-python/numexpr-2.1"
391 - optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml
392 - optfeature "for msgpack compression using blosc" dev-python/blosc
393 - optfeature "necessary for Amazon S3 access" dev-python/s3fs
394 - optfeature "Template engine for conditional HTML formatting" dev-python/jinja
395 - optfeature "Plotting support" dev-python/matplotlib
396 - optfeature "Needed for Excel I/O" ">=dev-python/openpyxl-1.6.1" dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt
397 - optfeature "necessary for HDF5-based storage" ">=dev-python/pytables-3.2.1"
398 - optfeature "R I/O support" dev-python/rpy
399 - optfeature "Needed for parts of pandas.stats" dev-python/statsmodels
400 - optfeature "SQL database support" ">=dev-python/sqlalchemy-0.8.1"
401 - optfeature "miscellaneous statistical functions" sci-libs/scipy
402 - optfeature "necessary to use pandas.io.clipboard.read_clipboard support" dev-python/PyQt5 dev-python/pygtk x11-misc/xclip x11-misc/xsel
403 -}