[arch-commits] Commit in python-distributed/repos (2 files)
Bruno Pagani
archange at archlinux.org
Mon Mar 15 05:05:32 UTC 2021
Date: Monday, March 15, 2021 @ 05:05:32
Author: archange
Revision: 891391
archrelease: copy trunk to community-testing-x86_64
Added:
python-distributed/repos/community-testing-x86_64/
python-distributed/repos/community-testing-x86_64/PKGBUILD
(from rev 891390, python-distributed/trunk/PKGBUILD)
----------+
PKGBUILD | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
Copied: python-distributed/repos/community-testing-x86_64/PKGBUILD (from rev 891390, python-distributed/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-03-15 05:05:32 UTC (rev 891391)
@@ -0,0 +1,74 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=distributed
+pkgname=python-${_pkg}
+pkgver=2021.3.0
+pkgrel=1
+pkgdesc="Distributed task scheduler for Dask"
+arch=(x86_64)
+url="https://distributed.dask.org/"
+license=(BSD)
+depends=(
+ python
+ python-click
+ python-cloudpickle
+ python-dask
+ python-msgpack
+ python-psutil
+ python-setuptools
+ python-sortedcontainers
+ python-tblib
+ python-toolz
+ python-tornado
+ python-yaml
+ python-zict
+)
+makedepends=(cython)
+checkdepends=(ipython
+ python-pytest
+ python-pytest-asyncio
+ python-pytest-repeat
+ python-pytest-timeout
+ python-blosc
+ python-cryptography
+ python-distributed
+ python-fsspec
+ python-h5py
+ python-ipykernel
+ python-ipywidgets
+ python-joblib
+ python-jsonschema
+ python-jupyter_client
+ python-lz4
+ python-netcdf4
+ python-numpy
+ python-pandas
+ python-paramiko
+ python-prometheus_client
+ python-pytorch
+ python-requests
+ python-scipy
+ python-snappy
+ python-zstandard
+)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(https://github.com/dask/distributed/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('427fe7e047bbad7413c65d57e56fa4d6b1cf921fd206a3d2caab94bf9153c3db')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build --with-cython
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ # The deselected test aborts the test suite
+ # Even without this, ~30 are failing with `RuntimeError: There is no current event loop in thread`
+ pytest distributed -v --deselect distributed/deploy/tests/test_old_ssh.py::test_cluster || echo "Tests failed"
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build --with-cython
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list