2025-07-25 07:09:47 +00:00
#
# spec file for package python-multiprocess
#
2026-01-20 01:52:53 +00:00
# Copyright (c) 2026 SUSE LLC and contributors
2025-07-25 07:09:47 +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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name : python-multiprocess
2026-01-20 01:52:53 +00:00
Version : 0.70.19
2025-07-25 07:09:47 +00:00
Release : 0
2026-01-20 01:52:53 +00:00
Summary : Better multiprocessing and multithreading in Python
2025-07-25 07:09:47 +00:00
License : BSD-3-Clause
URL : https://github.com/uqfoundation/multiprocess
Source : https://files.pythonhosted.org/packages/source/m/multiprocess/multiprocess-%{version} .tar.gz
BuildRequires : %{python_module base >= 3.9}
BuildRequires : %{python_module build}
BuildRequires : %{python_module pip}
BuildRequires : %{python_module setuptools >= 42}
BuildRequires : python-rpm-macros
# SECTION test requirements
2026-01-20 01:52:53 +00:00
BuildRequires : %{python_module dill >= 0.4.1}
2025-07-25 07:09:47 +00:00
BuildRequires : %{python_module pytest}
BuildRequires : %{python_module testsuite}
# /SECTION
BuildRequires : fdupes
2026-01-20 01:52:53 +00:00
Requires : python-dill >= 0.4.1
2025-07-25 07:09:47 +00:00
BuildArch : noarch
%python_subpackages
%description
2026-01-20 01:52:53 +00:00
Better multiprocessing and multithreading in Python
2025-07-25 07:09:47 +00:00
%prep
%autosetup -p1 -n multiprocess-%{version}
%build
2026-01-20 01:52:53 +00:00
# We need to build this multiple times, for each version of Python, as opposed
2025-07-25 07:09:47 +00:00
# to just once, because that will only be compatible for the first version
# of Python built.
%python_exec -m build -wn -o build
%install
%pyproject_install
%python_expand %fdupes %{buildroot} %{$python_sitelib}
%check
%{python_expand \
subver=$($python --version | cut -d. -f2)
pushd py3.$subver/multiprocess/tests
export PYTHONPATH=%{buildroot} %{$python_sitelib}
export PYTHONDONTWRITEBYTECODE=1
pytest-3.$subver -v -x -k 'not (CmdLineTest or WithThreadsTestProcess or WithThreadsTestQueue or test_repr_lock or test_repr_rlock or sys_path or test_wait or test_resource_tracker_reused or test_empty or test_args_argument or test_child_fd_inflation or test_lose_target_ref)' .
popd
}
%files %{python_files}
%doc README.md
%license COPYING LICENSE
%{python_sitelib} /_multiprocess
%{python_sitelib} /multiprocess
%{python_sitelib} /multiprocess-%{version} .dist-info
%changelog