1 |
commit: 068011336887538ab57b92e7ff30acf50ab43b37 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 07:44:32 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 07:45:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06801133 |
7 |
|
8 |
dev-python/xarray: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/xarray/Manifest | 1 - |
13 |
.../files/xarray-0.19.0-riscv_tests_datetime.patch | 73 ---------------------- |
14 |
dev-python/xarray/xarray-2022.3.0.ebuild | 42 ------------- |
15 |
3 files changed, 116 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest |
18 |
index 83ffaa877fbd..1e93d52b801d 100644 |
19 |
--- a/dev-python/xarray/Manifest |
20 |
+++ b/dev-python/xarray/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST xarray-2022.3.0.tar.gz 2943007 BLAKE2B 4c323573835c00275b9c293157c78e42d14f2736c07dc06c61643052992b9c75d624cdf9a93487094fbffd9577662388807b661d388032add3b2e2ca3a63b812 SHA512 c088b985a852c57dcef14d8a5107987c0c33f17bde1d9d639d30ac826d906639ce0ee4fe8345c65a5479b944057af045fe50c2d2ea932356aceb0718f55cd24a |
23 |
DIST xarray-2022.6.0.tar.gz 3013166 BLAKE2B 4f2c17595ec904508e5f9c1d6ffead45be527b7f2ab73383126d57c7894712e924b605a86f890b0fec4ff45d1a263ce27fa324febf83f703ad36079e68f69663 SHA512 415bd84246d6d2b8aebf316ac9ef82ca7afeacce718349b75479c0aa693e2866dfe236e6dcaf41cae68afd7a99408f5027c938e6b7f447f5323e076b804f5165 |
24 |
|
25 |
diff --git a/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch b/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch |
26 |
deleted file mode 100644 |
27 |
index 1f356e95b561..000000000000 |
28 |
--- a/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch |
29 |
+++ /dev/null |
30 |
@@ -1,73 +0,0 @@ |
31 |
-These tests are x86{_64}-centric because they rely on a specific result of |
32 |
-casting a float64 NaN to int64, which is undefined in the C standard. |
33 |
-See https://github.com/numpy/numpy/issues/8325 for details. |
34 |
- |
35 |
---- a/xarray/tests/__init__.py |
36 |
-+++ b/xarray/tests/__init__.py |
37 |
-@@ -40,6 +40,12 @@ |
38 |
- ) |
39 |
- |
40 |
- |
41 |
-+riscv_xfail = pytest.mark.xfail( |
42 |
-+ "riscv" in platform.machine(), |
43 |
-+ reason="expected failure on RISC-V", |
44 |
-+) |
45 |
-+ |
46 |
-+ |
47 |
- def _importorskip(modname, minversion=None): |
48 |
- try: |
49 |
- mod = importlib.import_module(modname) |
50 |
---- a/xarray/tests/test_backends.py |
51 |
-+++ b/xarray/tests/test_backends.py |
52 |
-@@ -71,6 +71,7 @@ |
53 |
- requires_scipy, |
54 |
- requires_scipy_or_netCDF4, |
55 |
- requires_zarr, |
56 |
-+ riscv_xfail, |
57 |
- ) |
58 |
- from .test_coding_times import ( |
59 |
- _ALL_CALENDARS, |
60 |
-@@ -492,6 +493,7 @@ |
61 |
- assert actual["x"].encoding["_Encoding"] == "ascii" |
62 |
- |
63 |
- @arm_xfail |
64 |
-+ @riscv_xfail |
65 |
- def test_roundtrip_numpy_datetime_data(self): |
66 |
- times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"]) |
67 |
- expected = Dataset({"t": ("t", times), "t0": times[0]}) |
68 |
---- a/xarray/tests/test_coding_times.py |
69 |
-+++ b/xarray/tests/test_coding_times.py |
70 |
-@@ -36,6 +36,7 @@ |
71 |
- requires_cftime, |
72 |
- requires_cftime_1_4_1, |
73 |
- requires_dask, |
74 |
-+ riscv_xfail, |
75 |
- ) |
76 |
- |
77 |
- _NON_STANDARD_CALENDARS_SET = { |
78 |
-@@ -466,6 +467,7 @@ |
79 |
- |
80 |
- |
81 |
- @arm_xfail |
82 |
-+@riscv_xfail |
83 |
- @requires_cftime |
84 |
- @pytest.mark.parametrize( |
85 |
- ["num_dates", "units", "expected_list"], |
86 |
---- a/xarray/tests/test_duck_array_ops.py |
87 |
-+++ b/xarray/tests/test_duck_array_ops.py |
88 |
-@@ -38,6 +38,7 @@ |
89 |
- requires_bottleneck, |
90 |
- requires_cftime, |
91 |
- requires_dask, |
92 |
-+ riscv_xfail, |
93 |
- ) |
94 |
- |
95 |
- |
96 |
-@@ -280,6 +281,7 @@ |
97 |
- |
98 |
- |
99 |
- @arm_xfail |
100 |
-+@riscv_xfail |
101 |
- @pytest.mark.filterwarnings("ignore::RuntimeWarning") |
102 |
- @pytest.mark.parametrize("dask", [False, True] if has_dask else [False]) |
103 |
- def test_datetime_mean(dask): |
104 |
|
105 |
diff --git a/dev-python/xarray/xarray-2022.3.0.ebuild b/dev-python/xarray/xarray-2022.3.0.ebuild |
106 |
deleted file mode 100644 |
107 |
index 6394aa2d7491..000000000000 |
108 |
--- a/dev-python/xarray/xarray-2022.3.0.ebuild |
109 |
+++ /dev/null |
110 |
@@ -1,42 +0,0 @@ |
111 |
-# Copyright 1999-2022 Gentoo Authors |
112 |
-# Distributed under the terms of the GNU General Public License v2 |
113 |
- |
114 |
-EAPI=8 |
115 |
- |
116 |
-DISTUTILS_USE_PEP517=setuptools |
117 |
-PYTHON_COMPAT=( python3_{8..10} ) |
118 |
- |
119 |
-inherit distutils-r1 |
120 |
- |
121 |
-DESCRIPTION="N-D labeled arrays and datasets in Python" |
122 |
-HOMEPAGE="https://xarray.pydata.org/" |
123 |
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
124 |
- |
125 |
-LICENSE="Apache-2.0" |
126 |
-SLOT="0" |
127 |
-KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" |
128 |
- |
129 |
-RDEPEND=" |
130 |
- >=dev-python/numpy-1.18[${PYTHON_USEDEP}] |
131 |
- >=dev-python/pandas-1.1[${PYTHON_USEDEP}] |
132 |
- dev-python/packaging[${PYTHON_USEDEP}]" |
133 |
-# note: most of test dependencies are optional |
134 |
-BDEPEND=" |
135 |
- test? ( |
136 |
- dev-python/bottleneck[${PYTHON_USEDEP}] |
137 |
- dev-python/hypothesis[${PYTHON_USEDEP}] |
138 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
139 |
- dev-python/toolz[${PYTHON_USEDEP}] |
140 |
- !hppa? ( >=dev-python/scipy-1.4[${PYTHON_USEDEP}] ) |
141 |
- )" |
142 |
- |
143 |
-PATCHES=( |
144 |
- "${FILESDIR}"/${PN}-0.19.0-riscv_tests_datetime.patch |
145 |
-) |
146 |
- |
147 |
-distutils_enable_tests pytest |
148 |
- |
149 |
-EPYTEST_DESELECT=( |
150 |
- # warning-targeted tests are fragile and not important to end users |
151 |
- xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get |
152 |
-) |