|
| 1 | +# Copyright 2023 Gentoo Authors |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | + |
| 4 | +EAPI=8 |
| 5 | + |
| 6 | +DISTUTILS_USE_PEP517=setuptools |
| 7 | +PYTHON_COMPAT=( python3_{10..11} ) |
| 8 | + |
| 9 | +inherit distutils-r1 |
| 10 | + |
| 11 | +DESCRIPTION="Distributed scheduler for Dask" |
| 12 | +HOMEPAGE="https://distributed.dask.org" |
| 13 | +SRC_URI="https://github.com/dask/distributed/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
| 14 | + |
| 15 | +LICENSE="BSD" |
| 16 | +SLOT="0" |
| 17 | +KEYWORDS="~amd64" # pyarrow, memray no x86 |
| 18 | +RESTRICT="test" # Test phase runs with fails |
| 19 | + |
| 20 | +RDEPEND=">dev-python/click-8.0[${PYTHON_USEDEP}] |
| 21 | + >=dev-python/cloudpickle-1.5.0[${PYTHON_USEDEP}] |
| 22 | + >=dev-python/dask-2023.9.2[${PYTHON_USEDEP}] |
| 23 | + >=dev-python/jinja-2.10.3[${PYTHON_USEDEP}] |
| 24 | + >=dev-python/locket-1.0.0[${PYTHON_USEDEP}] |
| 25 | + >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
| 26 | + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] |
| 27 | + >=dev-python/psutil-5.7.2[${PYTHON_USEDEP}] |
| 28 | + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] |
| 29 | + >=dev-python/sortedcontainers-2.0.5[${PYTHON_USEDEP}] |
| 30 | + >=dev-python/tblib-1.6.0[${PYTHON_USEDEP}] |
| 31 | + >=dev-python/toolz-0.10.0[${PYTHON_USEDEP}] |
| 32 | + >=dev-python/tornado-6.0.4[${PYTHON_USEDEP}] |
| 33 | + >=dev-python/urllib3-1.24.3[${PYTHON_USEDEP}] |
| 34 | + >=dev-python/zict-3.0.0[${PYTHON_USEDEP}] |
| 35 | +" |
| 36 | +BDEPEND="dev-python/versioneer[${PYTHON_USEDEP}] |
| 37 | + test? ( |
| 38 | + dev-python/pytest-timeout[${PYTHON_USEDEP}] |
| 39 | + dev-python/aiohttp[${PYTHON_USEDEP}] |
| 40 | + dev-python/asyncssh[${PYTHON_USEDEP}] |
| 41 | + dev-python/bokeh[${PYTHON_USEDEP}] |
| 42 | + dev-python/flaky[${PYTHON_USEDEP}] |
| 43 | + dev-python/h5py[${PYTHON_USEDEP}] |
| 44 | + dev-python/ipywidgets[${PYTHON_USEDEP}] |
| 45 | + dev-python/jupyter-server[${PYTHON_USEDEP}] |
| 46 | + dev-python/lz4[${PYTHON_USEDEP}] |
| 47 | + dev-python/matplotlib[${PYTHON_USEDEP}] |
| 48 | + dev-python/memray[${PYTHON_USEDEP}] |
| 49 | + dev-python/netcdf4[${PYTHON_USEDEP}] |
| 50 | + dev-python/numba[${PYTHON_USEDEP}] |
| 51 | + dev-python/pandas[${PYTHON_USEDEP}] |
| 52 | + dev-python/paramiko[${PYTHON_USEDEP}] |
| 53 | + dev-python/pyarrow[${PYTHON_USEDEP}] |
| 54 | + dev-python/python-snappy[${PYTHON_USEDEP}] |
| 55 | + dev-python/scipy[${PYTHON_USEDEP}] |
| 56 | + dev-python/uvloop[${PYTHON_USEDEP}] |
| 57 | + dev-python/zstandard[${PYTHON_USEDEP}] |
| 58 | + ) |
| 59 | +" |
| 60 | + |
| 61 | +distutils_enable_tests pytest |
| 62 | +distutils_enable_sphinx docs/source dev-python/dask-sphinx-theme dev-python/numpydoc \ |
| 63 | + dev-python/sphinx-click \ |
| 64 | + dev-python/sphinx-design \ |
| 65 | + dev-python/memray |
| 66 | + |
| 67 | +python_prepare_all() { |
| 68 | + use doc && { sed -i -e "/github/s/GH\#/GH\%s\#/" docs/source/conf.py || die ; \ |
| 69 | + sed -i "/language\ = /s/None/'en'/" docs/source/conf.py || die ; \ |
| 70 | + } |
| 71 | + sed -i -e '/--cov/d' pyproject.toml || die |
| 72 | + |
| 73 | + distutils-r1_python_prepare_all |
| 74 | +} |
| 75 | + |
| 76 | +python_test() { |
| 77 | + epytest --runslow |
| 78 | +} |
0 commit comments