2018-04-24 13:31:18 +00:00
|
|
|
#
|
2021-07-21 09:16:05 +00:00
|
|
|
# spec file
|
2018-04-24 13:31:18 +00:00
|
|
|
#
|
2022-01-21 23:34:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-04-24 13:31:18 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-18 05:56:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-24 13:31:18 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-21 23:34:26 +00:00
|
|
|
%define psuffix %{nil}
|
2021-01-13 16:05:13 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2022-01-21 23:34:26 +00:00
|
|
|
%if "%{flavor}" == "test-py38"
|
|
|
|
%define psuffix -test-py38
|
|
|
|
%define skip_python39 1
|
|
|
|
%define skip_python310 1
|
2021-01-13 16:05:13 +00:00
|
|
|
%bcond_without test
|
2022-01-21 23:34:26 +00:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "test-py39"
|
|
|
|
%define psuffix -test-py39
|
|
|
|
%define skip_python38 1
|
|
|
|
%define skip_python310 1
|
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "test-py310"
|
2022-01-25 22:06:23 +00:00
|
|
|
# add to _multibuild when enabling python310 (see below)
|
2022-03-08 10:24:12 +00:00
|
|
|
%define psuffix -test-py310
|
2022-01-21 23:34:26 +00:00
|
|
|
%define skip_python38 1
|
|
|
|
%define skip_python39 1
|
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == ""
|
2022-01-25 22:06:23 +00:00
|
|
|
# https://github.com/dask/distributed/issues/5350 -- NOT fixed by https://github.com/dask/distributed/pull/5353
|
2022-03-08 10:24:12 +00:00
|
|
|
# %%define skip_python310 1
|
2021-01-13 16:05:13 +00:00
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2022-01-21 23:34:26 +00:00
|
|
|
|
2021-07-21 09:16:05 +00:00
|
|
|
%ifarch %{ix86} %{arm}
|
|
|
|
# cython optimizations not supported on 32-bit: https://github.com/dask/dask/issues/7489
|
|
|
|
%bcond_with cythonize
|
|
|
|
%else
|
|
|
|
%bcond_without cythonize
|
|
|
|
%endif
|
|
|
|
%if %{with cythonize}
|
|
|
|
%define cythonize --with-cython
|
|
|
|
%endif
|
2022-01-21 23:34:26 +00:00
|
|
|
|
2021-04-01 10:30:28 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2022-01-21 23:34:26 +00:00
|
|
|
%define skip_python2 1
|
2021-01-13 16:05:13 +00:00
|
|
|
Name: python-distributed%{psuffix}
|
2021-05-19 17:27:21 +00:00
|
|
|
# Note: please always update together with python-dask
|
2022-03-08 10:24:12 +00:00
|
|
|
Version: 2022.02.1
|
2018-04-24 13:31:18 +00:00
|
|
|
Release: 0
|
2018-05-04 09:29:08 +00:00
|
|
|
Summary: Library for distributed computing with Python
|
2018-04-24 13:31:18 +00:00
|
|
|
License: BSD-3-Clause
|
2018-05-08 11:38:50 +00:00
|
|
|
URL: https://distributed.readthedocs.io/en/latest/
|
2022-03-08 10:24:12 +00:00
|
|
|
Source: https://github.com/dask/distributed/archive/refs/tags//%{version}.tar.gz#/distributed-%{version}-gh.tar.gz
|
2018-04-24 13:31:18 +00:00
|
|
|
Source99: python-distributed-rpmlintrc
|
2021-04-01 10:30:28 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2018-04-24 13:31:18 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-07-02 21:33:47 +00:00
|
|
|
Requires: python-PyYAML
|
2018-04-24 13:31:18 +00:00
|
|
|
Requires: python-certifi
|
|
|
|
Requires: python-click >= 6.6
|
2020-12-04 12:37:01 +00:00
|
|
|
Requires: python-cloudpickle >= 1.5.0
|
2021-05-19 17:27:21 +00:00
|
|
|
Requires: python-dask = %{version}
|
2018-05-08 11:38:50 +00:00
|
|
|
Requires: python-msgpack
|
2022-01-21 23:34:26 +00:00
|
|
|
Requires: python-packaging >= 20.0
|
2019-11-17 07:45:49 +00:00
|
|
|
Requires: python-psutil >= 5.0
|
2018-04-24 13:31:18 +00:00
|
|
|
Requires: python-sortedcontainers
|
|
|
|
Requires: python-tblib
|
2020-12-04 12:37:01 +00:00
|
|
|
Requires: python-toolz >= 0.8.2
|
2021-01-13 16:05:13 +00:00
|
|
|
Requires: python-tornado >= 6.0.3
|
2018-05-08 11:38:50 +00:00
|
|
|
Requires: python-zict >= 0.1.3
|
2021-09-22 17:40:45 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun):update-alternatives
|
2021-07-21 09:16:05 +00:00
|
|
|
%if %{with cythonize}
|
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
# the cythonized scheduler needs Cython also as runtime dep for some checks
|
|
|
|
Requires: python-Cython
|
|
|
|
%endif
|
2018-05-04 09:29:08 +00:00
|
|
|
%if %{with test}
|
2018-07-02 21:33:47 +00:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
2021-04-06 08:43:30 +00:00
|
|
|
BuildRequires: %{python_module bokeh}
|
2018-05-04 09:29:08 +00:00
|
|
|
BuildRequires: %{python_module certifi}
|
|
|
|
BuildRequires: %{python_module click >= 6.6}
|
2020-12-04 12:37:01 +00:00
|
|
|
BuildRequires: %{python_module cloudpickle >= 1.5.0}
|
2021-05-19 17:27:21 +00:00
|
|
|
BuildRequires: %{python_module dask-all = %{version}}
|
2021-01-13 16:05:13 +00:00
|
|
|
BuildRequires: %{python_module ipykernel}
|
|
|
|
BuildRequires: %{python_module ipython}
|
|
|
|
BuildRequires: %{python_module jupyter_client}
|
2018-05-08 11:38:50 +00:00
|
|
|
BuildRequires: %{python_module msgpack}
|
2018-05-04 09:29:08 +00:00
|
|
|
BuildRequires: %{python_module psutil}
|
2022-01-21 23:34:26 +00:00
|
|
|
BuildRequires: %{python_module pytest-asyncio >= 0.17.2}
|
2021-03-08 22:22:37 +00:00
|
|
|
BuildRequires: %{python_module pytest-rerunfailures}
|
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2018-07-02 21:33:47 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-01-13 16:05:13 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2018-05-04 09:29:08 +00:00
|
|
|
BuildRequires: %{python_module sortedcontainers}
|
2021-04-01 10:30:28 +00:00
|
|
|
BuildRequires: %{python_module sparse}
|
2018-05-04 09:29:08 +00:00
|
|
|
BuildRequires: %{python_module tblib}
|
2020-12-04 12:37:01 +00:00
|
|
|
BuildRequires: %{python_module toolz >= 0.8.2}
|
2021-04-01 10:30:28 +00:00
|
|
|
BuildRequires: %{python_module tornado >= 6.0.3}
|
2018-05-08 11:38:50 +00:00
|
|
|
BuildRequires: %{python_module zict >= 0.1.3}
|
2018-04-24 13:31:18 +00:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-05-04 09:29:08 +00:00
|
|
|
Dask.distributed is a library for distributed computing in Python. It
|
|
|
|
extends both the concurrent.futures and dask APIs to moderate sized
|
|
|
|
clusters.
|
2018-04-24 13:31:18 +00:00
|
|
|
|
|
|
|
%prep
|
2022-03-08 10:24:12 +00:00
|
|
|
%autosetup -p1 -n distributed-%{version}
|
2022-02-14 15:14:07 +00:00
|
|
|
|
2021-09-22 17:40:45 +00:00
|
|
|
sed -i '/addopts/ {s/--durations=20//; s/--color=yes//}' setup.cfg
|
2018-04-24 13:31:18 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-13 16:05:13 +00:00
|
|
|
%if ! %{with test}
|
2021-04-03 10:03:17 +00:00
|
|
|
%python_build %{?cythonize}
|
2021-01-13 16:05:13 +00:00
|
|
|
%endif
|
2018-04-24 13:31:18 +00:00
|
|
|
|
|
|
|
%install
|
2021-01-13 16:05:13 +00:00
|
|
|
%if ! %{with test}
|
2021-04-03 10:03:17 +00:00
|
|
|
%python_install %{?cythonize}
|
2021-01-13 16:05:13 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-ssh
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-scheduler
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-worker
|
2021-08-09 13:04:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2021-01-13 16:05:13 +00:00
|
|
|
%endif
|
2018-04-24 13:31:18 +00:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2022-01-21 23:34:26 +00:00
|
|
|
# randomly fail server-side -- too slow for obs (?)
|
2021-04-01 10:30:28 +00:00
|
|
|
donttest+=" or (test_asyncprocess and test_exit_callback)"
|
2022-01-21 23:34:26 +00:00
|
|
|
donttest+=" or (test_nanny and test_throttle_outgoing_connections)"
|
2021-07-21 09:16:05 +00:00
|
|
|
donttest+=" or (test_scheduler and test_rebalance)"
|
|
|
|
donttest+=" or (test_tls_functional and test_rebalance)"
|
2022-01-21 23:34:26 +00:00
|
|
|
donttest+=" or (test_worker and test_fail_write_to_disk)"
|
2022-02-01 06:33:50 +00:00
|
|
|
donttest+=" or (test_worker and test_multiple_transfers)"
|
2022-01-21 23:34:26 +00:00
|
|
|
donttest+=" or (test_worker and test_remove_replicas_while_computing)"
|
|
|
|
donttest+=" or (test_worker and test_worker_reconnects_mid_compute)"
|
|
|
|
if [[ $(getconf LONG_BIT) -eq 32 ]]; then
|
|
|
|
# OverflowError
|
|
|
|
donttest+=" or (test_ensure_spilled_immediately)"
|
|
|
|
donttest+=" or (test_value_raises_during_spilling)"
|
|
|
|
fi
|
2021-07-21 09:16:05 +00:00
|
|
|
%pytest_arch distributed/tests -r sfER -m "not avoid_ci" -k "not (${donttest:4})" --reruns 3 --reruns-delay 3
|
2018-04-24 13:31:18 +00:00
|
|
|
%endif
|
|
|
|
|
2021-01-13 16:05:13 +00:00
|
|
|
%if ! %{with test}
|
|
|
|
%post
|
|
|
|
%python_install_alternative dask-ssh dask-scheduler dask-worker
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative dask-ssh
|
|
|
|
|
2018-04-24 13:31:18 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2021-01-13 16:05:13 +00:00
|
|
|
%python_alternative %{_bindir}/dask-ssh
|
|
|
|
%python_alternative %{_bindir}/dask-scheduler
|
|
|
|
%python_alternative %{_bindir}/dask-worker
|
|
|
|
%{python_sitearch}/distributed
|
2022-03-08 10:24:12 +00:00
|
|
|
%{python_sitearch}/distributed-%(echo %{version}|sed -e 's/\.0/./')*-info
|
|
|
|
|
2021-01-13 16:05:13 +00:00
|
|
|
%endif
|
2018-04-24 13:31:18 +00:00
|
|
|
|
|
|
|
%changelog
|