public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/dask/, dev-python/dask/files/
@ 2021-10-23  8:44 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2021-10-23  8:44 UTC (permalink / raw
  To: gentoo-commits

commit:     c8b5bfe70332a98ed8b3b9a55313c99c7a9e3c74
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 23 06:07:50 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 23 08:44:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8b5bfe7

dev-python/dask: Bump to 2021.10.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/dask/Manifest                           |  1 +
 dev-python/dask/dask-2021.10.0.ebuild              | 46 ++++++++++++++++++++++
 dev-python/dask/files/dask-2021.10.0-warning.patch | 38 ++++++++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/dev-python/dask/Manifest b/dev-python/dask/Manifest
index 4f34249beb0..29009d8b616 100644
--- a/dev-python/dask/Manifest
+++ b/dev-python/dask/Manifest
@@ -1 +1,2 @@
+DIST dask-2021.10.0.tar.gz 3963245 BLAKE2B cfccf683a6fc3b55f2be3e62b04e733586401ab642ed2ed0a6cc6956e4179d5692fb1aa94757fceacf1b40efd7ea46b6d5f7bb5df407d0f51d2f711c1672307e SHA512 801378c1e09eeb6825603d4de8efe711c04c1d83dbd37d44a66695c1629d74e6914670015fb231b270fa61a668120358aa5cd32d4ee99096616624e8fe0905fa
 DIST dask-2021.9.1.tar.gz 3794819 BLAKE2B c3ed5050581f41c4ea82ad9d1d233205f105434e5e6dcc654ba2e999b8cf105033d58ecf045d2063dabcb701cb2af6f092ecfd8435d24e5949ed2d39b54ae19e SHA512 20beca3f68c2e21d54c941049a1f352e19fcce7b5f7ecf84abf60cfb9979551a3e83938ca5439b662d35c0b64b26d726f6fea85641e737d0060c56a2e879755e

diff --git a/dev-python/dask/dask-2021.10.0.ebuild b/dev-python/dask/dask-2021.10.0.ebuild
new file mode 100644
index 00000000000..7d45502dacc
--- /dev/null
+++ b/dev-python/dask/dask-2021.10.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit distutils-r1
+
+DESCRIPTION="Task scheduling and blocked algorithms for parallel processing"
+HOMEPAGE="https://dask.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+	>=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}]
+	>=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}]
+	>=dev-python/numpy-1.15.1[${PYTHON_USEDEP}]
+	>=dev-python/pandas-0.25.0[${PYTHON_USEDEP}]
+	>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
+	>=dev-python/partd-0.3.10[${PYTHON_USEDEP}]
+	dev-python/psutil[${PYTHON_USEDEP}]
+	dev-python/pyyaml[${PYTHON_USEDEP}]
+	>=dev-python/toolz-0.8.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	dev-python/toolz[${PYTHON_USEDEP}]
+	test? (
+		dev-python/moto[${PYTHON_USEDEP}]
+		dev-python/numexpr[${PYTHON_USEDEP}]
+		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+		dev-python/scipy[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	"${FILESDIR}"/dask-2021.10.0-warning.patch
+)
+
+python_test() {
+	epytest -p no:flaky -m "not network"
+}

diff --git a/dev-python/dask/files/dask-2021.10.0-warning.patch b/dev-python/dask/files/dask-2021.10.0-warning.patch
new file mode 100644
index 00000000000..87c2ab318ae
--- /dev/null
+++ b/dev-python/dask/files/dask-2021.10.0-warning.patch
@@ -0,0 +1,38 @@
+From f59293c180f846a220762701006d25655095991f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 23 Oct 2021 09:09:29 +0200
+Subject: [PATCH] Fix test_describe_empty to work without global -Werror
+
+Fix test_describe_empty to work when the test suite is run without
+global -Werror.  This is e.g. desirable for packagers who don't want
+the test suite for a fixed version to suddenly start failing due to
+DeprecationWarnings in dependencies that otherwise don't break
+the package.
+
+Since the test expects either a ValueError or a RuntimeWarning, it seems
+that the easiest way to assert for that is to inject the "error" filter
+for the scope of the call.
+---
+ dask/dataframe/tests/test_dataframe.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py
+index 32edb488..e0d88ba8 100644
+--- a/dask/dataframe/tests/test_dataframe.py
++++ b/dask/dataframe/tests/test_dataframe.py
+@@ -570,7 +570,11 @@ def test_describe_empty():
+     )
+ 
+     with pytest.raises((ValueError, RuntimeWarning)):
+-        ddf_len0.describe(percentiles_method="dask").compute()
++        with warnings.catch_warnings():
++            # ensure that the warning is turned into an error since this is
++            # the easiest way to assert for exception-or-warning
++            warnings.simplefilter("error")
++            ddf_len0.describe(percentiles_method="dask").compute()
+ 
+     with pytest.raises(ValueError):
+         ddf_nocols.describe(percentiles_method="dask").compute()
+-- 
+2.33.1
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-23  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-23  8:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/dask/, dev-python/dask/files/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox