summaryrefslogtreecommitdiff
path: root/dev-python/dask
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/dask
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/dask')
-rw-r--r--dev-python/dask/Manifest1
-rw-r--r--dev-python/dask/dask-1.2.0.ebuild49
-rw-r--r--dev-python/dask/files/dask-0.18.2-skip-broken-test.patch36
-rw-r--r--dev-python/dask/metadata.xml24
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-python/dask/Manifest b/dev-python/dask/Manifest
new file mode 100644
index 000000000000..65b2f7241fd2
--- /dev/null
+++ b/dev-python/dask/Manifest
@@ -0,0 +1 @@
+DIST dask-1.2.0.tar.gz 2381831 BLAKE2B 88d48b9bcd4444dfe066c8049eae2a8b65e6ae1a7e4f4ff89697c254efc365091a61b298333b0f8d660cc9f760d3960a355beafde2555dfd912606dbe4a49db1 SHA512 c00886768b331f48ac9627f81c39368afbb4f1083ee9f7e3ebbe64352cc48c3c580fccef8d5466592f5bf772f873bef2ac084a972d30e7c1b4d1028e1d456059
diff --git a/dev-python/dask/dask-1.2.0.ebuild b/dev-python/dask/dask-1.2.0.ebuild
new file mode 100644
index 000000000000..561a15e629df
--- /dev/null
+++ b/dev-python/dask/dask-1.2.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7} )
+
+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 x86 ~amd64-linux ~x86-linux"
+IUSE="distributed test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/cloudpickle-0.2.1[${PYTHON_USEDEP}]
+ >=dev-python/numpy-1.11[${PYTHON_USEDEP}]
+ >=dev-python/pandas-0.23.4[${PYTHON_USEDEP}]
+ >=dev-python/partd-0.3.8[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ >=dev-python/toolz-0.7.3[${PYTHON_USEDEP}]
+ distributed? (
+ >=dev-python/distributed-1.16[${PYTHON_USEDEP}]
+ >=dev-python/s3fs-0.0.8[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/toolz[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/numexpr[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.18.2-skip-broken-test.patch"
+)
+
+python_test() {
+ pytest -v dask || die
+}
diff --git a/dev-python/dask/files/dask-0.18.2-skip-broken-test.patch b/dev-python/dask/files/dask-0.18.2-skip-broken-test.patch
new file mode 100644
index 000000000000..f761194c54fb
--- /dev/null
+++ b/dev-python/dask/files/dask-0.18.2-skip-broken-test.patch
@@ -0,0 +1,36 @@
+diff --git a/dask/bytes/tests/test_local.py b/dask/bytes/tests/test_local.py
+index dbe58ae0..072a1ee7 100644
+--- a/dask/bytes/tests/test_local.py
++++ b/dask/bytes/tests/test_local.py
+@@ -141,6 +141,7 @@ def test_with_urls():
+ assert sum(map(len, values)) == len(files)
+
+
++@pytest.mark.skip("Fails on Gentoo")
+ @pytest.mark.skipif(sys.platform == 'win32',
+ reason="pathlib and moto clash on windows")
+ def test_with_paths():
+diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py
+index f5a080d4..de9c0a90 100644
+--- a/dask/dataframe/tests/test_dataframe.py
++++ b/dask/dataframe/tests/test_dataframe.py
+@@ -2388,6 +2388,7 @@ def _assert_info(df, ddf, memory_usage=True):
+ assert stdout_pd == stdout_da
+
+
++@pytest.mark.skip("Fails on Gentoo")
+ def test_info():
+ from io import StringIO
+ from dask.compatibility import unicode
+diff --git a/dask/tests/test_base.py b/dask/tests/test_base.py
+index 8e5b0118..1cf56e31 100644
+--- a/dask/tests/test_base.py
++++ b/dask/tests/test_base.py
+@@ -595,6 +595,7 @@ def test_visualize():
+ assert os.path.exists(os.path.join(d, 'mydask.png'))
+
+
++@pytest.mark.skip("Fails on Gentoo")
+ @pytest.mark.skipif('not da')
+ @pytest.mark.skipif(sys.flags.optimize,
+ reason="graphviz exception with Python -OO flag")
diff --git a/dev-python/dask/metadata.xml b/dev-python/dask/metadata.xml
new file mode 100644
index 000000000000..14bd28b4bac3
--- /dev/null
+++ b/dev-python/dask/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+ Dask is a simple task scheduling system that uses directed acyclic
+ graphs (DAGs) of tasks to break up large computations into many
+ small ones.
+</longdescription>
+ <upstream>
+ <remote-id type="pypi">dask</remote-id>
+ </upstream>
+ <use>
+ <flag name="distributed">Add support for distributed computing with <pkg>dev-python/distributed</pkg></flag>
+ </use>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>