Accepting request 907015 from devel:languages:python

- 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)

OBS-URL: https://build.opensuse.org/request/show/907015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-threadpoolctl?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2021-07-21 17:05:44 +00:00 committed by Git OBS Bridge
commit e55fe2fc7a
5 changed files with 17 additions and 38 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Jul 19 06:27:59 UTC 2021 - Dirk Müller <dmueller@suse.com>
- 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 <mcalabkova@suse.com> Fri Jul 24 11:21:21 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-threadpoolctl # spec file for package python-threadpoolctl
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-threadpoolctl Name: python-threadpoolctl
Version: 2.1.0 Version: 2.2.0
Release: 0 Release: 0
Summary: Thread-pool Controls Summary: Thread-pool Controls
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/joblib/threadpoolctl URL: https://github.com/joblib/threadpoolctl
Source: https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-%{version}.tar.gz
# fix python executable in tests
Patch0: python_executable.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@ -43,7 +41,6 @@ and OpenMP implementations).
%prep %prep
%setup -q -n threadpoolctl-%{version} %setup -q -n threadpoolctl-%{version}
%patch0 -p1
%build %build
%python_build %python_build

View File

@ -1,30 +0,0 @@
Index: threadpoolctl-2.1.0/tests/test_threadpoolctl.py
===================================================================
--- threadpoolctl-2.1.0.orig/tests/test_threadpoolctl.py
+++ threadpoolctl-2.1.0/tests/test_threadpoolctl.py
@@ -396,14 +396,14 @@ def test_libomp_libiomp_warning(recwarn)
def test_command_line_empty():
output = subprocess.check_output(
- "python -m threadpoolctl".split())
+ (sys.executable + " -m threadpoolctl").split())
assert json.loads(output.decode("utf-8")) == []
def test_command_line_command_flag():
pytest.importorskip("numpy")
output = subprocess.check_output(
- ["python", "-m", "threadpoolctl", "-c", "import numpy"])
+ [sys.executable, "-m", "threadpoolctl", "-c", "import numpy"])
cli_info = json.loads(output.decode("utf-8"))
this_process_info = threadpool_info()
@@ -415,7 +415,7 @@ def test_command_line_command_flag():
reason="need recent subprocess.run options")
def test_command_line_import_flag():
result = subprocess.run([
- "python", "-m", "threadpoolctl", "-i",
+ sys.executable, "-m", "threadpoolctl", "-i",
"numpy",
"scipy.linalg",
"invalid_package",

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddc57c96a38beb63db45d6c159b5ab07b6bced12c45a1f07b2b92f272aebfa6b
size 26644

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86d4b6801456d780e94681d155779058759eaef3c3564758b17b6c99db5f81cb
size 27247