Package python3-module-threadpoolctl: Specfile

%define _unpackaged_files_terminate_build 1
%define oname threadpoolctl

%def_with check

Name: python3-module-%oname
Version: 3.1.0
Release: alt1
Summary: Thread-pool Controls
License: BSD-3-Clause
Group: Development/Python3

BuildArch: noarch

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(flit.sdist)

%if_with check
BuildRequires: /usr/bin/py.test3

Python helpers to limit the number of threads used in the threadpool-backed
of common native libraries used for scientific computing and data science
(e.g. BLAS and OpenMP).

Fine control of the underlying thread-pool size can be useful in workloads
that involve nested parallelism so as to mitigate oversubscription issues.


# flit build backend
# generate for legacy builder
%__python3 - <<-'EOF'
from pathlib import Path
from flit.sdist import SdistBuilder

with open("", "wb") as f:
    sd_builder = SdistBuilder.from_ini_path(Path("pyproject.toml"))


py.test3 -vv -ra


* Wed Mar 02 2022 Stanislav Levin <> 3.1.0-alt1
- 2.2.0 -> 3.1.0.

* Tue Aug 24 2021 Aleksei Nikiforov <> 2.2.0-alt1
- Updated to upstream version 2.2.0.
- Enabled tests.

* Sat Jul 17 2021 Michael Shigorin <> 2.1.0-alt2
- added explicit BR: python3-module-pip

* Mon Aug 10 2020 Aleksei Nikiforov <> 2.1.0-alt1
- Initial build for ALT.