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/
Date: Tue, 08 Sep 2020 21:47:31
Message-Id: 1599601645.6ce67a5f4dba9931fefc911186951373be90da78.mgorny@gentoo
1 commit: 6ce67a5f4dba9931fefc911186951373be90da78
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 8 20:39:27 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 21:47:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ce67a5f
7
8 dev-python/pandas: Bump to 1.1.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pandas/Manifest | 1 +
13 dev-python/pandas/pandas-1.1.2.ebuild | 181 ++++++++++++++++++++++++++++++++++
14 2 files changed, 182 insertions(+)
15
16 diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
17 index 26bea8e775d..1f445f099a7 100644
18 --- a/dev-python/pandas/Manifest
19 +++ b/dev-python/pandas/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pandas-1.0.5.tar.gz 5007108 BLAKE2B 6aff9602f8b1642af1dca70c7c596f2978bfef8ca9bc782d55aeeab85d3768289849ccd0150291c33cab3442d38cedada91fb846abaade1b3905098edb06c06e SHA512 bb9e3ed9988f7b878ac6f9d7c6c054b119acfc4b960ae42ea92436979ef2098289123cac32b176753942a1edb3b6bd35c4eaf05112a25fbf8a89078fd76a2646
22 DIST pandas-1.1.0.tar.gz 5211071 BLAKE2B 538e7579384dceb29f1761e00181fda4f07556ee15723a127966e47c317babead19b364943808d11f03007d5a48da3b28bf8fd9e5c1f40bb3285604307bff267 SHA512 496344967e6061ed451edfe2057d0b63d7277cdce0e12e2e2ce558aef2c23fa5d85daae239fcf88820196add3a928734f31af2734866da7b0385f363607e2885
23 DIST pandas-1.1.1.tar.gz 5213685 BLAKE2B 6604c7def761f8eef4596a9ad6c1afe1f59fdd6181f9cdc9edfa97939a9e668e745ebc0abd8664eda4f864be54740d46e4aa10f32728306b897e397bd6e1f682 SHA512 db93e66956d832da594f04aaa5cb895ea22f66acd0e97ad76f22153f9e872e46845dad5b952b54463ec8ef3e2a73a766eea8d53e980a5508e3a3346429a07999
24 +DIST pandas-1.1.2.tar.gz 5220166 BLAKE2B 3351bf0e539335b7f13dd6e6590309989c3bd5d36c0fd188808be14a147b828f1a3a14007fc499e2b5f580072b02de8587885629a8ffb1fc70b2577fbd034001 SHA512 a81e9f82b866cc48eaf55c288610b150fe3fa6ba6100c0b13516eb0ce4b569397127b85161e53454d0b2b24f276aa9806baa007a521623aad2345e7b7168cbb5
25
26 diff --git a/dev-python/pandas/pandas-1.1.2.ebuild b/dev-python/pandas/pandas-1.1.2.ebuild
27 new file mode 100644
28 index 00000000000..de735561e5c
29 --- /dev/null
30 +++ b/dev-python/pandas/pandas-1.1.2.ebuild
31 @@ -0,0 +1,181 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6..9} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +VIRTUALX_REQUIRED="manual"
41 +DISTUTILS_USE_SETUPTOOLS=rdepend
42 +
43 +inherit distutils-r1 flag-o-matic multiprocessing optfeature virtualx
44 +
45 +DESCRIPTION="Powerful data structures for data analysis and statistics"
46 +HOMEPAGE="https://pandas.pydata.org/"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz"
48 +S="${WORKDIR}/${P/_/}"
49 +
50 +SLOT="0"
51 +LICENSE="BSD"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
53 +IUSE="doc full-support minimal test X"
54 +RESTRICT="!test? ( test )"
55 +
56 +RECOMMENDED_DEPEND="
57 + >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}]
58 + >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]
59 +"
60 +
61 +# TODO: add pandas-gbq to the tree
62 +OPTIONAL_DEPEND="
63 + dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
64 + dev-python/blosc[${PYTHON_USEDEP}]
65 + || (
66 + dev-python/html5lib[${PYTHON_USEDEP}]
67 + dev-python/lxml[${PYTHON_USEDEP}]
68 + )
69 + dev-python/jinja[${PYTHON_USEDEP}]
70 + dev-python/matplotlib[${PYTHON_USEDEP}]
71 + || (
72 + dev-python/openpyxl[${PYTHON_USEDEP}]
73 + dev-python/xlsxwriter[${PYTHON_USEDEP}]
74 + )
75 + >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}]
76 + dev-python/s3fs[${PYTHON_USEDEP}]
77 + dev-python/statsmodels[${PYTHON_USEDEP}]
78 + $(python_gen_cond_dep '
79 + >=dev-python/xarray-0.10.8[${PYTHON_USEDEP}]
80 + ' python3_{6,7})
81 + >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}]
82 + >=dev-python/xlrd-1.0.0[${PYTHON_USEDEP}]
83 + dev-python/xlwt[${PYTHON_USEDEP}]
84 + >=sci-libs/scipy-1.1[${PYTHON_USEDEP}]
85 + X? (
86 + || (
87 + dev-python/PyQt5[${PYTHON_USEDEP}]
88 + x11-misc/xclip
89 + x11-misc/xsel
90 + )
91 + )
92 +"
93 +COMMON_DEPEND="
94 + >dev-python/numpy-1.15.4[${PYTHON_USEDEP}]
95 + dev-python/python-dateutil[${PYTHON_USEDEP}]
96 + dev-python/pytz[${PYTHON_USEDEP}]
97 +"
98 +DEPEND="${COMMON_DEPEND}
99 + >=dev-python/cython-0.29.20-r1[${PYTHON_USEDEP}]
100 + doc? (
101 + ${VIRTUALX_DEPEND}
102 + app-text/pandoc
103 + dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
104 + dev-python/html5lib[${PYTHON_USEDEP}]
105 + dev-python/ipython[${PYTHON_USEDEP}]
106 + dev-python/lxml[${PYTHON_USEDEP}]
107 + dev-python/matplotlib[${PYTHON_USEDEP}]
108 + dev-python/nbsphinx[${PYTHON_USEDEP}]
109 + >=dev-python/numpydoc-0.9.1[${PYTHON_USEDEP}]
110 + >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
111 + >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
112 + dev-python/pytz[${PYTHON_USEDEP}]
113 + dev-python/rpy[${PYTHON_USEDEP}]
114 + dev-python/sphinx[${PYTHON_USEDEP}]
115 + dev-python/xlrd[${PYTHON_USEDEP}]
116 + dev-python/xlwt[${PYTHON_USEDEP}]
117 + sci-libs/scipy[${PYTHON_USEDEP}]
118 + x11-misc/xclip
119 + )
120 + test? (
121 + ${VIRTUALX_DEPEND}
122 + ${RECOMMENDED_DEPEND}
123 + ${OPTIONAL_DEPEND}
124 + dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
125 + dev-python/hypothesis[${PYTHON_USEDEP}]
126 + dev-python/nose[${PYTHON_USEDEP}]
127 + dev-python/openpyxl[${PYTHON_USEDEP}]
128 + dev-python/pymysql[${PYTHON_USEDEP}]
129 + dev-python/pytest[${PYTHON_USEDEP}]
130 + dev-python/pytest-mock[${PYTHON_USEDEP}]
131 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
132 + dev-python/psycopg:2[${PYTHON_USEDEP}]
133 + dev-python/xlsxwriter[${PYTHON_USEDEP}]
134 + x11-misc/xclip
135 + x11-misc/xsel
136 + )
137 +"
138 +# dev-python/statsmodels invokes a circular dep
139 +# hence rm from doc? ( ), again
140 +RDEPEND="${COMMON_DEPEND}
141 + !minimal? ( ${RECOMMENDED_DEPEND} )
142 + full-support? ( ${OPTIONAL_DEPEND} )
143 +"
144 +
145 +python_prepare_all() {
146 + # Prevent un-needed download during build
147 + sed -e "/^ 'sphinx.ext.intersphinx',/d" \
148 + -i doc/source/conf.py || die
149 +
150 + # requires package installed
151 + sed -e 's:test_register_entrypoint:_&:' \
152 + -i pandas/tests/plotting/test_backend.py || die
153 +
154 + sed -e '/extra_compile_args =/s:"-Werror"::' \
155 + -i setup.py || die
156 +
157 + distutils-r1_python_prepare_all
158 +}
159 +
160 +python_compile_all() {
161 + # To build docs the need be located in $BUILD_DIR,
162 + # else PYTHONPATH points to unusable modules.
163 + if use doc; then
164 + cd "${BUILD_DIR}"/lib || die
165 + cp -ar "${S}"/doc . && cd doc || die
166 + LANG=C PYTHONPATH=. virtx ${EPYTHON} make.py html
167 + fi
168 +}
169 +
170 +src_test() {
171 + virtx distutils-r1_src_test
172 +}
173 +
174 +python_test() {
175 + local -x LC_ALL=C.UTF-8
176 + pushd "${BUILD_DIR}"/lib > /dev/null || die
177 + "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die
178 + PYTHONPATH=. pytest pandas -v --skip-slow --skip-network \
179 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \
180 + -m "not single" || die "Tests failed with ${EPYTHON}"
181 + find . '(' -name .pytest_cache -o -name .hypothesis ')' \
182 + -exec rm -r {} + || die
183 + popd > /dev/null || die
184 +}
185 +
186 +python_install_all() {
187 + if use doc; then
188 + dodoc -r "${BUILD_DIR}"/lib/doc/build/html
189 + einfo "An initial build of docs is absent of references to statsmodels"
190 + einfo "due to circular dependency. To have them included, emerge"
191 + einfo "statsmodels next and re-emerge pandas with USE doc"
192 + fi
193 +
194 + distutils-r1_python_install_all
195 +}
196 +
197 +pkg_postinst() {
198 + optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck
199 + optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" ">=dev-python/numexpr-2.1"
200 + optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml
201 + optfeature "for msgpack compression using blosc" dev-python/blosc
202 + optfeature "necessary for Amazon S3 access" dev-python/s3fs
203 + optfeature "Template engine for conditional HTML formatting" dev-python/jinja
204 + optfeature "Plotting support" dev-python/matplotlib
205 + optfeature "Needed for Excel I/O" ">=dev-python/openpyxl-1.6.1" dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt
206 + optfeature "necessary for HDF5-based storage" ">=dev-python/pytables-3.2.1"
207 + optfeature "R I/O support" dev-python/rpy
208 + optfeature "Needed for parts of pandas.stats" dev-python/statsmodels
209 + optfeature "SQL database support" ">=dev-python/sqlalchemy-0.8.1"
210 + optfeature "miscellaneous statistical functions" sci-libs/scipy
211 + optfeature "necessary to use pandas.io.clipboard.read_clipboard support" dev-python/PyQt5 dev-python/pygtk x11-misc/xclip x11-misc/xsel
212 +}