1 |
commit: 33dfb15195aa23c778feac59c5112ffc1f2320c2 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 4 11:49:28 2017 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 4 11:49:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33dfb151 |
7 |
|
8 |
dev-python/pandas: Version Bump |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=620290 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
13 |
|
14 |
dev-python/pandas/Manifest | 1 + |
15 |
dev-python/pandas/pandas-0.20.1.ebuild | 162 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 163 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest |
19 |
index c7d4b01cb04..80b1bf9ae5b 100644 |
20 |
--- a/dev-python/pandas/Manifest |
21 |
+++ b/dev-python/pandas/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST pandas-0.16.2.tar.gz 4931751 SHA256 e01853dfe111f3aea005315573400b7216ddbab |
23 |
DIST pandas-0.17.0.tar.gz 6508621 SHA256 320d4fdf734b82adebc8fde9d8ca4b05fe155a72b6f7aa95d76242da8748d6a4 SHA512 bae6964e263c7ff6cac722cdfe23081f23c357d9bc39a670b5627bef4630c236a58aa8c0393eae921721bf7049c8e5266b4dea71dd957da5d89dafc14a04797b WHIRLPOOL d654eb2f9ffbfedbde60e4a6e6ce6f54650a8a68b4d20035744aa55111525d6bba4dae2ccbfce65acf71bb200e2e6029c7f6c9bcc9d0c582d808444738baedb1 |
24 |
DIST pandas-0.17.1.tar.gz 6674479 SHA256 cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837 SHA512 9d9f9064585b1f3551625e0c8f4eedaaa1253790c2a5cb28e58e70eb805cc18f9770d793aa748cbd76798488ff60efdd01eb4b21daf5ad8f1dc4d9c050487234 WHIRLPOOL 5238575bd64b8d38db4f9a0ea987a7f78ffd1821e5a22bad65c84c407feca3af6f3b536a0a2f337291aa04e94c86fdb40382dad4ce50f8a33a5e26d655c628c2 |
25 |
DIST pandas-0.19.1.tar.gz 8360233 SHA256 2509feaeda72fce03675e2eccd2284bb1cadb6a0737008a5e741fe2431d47421 SHA512 6451990a7fae8c6db8ab0b014a13b4f1828754d3998f13c17b111f891fb9fd23f8e09b907623096dfa55668c42298eee1373210a9fddb95f56dd7d552b964e6f WHIRLPOOL 700c0d819ab62134baf56430b7fa8840636ea377d00397341d33ec5f13474d9eeefea245aede80a80f7c16348ef811788947e5fe0020c9770005c74dd1288ef3 |
26 |
+DIST pandas-0.20.1.tar.gz 10307434 SHA256 42707365577ef69f7c9c168ddcf045df2957595a9ee71bc13c7997eecb96b190 SHA512 d477a815914c825efd6430f7eb19f3f9115c1c4ab03000ca6d4f64023f7b5f53eff512792fea2d8b33c7febb3667fc3a3de55f11eeb453f285cae40e6b473707 WHIRLPOOL fca35c7178441e3cfe990740aecba923d8b3d56d70fa7b0285b09305a0d2f7a6ad01bb906d6d92748a038a3841cda783f01f75f93b67f15c53c9854a43819841 |
27 |
|
28 |
diff --git a/dev-python/pandas/pandas-0.20.1.ebuild b/dev-python/pandas/pandas-0.20.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..3195714ae4b |
31 |
--- /dev/null |
32 |
+++ b/dev-python/pandas/pandas-0.20.1.ebuild |
33 |
@@ -0,0 +1,162 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
40 |
+PYTHON_REQ_USE="threads(+)" |
41 |
+ |
42 |
+VIRTUALX_REQUIRED="manual" |
43 |
+ |
44 |
+inherit distutils-r1 eutils flag-o-matic virtualx |
45 |
+ |
46 |
+DESCRIPTION="Powerful data structures for data analysis and statistics" |
47 |
+HOMEPAGE="http://pandas.pydata.org/" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+SLOT="0" |
51 |
+LICENSE="BSD" |
52 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="doc -minimal full-support test X" |
54 |
+ |
55 |
+MINIMAL_DEPEND=" |
56 |
+ >dev-python/numpy-1.7[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/python-dateutil-2.0[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
59 |
+ !<dev-python/numexpr-2.1[${PYTHON_USEDEP}] |
60 |
+ !~dev-python/openpyxl-1.9.0[${PYTHON_USEDEP}]" |
61 |
+RECOMMENDED_DEPEND=" |
62 |
+ dev-python/bottleneck[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]" |
64 |
+OPTIONAL_DEPEND=" |
65 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
66 |
+ dev-python/blosc[${PYTHON_USEDEP}] |
67 |
+ dev-python/boto[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/google-api-python-client-1.2.0[$(python_gen_usedep python2_7 pypy)] |
69 |
+ || ( dev-python/html5lib[${PYTHON_USEDEP}] dev-python/lxml[${PYTHON_USEDEP}] ) |
70 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
71 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
72 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
73 |
+ || ( >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}] dev-python/xlsxwriter[${PYTHON_USEDEP}] ) |
74 |
+ >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}] |
75 |
+ dev-python/python-gflags[$(python_gen_usedep python2_7 pypy)] |
76 |
+ dev-python/rpy[${PYTHON_USEDEP}] |
77 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
78 |
+ dev-python/statsmodels[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}] |
80 |
+ dev-python/xlrd[${PYTHON_USEDEP}] |
81 |
+ dev-python/xlwt[${PYTHON_USEDEP}] |
82 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
83 |
+ X? ( |
84 |
+ || ( |
85 |
+ dev-python/PyQt4[${PYTHON_USEDEP}] |
86 |
+ dev-python/pyside[${PYTHON_USEDEP}] |
87 |
+ dev-python/pygtk[$(python_gen_usedep python2_7)] |
88 |
+ ) |
89 |
+ || ( |
90 |
+ x11-misc/xclip |
91 |
+ x11-misc/xsel |
92 |
+ ) |
93 |
+ ) |
94 |
+ " |
95 |
+ |
96 |
+DEPEND="${MINIMAL_DEPEND} |
97 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/cython-0.23[${PYTHON_USEDEP}] |
99 |
+ doc? ( |
100 |
+ ${VIRTUALX_DEPEND} |
101 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
102 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
103 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
104 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
105 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}] |
108 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
109 |
+ dev-python/rpy[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}] |
111 |
+ dev-python/xlrd[${PYTHON_USEDEP}] |
112 |
+ dev-python/xlwt[${PYTHON_USEDEP}] |
113 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
114 |
+ x11-misc/xclip |
115 |
+ ) |
116 |
+ test? ( |
117 |
+ ${VIRTUALX_DEPEND} |
118 |
+ ${RECOMMENDED_DEPEND} |
119 |
+ ${OPTIONAL_DEPEND} |
120 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
121 |
+ dev-python/nose[${PYTHON_USEDEP}] |
122 |
+ dev-python/pymysql[${PYTHON_USEDEP}] |
123 |
+ dev-python/psycopg:2[${PYTHON_USEDEP}] |
124 |
+ x11-misc/xclip |
125 |
+ x11-misc/xsel |
126 |
+ )" |
127 |
+# dev-python/statsmodels invokes a circular dep |
128 |
+# hence rm from doc? ( ), again |
129 |
+RDEPEND=" |
130 |
+ ${MINIMAL_DEPEND} |
131 |
+ !minimal? ( ${RECOMMENDED_DEPEND} ) |
132 |
+ full-support? ( ${OPTIONAL_DEPEND} )" |
133 |
+ |
134 |
+python_prepare_all() { |
135 |
+ # Prevent un-needed download during build |
136 |
+ sed \ |
137 |
+ -e "/^ 'sphinx.ext.intersphinx',/d" \ |
138 |
+ -i doc/source/conf.py || die |
139 |
+ |
140 |
+ # https://github.com/pydata/pandas/issues/11299 |
141 |
+ sed \ |
142 |
+ -e 's:testOdArray:disable:g' \ |
143 |
+ -i pandas/tests/io/json/test_ujson.py || die |
144 |
+ |
145 |
+ distutils-r1_python_prepare_all |
146 |
+} |
147 |
+ |
148 |
+python_compile_all() { |
149 |
+ # To build docs the need be located in $BUILD_DIR, |
150 |
+ # else PYTHONPATH points to unusable modules. |
151 |
+ if use doc; then |
152 |
+ cd "${BUILD_DIR}"/lib || die |
153 |
+ cp -ar "${S}"/doc . && cd doc || die |
154 |
+ LANG=C PYTHONPATH=. virtx ${EPYTHON} make.py html || die |
155 |
+ fi |
156 |
+} |
157 |
+ |
158 |
+python_test() { |
159 |
+ local test_pandas='not network and not disabled' |
160 |
+ [[ -n "${FAST_PANDAS}" ]] && test_pandas+=' and not slow' |
161 |
+ pushd "${BUILD_DIR}"/lib > /dev/null |
162 |
+ "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die |
163 |
+ PYTHONPATH=. MPLCONFIGDIR=. \ |
164 |
+ virtx nosetests --verbosity=3 -A "${test_pandas}" pandas |
165 |
+ popd > /dev/null |
166 |
+} |
167 |
+ |
168 |
+python_install_all() { |
169 |
+ if use doc; then |
170 |
+ dodoc -r "${BUILD_DIR}"/lib/doc/build/html |
171 |
+ einfo "An initial build of docs is absent of references to statsmodels" |
172 |
+ einfo "due to circular dependency. To have them included, emerge" |
173 |
+ einfo "statsmodels next and re-emerge pandas with USE doc" |
174 |
+ fi |
175 |
+ |
176 |
+ distutils-r1_python_install_all |
177 |
+} |
178 |
+ |
179 |
+pkg_postinst() { |
180 |
+ optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck |
181 |
+ optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" >=dev-python/numexpr-2.1 |
182 |
+ optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml |
183 |
+ optfeature "for msgpack compression using ``blosc``" dev-python/blosc |
184 |
+ optfeature "necessary for Amazon S3 access" dev-python/boto |
185 |
+ optfeature "needed for pandas.io.gbq" dev-python/httplib2 dev-python/setuptools dev-python/python-gflags >=dev-python/google-api-python-client-1.2.0 |
186 |
+ optfeature "Template engine for conditional HTML formatting" dev-python/jinja |
187 |
+ optfeature "Plotting support" dev-python/matplotlib |
188 |
+ optfeature "Needed for Excel I/O" >=dev-python/openpyxl-1.6.1 dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt |
189 |
+ optfeature "necessary for HDF5-based storage" >=dev-python/pytables-3.2.1 |
190 |
+ optfeature "R I/O support" dev-python/rpy |
191 |
+ optfeature "Needed for parts of :mod:`pandas.stats`" dev-python/statsmodels |
192 |
+ optfeature "SQL database support" >=dev-python/sqlalchemy-0.8.1 |
193 |
+ optfeature "miscellaneous statistical functions" sci-libs/scipy |
194 |
+ optfeature "necessary to use ~pandas.io.clipboard.read_clipboard support" dev-python/PyQt4 dev-python/pyside dev-python/pygtk x11-misc/xclip x11-misc/xsel |
195 |
+} |