1 |
commit: c8fb40e9d34439999146884a5fa29879a27b1678 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 13 06:29:10 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 13 07:45:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8fb40e9 |
7 |
|
8 |
dev-python/pandas: Bump to 1.3.3 |
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.3.ebuild | 192 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 193 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest |
17 |
index 14313c6e9da..9ee16d55092 100644 |
18 |
--- a/dev-python/pandas/Manifest |
19 |
+++ b/dev-python/pandas/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST pandas-1.2.5.tar.gz 5470907 BLAKE2B 2c5e0cb0849aa23ee8640528a3e29a579cc0515 |
21 |
DIST pandas-1.3.0.tar.gz 4721119 BLAKE2B f09eedd848686597a755da929683e841be61cce4385fa1e4616a328e267dcd4fb44bc9ad5da56402a52da6fb3b12f84795da10cd20df7fd0b349e749dd814bc3 SHA512 67145114091901d8e2a376392d8890372675a1b5831de310715a6e6f7f4509dd8cf1a4b30cab3314f849b6c709270a246524b958b686f9e7fbe2489ce5b650a0 |
22 |
DIST pandas-1.3.1.tar.gz 4724471 BLAKE2B 3c645927d25ba5cfd8f2822f07752149cc4a33c0b3b32d1f45986397b877b338a5287170281231058c37e2930152a6bd5f3f50fddf32805f05de49150abd6dd6 SHA512 ec57d123038cd4018dbfbe2da2d10211d507cdbaa849f4752c5770d017c55cf1d2c4b29f7c86e480695205e95622b28cd75319338644302732eb4ac9efef6993 |
23 |
DIST pandas-1.3.2.tar.gz 4727155 BLAKE2B 0d667a70a4f45d47677af9d9f18ef5bcaad7d52fe780fa0646fbdcedaf426ef6a3ea768886b85a4051419d5965fe316c6162d770297e5dc679234ad99d22908b SHA512 5ba8b7c7f048e13f2493235b941ada34f9416777405fae4040688f88d004564aa6c8eddfb0dc5a78e97e8370a0293a75ba63704fea4e25bc5b003a619016a9c1 |
24 |
+DIST pandas-1.3.3.tar.gz 4730758 BLAKE2B 0ef945b2181329265b93fbdb7f9c35497ef847508cc2166b6e2a12ad1a2faa3940d5c8f375754ec34db4e236934a1f903f1e58e6882c6de0018a16b38f50f136 SHA512 a3a871a9954c7249311b9904e588d85fba4d6aa07463308b08b789b93a1eb63e36dac1b0d4254a5379085c05c5633ef31b615d0c60963c796dd7a33d815a5534 |
25 |
|
26 |
diff --git a/dev-python/pandas/pandas-1.3.3.ebuild b/dev-python/pandas/pandas-1.3.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..4c3b594f00c |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pandas/pandas-1.3.3.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=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+VIRTUALX_REQUIRED="manual" |
41 |
+ |
42 |
+inherit distutils-r1 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 ~ppc ~ppc64 ~riscv ~s390 ~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/beautifulsoup4[${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/beautifulsoup4[${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/beautifulsoup4[${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/beautifulsoup4 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 |
+} |