1 |
commit: 8b2102355a1bf6bea86984f5194f4bbfa6aff465 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 9 12:39:12 2020 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 9 12:44:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b210235 |
7 |
|
8 |
dev-python/pandas: version bump. |
9 |
|
10 |
upstream have fixed the parallel issue by forcing the build system to |
11 |
be mostly serial. |
12 |
|
13 |
3 s3 tests fails because dev-python/s3fs is not new enough (>=0.3). |
14 |
|
15 |
drop amd64-linux x86-linux keywords because the dependencies are not |
16 |
met. |
17 |
|
18 |
Reported-By: Thomas Beutin, Andrew |
19 |
Closes: https://bugs.gentoo.org/680036 |
20 |
Package-Manager: Portage-2.3.88, Repoman-2.3.18 |
21 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
22 |
|
23 |
dev-python/pandas/Manifest | 1 + |
24 |
dev-python/pandas/pandas-1.0.1.ebuild | 164 ++++++++++++++++++++++++++++++++++ |
25 |
2 files changed, 165 insertions(+) |
26 |
|
27 |
diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest |
28 |
index 979d04182ba..6e981506a51 100644 |
29 |
--- a/dev-python/pandas/Manifest |
30 |
+++ b/dev-python/pandas/Manifest |
31 |
@@ -1 +1,2 @@ |
32 |
DIST pandas-0.24.2.tar.gz 11837693 BLAKE2B 3762e94554a3ae3c803c9a412c5c551c15a9fbf15cb05633f7d1b0ccbfddc646f68f0306666e688a83a4495b0537cea2fec671157f5a63aaa5f9cad6b791261e SHA512 0795c6bb8a47a511853558ea59d371b4540ec175f213cfba4ad2361d6481fea5d3f7074bb4961c32f2f0080a72d7436a9b3706f5cc692074f98d83bfc587fd15 |
33 |
+DIST pandas-1.0.1.tar.gz 4852368 BLAKE2B d6d3ae757d245b665e4b67bd237c090ddff97688934268b171e278a14d2439f5d993addc304f16a0ac9ab7bc34bfe36df807f998148106b062c567a5a7f14f4a SHA512 6755d17a4a4a8c3770f413199a12b3c4d6b5f5fcc925bec9b9b0f813fcd020df0b2c0a32dc8528c795b16556e00c078a03e4a6746192b44bfbd7ffc809c1e56c |
34 |
|
35 |
diff --git a/dev-python/pandas/pandas-1.0.1.ebuild b/dev-python/pandas/pandas-1.0.1.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..c2bd75a1183 |
38 |
--- /dev/null |
39 |
+++ b/dev-python/pandas/pandas-1.0.1.ebuild |
40 |
@@ -0,0 +1,164 @@ |
41 |
+# Copyright 1999-2020 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+PYTHON_COMPAT=( python3_{6,7} ) |
47 |
+PYTHON_REQ_USE="threads(+)" |
48 |
+ |
49 |
+VIRTUALX_REQUIRED="manual" |
50 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
51 |
+ |
52 |
+inherit distutils-r1 eutils flag-o-matic virtualx |
53 |
+ |
54 |
+DESCRIPTION="Powerful data structures for data analysis and statistics" |
55 |
+HOMEPAGE="https://pandas.pydata.org/" |
56 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz" |
57 |
+ |
58 |
+SLOT="0" |
59 |
+LICENSE="BSD" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="doc full-support minimal test X" |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+RECOMMENDED_DEPEND=" |
65 |
+ >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/numexpr-2.1[${PYTHON_USEDEP}] |
67 |
+" |
68 |
+ |
69 |
+# TODO: add pandas-gbq to the tree |
70 |
+OPTIONAL_DEPEND=" |
71 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
72 |
+ dev-python/blosc[${PYTHON_USEDEP}] |
73 |
+ || ( |
74 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
75 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
78 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
79 |
+ || ( |
80 |
+ dev-python/openpyxl[${PYTHON_USEDEP}] |
81 |
+ dev-python/xlsxwriter[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}] |
84 |
+ dev-python/s3fs[${PYTHON_USEDEP}] |
85 |
+ dev-python/statsmodels[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/xarray-0.10.8[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/xlrd-1.0.0[${PYTHON_USEDEP}] |
89 |
+ dev-python/xlwt[${PYTHON_USEDEP}] |
90 |
+ >=sci-libs/scipy-1.1[${PYTHON_USEDEP}] |
91 |
+ X? ( |
92 |
+ || ( |
93 |
+ dev-python/PyQt5[${PYTHON_USEDEP}] |
94 |
+ x11-misc/xclip |
95 |
+ x11-misc/xsel |
96 |
+ ) |
97 |
+ ) |
98 |
+" |
99 |
+COMMON_DEPEND=" |
100 |
+ >dev-python/numpy-1.13.1[${PYTHON_USEDEP}] |
101 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
102 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
103 |
+" |
104 |
+DEPEND="${COMMON_DEPEND} |
105 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
106 |
+ dev-python/cython[${PYTHON_USEDEP}] |
107 |
+ doc? ( |
108 |
+ ${VIRTUALX_DEPEND} |
109 |
+ app-text/pandoc |
110 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
111 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
112 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
113 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
114 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
115 |
+ dev-python/nbsphinx[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/numpydoc-0.9.1[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}] |
119 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
120 |
+ dev-python/rpy[${PYTHON_USEDEP}] |
121 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
122 |
+ dev-python/xlrd[${PYTHON_USEDEP}] |
123 |
+ dev-python/xlwt[${PYTHON_USEDEP}] |
124 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
125 |
+ x11-misc/xclip |
126 |
+ ) |
127 |
+ test? ( |
128 |
+ ${VIRTUALX_DEPEND} |
129 |
+ ${RECOMMENDED_DEPEND} |
130 |
+ ${OPTIONAL_DEPEND} |
131 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
132 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
133 |
+ dev-python/nose[${PYTHON_USEDEP}] |
134 |
+ dev-python/pymysql[${PYTHON_USEDEP}] |
135 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
136 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
137 |
+ dev-python/psycopg:2[${PYTHON_USEDEP}] |
138 |
+ x11-misc/xclip |
139 |
+ x11-misc/xsel |
140 |
+ ) |
141 |
+" |
142 |
+# dev-python/statsmodels invokes a circular dep |
143 |
+# hence rm from doc? ( ), again |
144 |
+RDEPEND="${COMMON_DEPEND} |
145 |
+ !minimal? ( ${RECOMMENDED_DEPEND} ) |
146 |
+ full-support? ( ${OPTIONAL_DEPEND} ) |
147 |
+" |
148 |
+ |
149 |
+S="${WORKDIR}/${P/_/}" |
150 |
+ |
151 |
+python_prepare_all() { |
152 |
+ # Prevent un-needed download during build |
153 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" \ |
154 |
+ -i doc/source/conf.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 |
+python_test() { |
170 |
+ pushd "${BUILD_DIR}"/lib > /dev/null |
171 |
+ "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die |
172 |
+ PYTHONPATH=. virtx pytest pandas -v --skip-slow --skip-network \ |
173 |
+ -m "not single" |
174 |
+ find . -name .pytest_cache -exec rm -r {} + || die |
175 |
+ popd > /dev/null |
176 |
+} |
177 |
+ |
178 |
+python_install_all() { |
179 |
+ if use doc; then |
180 |
+ dodoc -r "${BUILD_DIR}"/lib/doc/build/html |
181 |
+ einfo "An initial build of docs is absent of references to statsmodels" |
182 |
+ einfo "due to circular dependency. To have them included, emerge" |
183 |
+ einfo "statsmodels next and re-emerge pandas with USE doc" |
184 |
+ fi |
185 |
+ |
186 |
+ distutils-r1_python_install_all |
187 |
+} |
188 |
+ |
189 |
+pkg_postinst() { |
190 |
+ optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck |
191 |
+ optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" ">=dev-python/numexpr-2.1" |
192 |
+ optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml |
193 |
+ optfeature "for msgpack compression using blosc" dev-python/blosc |
194 |
+ optfeature "necessary for Amazon S3 access" dev-python/s3fs |
195 |
+ optfeature "Template engine for conditional HTML formatting" dev-python/jinja |
196 |
+ optfeature "Plotting support" dev-python/matplotlib |
197 |
+ optfeature "Needed for Excel I/O" ">=dev-python/openpyxl-1.6.1" dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt |
198 |
+ optfeature "necessary for HDF5-based storage" ">=dev-python/pytables-3.2.1" |
199 |
+ optfeature "R I/O support" dev-python/rpy |
200 |
+ optfeature "Needed for parts of pandas.stats" dev-python/statsmodels |
201 |
+ optfeature "SQL database support" ">=dev-python/sqlalchemy-0.8.1" |
202 |
+ optfeature "miscellaneous statistical functions" sci-libs/scipy |
203 |
+ optfeature "necessary to use pandas.io.clipboard.read_clipboard support" dev-python/PyQt5 dev-python/pygtk x11-misc/xclip x11-misc/xsel |
204 |
+} |