Remove python-nose
Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
parent
47ee588b6e
commit
339b71deb8
@ -1,7 +1,7 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pytimeparse
|
||||
Version: 1.1.8
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Time expression parser
|
||||
License: MIT
|
||||
URL: https://github.com/wroberts/pytimeparse
|
||||
@ -19,7 +19,7 @@ BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-pytest
|
||||
%description -n python3-pytimeparse
|
||||
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
|
||||
%autosetup -n pytimeparse-1.1.8
|
||||
sed -i '/nose/d' setup.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -65,7 +66,7 @@ mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
pytest pytimeparse/tests/test*.py
|
||||
|
||||
%files -n python3-pytimeparse -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
@ -75,5 +76,8 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%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
|
||||
- Package Spec generate
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user