1 |
commit: 362fd3c89dc7ae56bfdc84fbda2faba9da43a0a1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 3 06:43:39 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 3 08:16:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=362fd3c8 |
7 |
|
8 |
dev-python/pandas: Bump to 1.3.0 |
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.3.0.ebuild | 192 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 193 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest |
17 |
index 8b790820335..4d334a762ed 100644 |
18 |
--- a/dev-python/pandas/Manifest |
19 |
+++ b/dev-python/pandas/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST pandas-1.2.3.tar.gz 5466356 BLAKE2B f392321915128769814b3a8b7673cd7b00c9c292f4cb8d8b2e8537f7cc513f92cb6b8ff74dffe3b167987e8fa387738264dbebfdf4019f9cd7afd4f78234212a SHA512 3108424253aa143a85ef166091829bbd8c9b6446b516f37252742146d184f722e1fb8af5b4d04937362a298068019a91392e40c818126df6a7459bab7f3077cb |
22 |
DIST pandas-1.2.4.tar.gz 5469105 BLAKE2B 7f39e3ca67f5997c0668b0c2e9792869963adcd0347a3983188a992794ad58ccba82105b4dc3315cc17d79104f7fea7a273c218967eb51b1ea1514e87aeebb66 SHA512 79e7a38b8edad52b70eb81ba821141b928c782009d59c50076e7d1e7c015078d333c0c80bda7ba720f4ccb221a0ba93a02885fe6a573567ee37ffae14ee9b2c3 |
23 |
DIST pandas-1.2.5.tar.gz 5470907 BLAKE2B 2c5e0cb0849aa23ee8640528a3e29a579cc051543731e44c9be41fb989c85f1b2b18bc028e97c9b200f9894e4c3ac8af6a2100586e41f6d8a165a4c4679fd649 SHA512 c8bc2ca7ff8ca1a4877ccda67aaf49c103525d0f511636f93e1db3720d9a1717aacde0a5e3f107f8f620b59f0269d9e5c9515fbef46da4e87fca678d7acda990 |
24 |
+DIST pandas-1.3.0.tar.gz 4721119 BLAKE2B f09eedd848686597a755da929683e841be61cce4385fa1e4616a328e267dcd4fb44bc9ad5da56402a52da6fb3b12f84795da10cd20df7fd0b349e749dd814bc3 SHA512 67145114091901d8e2a376392d8890372675a1b5831de310715a6e6f7f4509dd8cf1a4b30cab3314f849b6c709270a246524b958b686f9e7fbe2489ce5b650a0 |
25 |
|
26 |
diff --git a/dev-python/pandas/pandas-1.3.0.ebuild b/dev-python/pandas/pandas-1.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..bd75ba8b21c |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pandas/pandas-1.3.0.ebuild |
31 |
@@ -0,0 +1,192 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..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/ https://github.com/pandas-dev/pandas/" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/pandas-dev/pandas/releases/download/v${PV}/${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.7.0[${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/statsmodels[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/xarray-0.12.3[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/xlrd-1.2.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/xlwt-1.3.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/scipy-1.1[${PYTHON_USEDEP}] |
82 |
+ X? ( |
83 |
+ || ( |
84 |
+ dev-python/PyQt5[${PYTHON_USEDEP}] |
85 |
+ x11-misc/xclip |
86 |
+ x11-misc/xsel |
87 |
+ ) |
88 |
+ ) |
89 |
+" |
90 |
+COMMON_DEPEND=" |
91 |
+ >=dev-python/numpy-1.17.3[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/python-dateutil-2.8.1-r3[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/pytz-2017.3[${PYTHON_USEDEP}] |
94 |
+" |
95 |
+DEPEND="${COMMON_DEPEND} |
96 |
+ >=dev-python/cython-0.29.21[${PYTHON_USEDEP}] |
97 |
+ doc? ( |
98 |
+ ${VIRTUALX_DEPEND} |
99 |
+ app-text/pandoc |
100 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
101 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
102 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
103 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
104 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
105 |
+ dev-python/nbsphinx[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/numpydoc-0.9.1[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}] |
109 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
110 |
+ dev-python/rpy[${PYTHON_USEDEP}] |
111 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
112 |
+ dev-python/xlrd[${PYTHON_USEDEP}] |
113 |
+ dev-python/xlwt[${PYTHON_USEDEP}] |
114 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
115 |
+ x11-misc/xclip |
116 |
+ ) |
117 |
+ test? ( |
118 |
+ ${VIRTUALX_DEPEND} |
119 |
+ ${RECOMMENDED_DEPEND} |
120 |
+ ${OPTIONAL_DEPEND} |
121 |
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
122 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
123 |
+ dev-python/openpyxl[${PYTHON_USEDEP}] |
124 |
+ dev-python/pymysql[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/pytest-6[${PYTHON_USEDEP}] |
126 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
127 |
+ dev-python/psycopg:2[${PYTHON_USEDEP}] |
128 |
+ dev-python/xlsxwriter[${PYTHON_USEDEP}] |
129 |
+ x11-misc/xclip |
130 |
+ x11-misc/xsel |
131 |
+ ) |
132 |
+" |
133 |
+# dev-python/statsmodels invokes a circular dep |
134 |
+# hence rm from doc? ( ), again |
135 |
+RDEPEND="${COMMON_DEPEND} |
136 |
+ !minimal? ( ${RECOMMENDED_DEPEND} ) |
137 |
+ full-support? ( ${OPTIONAL_DEPEND} ) |
138 |
+" |
139 |
+ |
140 |
+python_prepare_all() { |
141 |
+ # Prevent un-needed download during build |
142 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" \ |
143 |
+ -i doc/source/conf.py || die |
144 |
+ |
145 |
+ # requires package installed |
146 |
+ sed -e '/extra_compile_args =/s:"-Werror"::' \ |
147 |
+ -i setup.py || die |
148 |
+ |
149 |
+ distutils-r1_python_prepare_all |
150 |
+} |
151 |
+ |
152 |
+python_compile() { |
153 |
+ distutils-r1_python_compile -j1 |
154 |
+} |
155 |
+ |
156 |
+python_compile_all() { |
157 |
+ # To build docs the need be located in $BUILD_DIR, |
158 |
+ # else PYTHONPATH points to unusable modules. |
159 |
+ if use doc; then |
160 |
+ cd "${BUILD_DIR}"/lib || die |
161 |
+ cp -ar "${S}"/doc . && cd doc || die |
162 |
+ LANG=C PYTHONPATH=. virtx ${EPYTHON} make.py html |
163 |
+ fi |
164 |
+} |
165 |
+ |
166 |
+python_test() { |
167 |
+ local deselect=( |
168 |
+ # test for rounding errors, fails if we have better precision |
169 |
+ # e.g. on amd64 with FMA or on arm64 |
170 |
+ # https://github.com/pandas-dev/pandas/issues/38921 |
171 |
+ pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues |
172 |
+ |
173 |
+ # weird issue, doesn't seem very important |
174 |
+ 'pandas/tests/base/test_misc.py::test_memory_usage[series-with-empty-index]' |
175 |
+ |
176 |
+ # old psycopg2 API |
177 |
+ pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_psycopg2 |
178 |
+ |
179 |
+ # Internet |
180 |
+ pandas/tests/io/xml/test_xml.py::test_wrong_url |
181 |
+ |
182 |
+ # TODO: some data path problems? |
183 |
+ pandas/tests/io/test_fsspec.py::test_read_csv |
184 |
+ pandas/tests/io/test_fsspec.py::test_markdown_options |
185 |
+ ) |
186 |
+ |
187 |
+ local -x LC_ALL=C.UTF-8 |
188 |
+ pushd "${BUILD_DIR}"/lib > /dev/null || die |
189 |
+ "${EPYTHON}" -c "import pandas; pandas.show_versions()" || die |
190 |
+ PYTHONPATH=. virtx epytest pandas --skip-slow --skip-network \ |
191 |
+ ${deselect[@]/#/--deselect } -m "not single" \ |
192 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
193 |
+ find . '(' -name .pytest_cache -o -name .hypothesis ')' \ |
194 |
+ -exec rm -r {} + || die |
195 |
+ popd > /dev/null || die |
196 |
+} |
197 |
+ |
198 |
+python_install_all() { |
199 |
+ if use doc; then |
200 |
+ dodoc -r "${BUILD_DIR}"/lib/doc/build/html |
201 |
+ einfo "An initial build of docs is absent of references to statsmodels" |
202 |
+ einfo "due to circular dependency. To have them included, emerge" |
203 |
+ einfo "statsmodels next and re-emerge pandas with USE doc" |
204 |
+ fi |
205 |
+ |
206 |
+ distutils-r1_python_install_all |
207 |
+} |
208 |
+ |
209 |
+pkg_postinst() { |
210 |
+ optfeature "accelerating certain types of NaN evaluations, using specialized cython routines to achieve large speedups." dev-python/bottleneck |
211 |
+ optfeature "accelerating certain numerical operations, using multiple cores as well as smart chunking and caching to achieve large speedups" ">=dev-python/numexpr-2.1" |
212 |
+ optfeature "needed for pandas.io.html.read_html" dev-python/beautifulsoup:4 dev-python/html5lib dev-python/lxml |
213 |
+ optfeature "for msgpack compression using blosc" dev-python/blosc |
214 |
+ optfeature "Template engine for conditional HTML formatting" dev-python/jinja |
215 |
+ optfeature "Plotting support" dev-python/matplotlib |
216 |
+ optfeature "Needed for Excel I/O" ">=dev-python/openpyxl-3.0.0" dev-python/xlsxwriter dev-python/xlrd dev-python/xlwt |
217 |
+ optfeature "necessary for HDF5-based storage" ">=dev-python/pytables-3.2.1" |
218 |
+ optfeature "R I/O support" dev-python/rpy |
219 |
+ optfeature "Needed for parts of pandas.stats" dev-python/statsmodels |
220 |
+ optfeature "SQL database support" ">=dev-python/sqlalchemy-1.3.0" |
221 |
+ optfeature "miscellaneous statistical functions" dev-python/scipy |
222 |
+ optfeature "necessary to use pandas.io.clipboard.read_clipboard support" dev-python/PyQt5 dev-python/pygtk x11-misc/xclip x11-misc/xsel |
223 |
+} |