2018-04-24 15:31:18 +02:00
|
|
|
#
|
2021-07-21 11:16:05 +02:00
|
|
|
# spec file
|
2018-04-24 15:31:18 +02:00
|
|
|
#
|
2023-01-05 18:47:22 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-04-24 15:31:18 +02: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 07:56:44 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-24 15:31:18 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-22 00:34:26 +01:00
|
|
|
%define psuffix %{nil}
|
2021-01-13 17:05:13 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2022-01-22 00:34:26 +01:00
|
|
|
%if "%{flavor}" == "test-py39"
|
|
|
|
%define psuffix -test-py39
|
|
|
|
%define skip_python310 1
|
2023-02-28 10:39:56 +01:00
|
|
|
%define skip_python311 1
|
2022-01-22 00:34:26 +01:00
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "test-py310"
|
2022-03-08 11:24:12 +01:00
|
|
|
%define psuffix -test-py310
|
2022-01-22 00:34:26 +01:00
|
|
|
%define skip_python39 1
|
2023-02-28 10:39:56 +01:00
|
|
|
%define skip_python311 1
|
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "test-py311"
|
|
|
|
%define psuffix -test-py311
|
|
|
|
%define skip_python39 1
|
|
|
|
%define skip_python310 1
|
2022-01-22 00:34:26 +01:00
|
|
|
%bcond_without test
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == ""
|
2021-01-13 17:05:13 +01:00
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2022-07-12 22:16:47 +02:00
|
|
|
# use this to run tests with xdist in parallel, unfortunately fails server side
|
|
|
|
%bcond_with paralleltests
|
2022-11-20 19:27:09 +01:00
|
|
|
|
2021-01-13 17:05:13 +01:00
|
|
|
Name: python-distributed%{psuffix}
|
2022-03-27 20:57:25 +02:00
|
|
|
# ===> Note: python-dask MUST be updated in sync with python-distributed! <===
|
2023-11-16 22:29:18 +01:00
|
|
|
Version: 2023.11.0
|
2018-04-24 15:31:18 +02:00
|
|
|
Release: 0
|
2018-05-04 11:29:08 +02:00
|
|
|
Summary: Library for distributed computing with Python
|
2018-04-24 15:31:18 +02:00
|
|
|
License: BSD-3-Clause
|
2022-03-27 20:57:25 +02:00
|
|
|
URL: https://distributed.dask.org
|
2023-01-05 18:47:22 +01:00
|
|
|
# SourceRepository: https://github.com/dask/distributed
|
2022-07-03 17:31:34 +02:00
|
|
|
Source: https://github.com/dask/distributed/archive/refs/tags/%{version}.tar.gz#/distributed-%{version}-gh.tar.gz
|
2018-04-24 15:31:18 +02:00
|
|
|
Source99: python-distributed-rpmlintrc
|
2022-07-03 17:31:34 +02:00
|
|
|
# PATCH-FIX-OPENSUSE distributed-ignore-off.patch -- ignore that we can't probe addresses on obs, code@bnavigator.de
|
2022-11-20 19:27:09 +01:00
|
|
|
Patch3: distributed-ignore-offline.patch
|
2022-03-27 20:57:25 +02:00
|
|
|
# PATCH-FIX-OPENSUSE distributed-ignore-thread-leaks.patch -- ignore leaking threads on obs, code@bnavigator.de
|
2022-11-20 19:27:09 +01:00
|
|
|
Patch4: distributed-ignore-thread-leaks.patch
|
2023-11-16 22:29:18 +01:00
|
|
|
# PATCH-FIX-OPENSUSE distributed-ignore-rerun.patch -- extend ignore pytest array, mimi.vx@gmail.com
|
|
|
|
Patch5: distributed-ignore-rerun.patch
|
|
|
|
BuildRequires: %{python_module base >= 3.9}
|
2023-01-05 18:47:22 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-04-24 15:31:18 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-11-16 22:29:18 +01:00
|
|
|
BuildRequires: %{python_module versioneer-toml >= 0.29}
|
2023-01-05 18:47:22 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-04-24 15:31:18 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-02-06 13:27:22 +01:00
|
|
|
Requires: python-Jinja2 >= 2.10.3
|
|
|
|
Requires: python-PyYAML >= 5.3.1
|
2023-03-14 14:13:04 +01:00
|
|
|
Requires: python-click >= 8.0
|
2020-12-04 13:37:01 +01:00
|
|
|
Requires: python-cloudpickle >= 1.5.0
|
2021-05-19 19:27:21 +02:00
|
|
|
Requires: python-dask = %{version}
|
2022-07-03 17:31:34 +02:00
|
|
|
Requires: python-locket >= 1.0.0
|
2023-02-06 13:27:22 +01:00
|
|
|
Requires: python-msgpack >= 1.0.0
|
2022-01-22 00:34:26 +01:00
|
|
|
Requires: python-packaging >= 20.0
|
2023-02-06 13:27:22 +01:00
|
|
|
Requires: python-psutil >= 5.7.0
|
|
|
|
Requires: python-sortedcontainers >= 2.0.5
|
2023-06-01 09:28:34 +02:00
|
|
|
Requires: python-tblib >= 1.6.0
|
2022-11-20 19:27:09 +01:00
|
|
|
Requires: python-toolz >= 0.10.0
|
2023-06-01 09:28:34 +02:00
|
|
|
Requires: python-tornado >= 6.0.4
|
2023-02-06 13:27:22 +01:00
|
|
|
Requires: python-urllib3 >= 1.24.3
|
2023-06-01 09:28:34 +02:00
|
|
|
Requires: python-zict >= 2.2.0
|
2021-09-22 19:40:45 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun):update-alternatives
|
2022-07-12 22:16:47 +02:00
|
|
|
BuildArch: noarch
|
2018-05-04 11:29:08 +02:00
|
|
|
%if %{with test}
|
2023-06-05 04:15:54 +02:00
|
|
|
BuildRequires: %{python_module bokeh >= 3.1}
|
2022-10-25 07:07:35 +02:00
|
|
|
BuildRequires: %{python_module dask-complete = %{version}}
|
2022-03-14 09:10:40 +01:00
|
|
|
BuildRequires: %{python_module distributed = %{version}}
|
2021-01-13 17:05:13 +01:00
|
|
|
BuildRequires: %{python_module ipykernel}
|
|
|
|
BuildRequires: %{python_module ipython}
|
|
|
|
BuildRequires: %{python_module jupyter_client}
|
2021-03-08 23:22:37 +01:00
|
|
|
BuildRequires: %{python_module pytest-rerunfailures}
|
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2018-07-02 23:33:47 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-01-13 17:05:13 +01:00
|
|
|
BuildRequires: %{python_module requests}
|
2023-06-05 04:15:54 +02:00
|
|
|
BuildRequires: %{python_module sparse}
|
2023-09-11 08:40:13 +02:00
|
|
|
BuildRequires: %{python_module zict >= 3}
|
2022-03-27 20:57:25 +02:00
|
|
|
%if %{with paralleltests}
|
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
|
|
%endif
|
2018-04-24 15:31:18 +02:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-05-04 11:29:08 +02: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 15:31:18 +02:00
|
|
|
|
|
|
|
%prep
|
2022-07-03 17:31:34 +02:00
|
|
|
%autosetup -p1 -n distributed-%{version}
|
2022-02-14 16:14:07 +01:00
|
|
|
|
2022-07-03 17:31:34 +02:00
|
|
|
sed -e '/--durations=20/d' \
|
|
|
|
-e '/--color=yes/d' \
|
2023-06-01 09:28:34 +02:00
|
|
|
-e '/--cov/d' \
|
2022-07-03 17:31:34 +02:00
|
|
|
-e 's/timeout_method = thread/timeout_method = signal/' \
|
2023-06-01 09:28:34 +02:00
|
|
|
-i pyproject.toml
|
2018-04-24 15:31:18 +02:00
|
|
|
|
|
|
|
%build
|
2021-01-13 17:05:13 +01:00
|
|
|
%if ! %{with test}
|
2023-01-05 18:47:22 +01:00
|
|
|
%pyproject_wheel
|
2021-01-13 17:05:13 +01:00
|
|
|
%endif
|
2018-04-24 15:31:18 +02:00
|
|
|
|
|
|
|
%install
|
2021-01-13 17:05:13 +01:00
|
|
|
%if ! %{with test}
|
2023-01-05 18:47:22 +01:00
|
|
|
%pyproject_install
|
2021-01-13 17:05:13 +01:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-ssh
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-scheduler
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dask-worker
|
2022-07-03 17:31:34 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-01-13 17:05:13 +01:00
|
|
|
%endif
|
2018-04-24 15:31:18 +02:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2022-07-03 17:31:34 +02:00
|
|
|
# test local src dir, not installed path: looks for test certificates and not installed test modules
|
|
|
|
export PYTHONPATH=":x"
|
|
|
|
# disable profiling completely -- https://github.com/dask/distributed/pull/6490
|
|
|
|
sed '/enable profiling/ {s/enabled: True/enabled: False/}' -i distributed/distributed.yaml
|
|
|
|
# make sure the change was successful, this is only for the tests, we didn't patch any installed source
|
|
|
|
grep 'enabled: False .*enable profiling' distributed/distributed.yaml
|
|
|
|
|
2022-03-27 20:57:25 +02:00
|
|
|
# we obviously don't test a git repo
|
|
|
|
donttest="test_git_revision"
|
|
|
|
# logger error
|
|
|
|
donttest+=" or test_version_warning_in_cluster"
|
2022-07-03 17:31:34 +02:00
|
|
|
# invalid task state
|
2022-08-31 08:27:17 +02:00
|
|
|
donttest+=" or test_fail_to_pickle_execute_2"
|
2023-02-06 13:27:22 +01:00
|
|
|
# too slow for obs
|
|
|
|
donttest+=" or test_nanny_timeout"
|
2022-03-27 20:57:25 +02:00
|
|
|
|
|
|
|
# Some tests randomly fail server-side -- too slow for obs (?)
|
|
|
|
# see also https://github.com/dask/distributed/issues/5818
|
2022-07-03 17:31:34 +02:00
|
|
|
donttest+=" or (test_asyncprocess and (test_exit_callback or test_simple))"
|
2022-03-27 20:57:25 +02:00
|
|
|
donttest+=" or (test_client and test_repr)"
|
2022-07-03 17:31:34 +02:00
|
|
|
donttest+=" or (test_client and test_profile_server)"
|
|
|
|
donttest+=" or (test_metrics and test_wall_clock)"
|
2022-03-27 20:57:25 +02:00
|
|
|
donttest+=" or (test_priorities and test_compute)"
|
|
|
|
donttest+=" or (test_resources and test_prefer_constrained)"
|
2023-06-01 09:28:34 +02:00
|
|
|
donttest+=" or (test_scheduler and test_tell_workers_when_peers_have_left)"
|
2022-03-27 20:57:25 +02:00
|
|
|
donttest+=" or (test_steal and test_steal_twice)"
|
2023-03-14 14:13:04 +01:00
|
|
|
donttest+=" or (test_utils and test_popen_timeout)"
|
2022-07-03 17:31:34 +02:00
|
|
|
donttest+=" or (test_variable and test_variable_in_task)"
|
2023-03-14 14:13:04 +01:00
|
|
|
donttest+=" or (test_worker and test_gather_dep_from_remote_workers_if_all_local_workers_are_busy)"
|
2022-01-22 00:34:26 +01:00
|
|
|
donttest+=" or (test_worker and test_worker_reconnects_mid_compute)"
|
2023-01-05 18:47:22 +01:00
|
|
|
donttest+=" or (test_worker_memory and test_digests)"
|
2023-03-14 14:13:04 +01:00
|
|
|
donttest+=" or (test_worker_memory and test_pause_while_spilling)"
|
2022-07-03 17:31:34 +02:00
|
|
|
# server-side fail due to the non-network warning in a subprocess where the patched filter does not apply
|
|
|
|
donttest+=" or (test_client and test_quiet_close_process)"
|
2023-06-05 04:15:54 +02:00
|
|
|
# should return > 3, returns 3 exactly
|
|
|
|
donttest+=" or (test_statistical_profiling_cycle)"
|
2022-01-22 00:34:26 +01:00
|
|
|
if [[ $(getconf LONG_BIT) -eq 32 ]]; then
|
2022-03-27 20:57:25 +02:00
|
|
|
# OverflowError -- https://github.com/dask/distributed/issues/5252
|
|
|
|
donttest+=" or test_ensure_spilled_immediately"
|
|
|
|
donttest+=" or test_value_raises_during_spilling"
|
2022-09-01 08:53:47 +02:00
|
|
|
donttest+=" or test_fail_to_pickle_execute_1"
|
2022-10-25 07:07:35 +02:00
|
|
|
# https://github.com/dask/distributed/issues/7175
|
|
|
|
donttest+=" or (test_sizeof_error and larger)"
|
2023-09-11 08:40:13 +02:00
|
|
|
#
|
|
|
|
donttest+=" or test_task_groups"
|
2022-01-22 00:34:26 +01:00
|
|
|
fi
|
2022-03-27 20:57:25 +02:00
|
|
|
|
|
|
|
%if %{with paralleltests}
|
|
|
|
# not fully supported parallel test suite: https://github.com/dask/distributed/issues/5186
|
|
|
|
# works locally, but fails with too many tests server-side
|
|
|
|
notparallel="rebalance or memory or upload"
|
|
|
|
notparallel+=" or test_open_close_many_workers"
|
|
|
|
notparallel+=" or test_recreate_error_array"
|
2022-07-03 17:31:34 +02:00
|
|
|
notparallel+=" or (test_preload and test_web_preload)"
|
|
|
|
# Recursion error, https://github.com/dask/distributed/issues/6406
|
|
|
|
notparallel+=" or test_stack_overflow"
|
|
|
|
#
|
|
|
|
notparallel+=" or test_dashboard_host"
|
|
|
|
notparallel+=" or test_close_properly"
|
|
|
|
notparallel+=" or test_plugin_internal_exception"
|
|
|
|
notparallel+=" or test_runspec_regression_sync"
|
2022-07-12 22:16:47 +02:00
|
|
|
notparallel+=" or test_client_async_before_loop_starts"
|
2023-06-01 09:28:34 +02:00
|
|
|
# added in 2023.5.1
|
|
|
|
notparallel+=" or test_ensure_no_new_clients"
|
2022-07-03 17:31:34 +02:00
|
|
|
|
|
|
|
%pytest distributed/tests -m "not avoid_ci" -n auto -k "not ($notparallel or $donttest ${$python_donttest})"
|
|
|
|
%pytest distributed/tests -m "not avoid_ci" -k "($notparallel) and not ($donttest ${$python_donttest})"
|
2022-03-27 20:57:25 +02:00
|
|
|
%else
|
2023-11-16 22:29:18 +01:00
|
|
|
%pytest distributed/tests -m "not avoid_ci" -k "not ($donttest ${$python_donttest})"
|
2022-03-27 20:57:25 +02:00
|
|
|
%endif
|
2018-04-24 15:31:18 +02:00
|
|
|
%endif
|
|
|
|
|
2021-01-13 17:05:13 +01:00
|
|
|
%if ! %{with test}
|
|
|
|
%post
|
|
|
|
%python_install_alternative dask-ssh dask-scheduler dask-worker
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative dask-ssh
|
|
|
|
|
2018-04-24 15:31:18 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2021-01-13 17:05:13 +01:00
|
|
|
%python_alternative %{_bindir}/dask-ssh
|
|
|
|
%python_alternative %{_bindir}/dask-scheduler
|
|
|
|
%python_alternative %{_bindir}/dask-worker
|
2022-07-03 17:31:34 +02:00
|
|
|
%{python_sitelib}/distributed
|
2023-01-05 18:47:22 +01:00
|
|
|
%{python_sitelib}/distributed-%{version}.dist-info
|
2022-03-08 11:24:12 +01:00
|
|
|
|
2021-01-13 17:05:13 +01:00
|
|
|
%endif
|
2018-04-24 15:31:18 +02:00
|
|
|
|
|
|
|
%changelog
|