From: "Virgil Dupras" <vdupras@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/xarray/files/, dev-python/xarray/
Date: Thu, 23 Aug 2018 19:09:05 +0000 (UTC) [thread overview]
Message-ID: <1535051197.0cc5959f5c00de999089760d82089212192fcfe3.vdupras@gentoo> (raw)
commit: 0cc5959f5c00de999089760d82089212192fcfe3
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 23 19:01:07 2018 +0000
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 19:06:37 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc5959f
dev-python/xarray: fix tests
Bug: https://bugs.gentoo.org/656876
Package-Manager: Portage-2.3.47, Repoman-2.3.10
dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch | 12 ++++++++++++
dev-python/xarray/xarray-0.10.8.ebuild | 12 +++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch b/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch
new file mode 100644
index 00000000000..62798cbcb5b
--- /dev/null
+++ b/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch
@@ -0,0 +1,12 @@
+diff --git a/xarray/tests/test_variable.py b/xarray/tests/test_variable.py
+index 290c7a6e..d49a048e 100644
+--- a/xarray/tests/test_variable.py
++++ b/xarray/tests/test_variable.py
+@@ -373,6 +373,7 @@ class VariableSubclassTestCases(object):
+ assert v[0].values == np.asarray(data)[0]
+ assert np.asarray(v[0]) == np.asarray(data)[0]
+
++ @pytest.mark.skip("Fails on Gentoo")
+ def test_equals_all_dtypes(self):
+ for v, _ in self.example_1d_objects():
+ v2 = v.copy()
diff --git a/dev-python/xarray/xarray-0.10.8.ebuild b/dev-python/xarray/xarray-0.10.8.ebuild
index f2e42e221e9..280a946fa18 100644
--- a/dev-python/xarray/xarray-0.10.8.ebuild
+++ b/dev-python/xarray/xarray-0.10.8.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+PYTHON_COMPAT=( python{2_7,3_{5,6}} )
inherit distutils-r1
@@ -17,15 +17,21 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="
- dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/numpy-1.14[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
+ >=dev-python/dask-0.18.2[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2*')
)"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.10.8-skip-broken-test.patch"
+)
+
python_test() {
- py.test -v || die
+ pytest -v || die
}
next reply other threads:[~2018-08-23 19:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-23 19:09 Virgil Dupras [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-12-14 8:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/xarray/files/, dev-python/xarray/ Michał Górny
2021-07-03 16:06 Michał Górny
2021-08-26 15:31 Michał Górny
2022-09-22 7:45 Michał Górny
2024-06-20 11:48 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1535051197.0cc5959f5c00de999089760d82089212192fcfe3.vdupras@gentoo \
--to=vdupras@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox