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