!7 Remove python-nose

From: @cherry530 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2022-05-10 06:34:13 +00:00 committed by Gitee
commit a29b9c3194
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-pytimeparse Name: python-pytimeparse
Version: 1.1.8 Version: 1.1.8
Release: 1 Release: 2
Summary: Time expression parser Summary: Time expression parser
License: MIT License: MIT
URL: https://github.com/wroberts/pytimeparse URL: https://github.com/wroberts/pytimeparse
@ -19,7 +19,7 @@ BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-wheel BuildRequires: python3-wheel
BuildRequires: python3-nose BuildRequires: python3-pytest
%description -n python3-pytimeparse %description -n python3-pytimeparse
A small Python library to parse various kinds of time expressions A small Python library to parse various kinds of time expressions
@ -31,6 +31,7 @@ A small Python library to parse various kinds of time expressions
%prep %prep
%autosetup -n pytimeparse-1.1.8 %autosetup -n pytimeparse-1.1.8
sed -i '/nose/d' setup.py
%build %build
%py3_build %py3_build
@ -65,7 +66,7 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%check %check
%{__python3} setup.py test pytest pytimeparse/tests/test*.py
%files -n python3-pytimeparse -f filelist.lst %files -n python3-pytimeparse -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
@ -75,5 +76,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Sat May 07 2022 xu_ping <xuping33@h-partners.com> - 1.1.8-2
- Remove test dependencies on python-nose during the buildprocess
* Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 1.1.8-1 * Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 1.1.8-1
- Package Spec generate - Package Spec generate