change the BuildRequires:python3-nose to python3-nose2

(cherry picked from commit 549a4ee9ebec5a41f5c27f238f1930f1fd150467)
This commit is contained in:
liqiuyu 2022-02-15 10:49:12 +08:00 committed by openeuler-sync-bot
parent acb54dce52
commit d172c23ba0

View File

@ -1,14 +1,10 @@
%global pypi_name fasteners %global pypi_name fasteners
#%%if 0%{?rhel} >= 8
%bcond_with pytests %bcond_with pytests
#%%else
#%%bcond_without pytests
#%%endif
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.14.1 Version: 0.14.1
Release: 20%{?dist} Release: 21
Summary: A python package that provides useful locks Summary: A python package that provides useful locks
License: ASL 2.0 License: ASL 2.0
@ -29,7 +25,7 @@ BuildRequires: python3-six
BuildRequires: python3-devel BuildRequires: python3-devel
# tests # tests
BuildRequires: python3-testtools BuildRequires: python3-testtools
BuildRequires: python3-nose BuildRequires: python3-nose2
Requires: python3-six Requires: python3-six
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
@ -48,7 +44,7 @@ A python package that provides useful locks.
%py3_install %py3_install
%check %check
nosetests-%{python3_version} nose2-%{python3_version}
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%doc README.rst %doc README.rst
@ -58,5 +54,8 @@ nosetests-%{python3_version}
%changelog %changelog
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 0.14.1-21 * Tue Feb 15 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.14.1-21
- change the BuildRequires:python3-nose to python3-nose2
* Fri Oct 30 2020 jiangxinyu <jiangxinyu@kylinos.cn> - 0.14.1-20
- Init python3-fasteners project - Init python3-fasteners project