Compare commits

..

No commits in common. "2575eb7ef8c30a2d509894bfaa29c7bef29deb0a" and "89ad5b7ab3d035922559fb519e8c0034a944133b" have entirely different histories.

3 changed files with 11 additions and 29 deletions

View File

@ -1,16 +1,15 @@
%global pypi_name threadpoolctl
%bcond_without test
%bcond_with test
Name: python-%{pypi_name}
Version: 3.2.0
Release: 1
Version: 2.1.0
Release: 3
Summary: Python helpers to limit the number of threads
License: BSD-3-Clause
License: BSD 3-Clause
URL: https://github.com/joblib/threadpoolctl/
Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip python3-wheel python3-flit
%if %{with test}
BuildRequires: python3-pytest
@ -33,17 +32,13 @@ Summary: %{summary}
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%py3_build
%install
%pyproject_install threadpoolctl==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
%py3_install
%if %{with test}
%check
@ -53,24 +48,11 @@ py.test-%{python3_version}
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md CHANGES.md
%{python3_sitelib}/*
%{python3_sitelib}/threadpoolctl.py
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/__pycache__/%{pypi_name}.*
%changelog
* Thu Feb 01 2024 xu_ping <707078654@qq.com> - 3.2.0-1
- Upgrade version to 3.2.0
* Thu Apr 27 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.1.0-3
- Use pyproject to compile package
* Thu Feb 16 2023 tanyulong <tanyulong@kylinos.cn> - 3.1.0-2
- enable check
* Fri Oct 28 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.1.0-1
- Update package to version 3.1.0
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0.0-1
- Upgrade to version 3.0.0
* Fri Mar 4 2022 zhaoshuang <zhaoshuang@uniontech.com> - 2.1.0-3
- remove unnecessary buildrequires

BIN
threadpoolctl-2.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.