1 |
commit: 633561a4e41cf831ef1847f6286ea8cfc17cee04 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 6 08:21:39 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 10:58:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=633561a4 |
7 |
|
8 |
dev-python/xarray: Bump to 0.20.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/xarray/Manifest | 1 + |
13 |
dev-python/xarray/xarray-0.20.1.ebuild | 46 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest |
17 |
index 20ed015ab11..de272d89dea 100644 |
18 |
--- a/dev-python/xarray/Manifest |
19 |
+++ b/dev-python/xarray/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST xarray-0.19.0.tar.gz 2882403 BLAKE2B 454595076074c9805f0ff6f8b761a61e4c172445f2fd0bbcbd39a9615f3465704871fbc5f7c1a9c5fbb1c80b6c47cd677e590e1513ca88cd67908ef3502d234e SHA512 8f4ce7f770ea10e757112b722c7e7a56f19be2f885c63620d547cc54d8b625a5a23c5e603ba804c4d94f2a94863aad8351a9f6ef22ccbc1a78d77a549a21356e |
22 |
+DIST xarray-0.20.1.tar.gz 2896122 BLAKE2B 75dbebab105fb2b0c78d09e6dba30bf90a87d1e0b97b96cacc7f880a34734811dae7ebd6b4858718d70f7e03d99c8d58de9b6091d354831ccd17c3946b44e9b6 SHA512 d2e6162286c7e7debed27f40082086dbb55467a953a2afa81b08313aa111c28ffa942785687ac57cb60241a1f45a5d9a937a10bcc7c3025860f7251bbac79c22 |
23 |
|
24 |
diff --git a/dev-python/xarray/xarray-0.20.1.ebuild b/dev-python/xarray/xarray-0.20.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..defa14a3fa9 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/xarray/xarray-0.20.1.ebuild |
29 |
@@ -0,0 +1,46 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+# pkg_resources use in code |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="N-D labeled arrays and datasets in Python" |
42 |
+HOMEPAGE="https://xarray.pydata.org/" |
43 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-python/numpy-1.18[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/pandas-1.1[${PYTHON_USEDEP}]" |
52 |
+# note: most of test dependencies are optional |
53 |
+BDEPEND=" |
54 |
+ test? ( |
55 |
+ dev-python/bottleneck[${PYTHON_USEDEP}] |
56 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
57 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
58 |
+ dev-python/toolz[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/scipy-1.4[${PYTHON_USEDEP}] |
60 |
+ )" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-0.19.0-riscv_tests_datetime.patch |
64 |
+) |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_test() { |
69 |
+ local deselect=( |
70 |
+ # warning-targeted tests are fragile and not important to end users |
71 |
+ xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get |
72 |
+ ) |
73 |
+ |
74 |
+ epytest ${deselect[@]/#/--deselect } |
75 |
+} |