From e501b1f66ebc2f299ade98dd7a5f93f658c4afc60bdc4297fd45d4b13aca9080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:16:04 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-threadpoolctl revision c924b8b174c9e3032b5b178072d1887f --- .gitattributes | 23 +++++++++++++ python-threadpoolctl.changes | 67 ++++++++++++++++++++++++++++++++++++ python-threadpoolctl.spec | 63 +++++++++++++++++++++++++++++++++ threadpoolctl-3.1.0.tar.gz | 3 ++ 4 files changed, 156 insertions(+) create mode 100644 .gitattributes create mode 100644 python-threadpoolctl.changes create mode 100644 python-threadpoolctl.spec create mode 100644 threadpoolctl-3.1.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-threadpoolctl.changes b/python-threadpoolctl.changes new file mode 100644 index 0000000..f91f6bb --- /dev/null +++ b/python-threadpoolctl.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +Sat Jun 10 17:41:18 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Apr 3 04:34:43 UTC 2023 - Steve Kowalik + +- Add missing BuildRequires on numpy. +- Remove unneeded BuildRequires on pep517. +- Stop using python_sitelib/*. + +------------------------------------------------------------------- +Sun Jul 24 08:40:55 UTC 2022 - Dirk Müller + +- update to 3.1.0: + * Fixed a detection issue of the BLAS libraires packaged by conda-forge on Windows. + https://github.com/joblib/threadpoolctl/pull/112 + * `threadpool_limits` and `ThreadpoolController.limit` now accept the string + "sequential_blas_under_openmp" for the `limits` parameter. It should only be used for + the specific case when one wants to have sequential BLAS calls within an OpenMP + parallel region. It takes into account the unexpected behavior of OpenBLAS with the + OpenMP threading layer. + +------------------------------------------------------------------- +Sat Oct 16 22:16:06 UTC 2021 - Dirk Müller + +- update to 3.0.0: + - New object `threadpooctl.ThreadpoolController` which holds controllers for all the + supported native libraries. The states of these libraries is accessible through the + `info` method (equivalent to `threadpoolctl.threadpool_info()`) and their number of + threads can be limited with the `limit` method which can be used as a context + manager (equivalent to `threadpoolctl.threadpool_limits()`). + - Added support for OpenBLAS built for 64bit integers in Fortran. + - Added the possibility to use `threadpoolctl.threadpool_limits` and + `threadpooctl.ThreadpoolController` as decorators through their `wrap` method. + - Fixed an attribute error when using old versions of OpenBLAS or BLIS that are + missing version query functions. + - Fixed an attribute error when python is run with -OO. + +------------------------------------------------------------------- +Mon Jul 19 06:27:59 UTC 2021 - Dirk Müller + +- update to 2.2.0: + - Report the architecture of the CPU cores detected by OpenBLAS + (`openblas_get_corename`) in `threadpool_info()` and BLIS + (`bli_arch_query_id` and `bli_arch_string`). + - Fixed a bug when the version of MKL was not found. The + "version" field is now set to None in that case. + https://github.com/joblib/threadpoolctl/pull/82 +- drop python_executable.patch (upstream) + +------------------------------------------------------------------- +Fri Jul 24 11:21:21 UTC 2020 - Marketa Calabkova + +- update to 2.1.0 + * New commandline interface: 'python -m threadpoolctl -i numpy' + will try to import the `numpy` package and then return the output of + `threadpoolctl.threadpool_info()` on STDOUT formatted using the JSON + syntax. This makes it easier to quickly introspect a Python environment. +- Add patch python_executable.patch + +------------------------------------------------------------------- +Thu Mar 5 13:02:43 UTC 2020 - pgajdos@suse.com + +- initial version 2.0.0, required by python-joblib + diff --git a/python-threadpoolctl.spec b/python-threadpoolctl.spec new file mode 100644 index 0000000..727577c --- /dev/null +++ b/python-threadpoolctl.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-threadpoolctl +# +# Copyright (c) 2023 SUSE LLC +# +# 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/ +# + +%{?sle15_python_module_pythons} +Name: python-threadpoolctl +Version: 3.1.0 +Release: 0 +Summary: Thread-pool Controls +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/joblib/threadpoolctl +Source: https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Python helpers to limit the number of threads used in native +libraries that handle their own internal threadpool (BLAS +and OpenMP implementations). + +%prep +%setup -q -n threadpoolctl-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.md README.md +%license LICENSE +%{python_sitelib}/threadpoolctl.py +%pycache_only %{python_sitelib}/__pycache__/threadpoolctl.*.py* +%{python_sitelib}/threadpoolctl-%{version}*info + +%changelog diff --git a/threadpoolctl-3.1.0.tar.gz b/threadpoolctl-3.1.0.tar.gz new file mode 100644 index 0000000..101b257 --- /dev/null +++ b/threadpoolctl-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380 +size 33651