From 339b71deb86b2022ac79e70392c3936d7b95784f Mon Sep 17 00:00:00 2001 From: cherry530 Date: Sat, 7 May 2022 16:15:03 +0800 Subject: [PATCH] Remove python-nose Signed-off-by: cherry530 --- python-pytimeparse.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pytimeparse.spec b/python-pytimeparse.spec index 96a4724..56c81c0 100644 --- a/python-pytimeparse.spec +++ b/python-pytimeparse.spec @@ -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 - 1.1.8-2 +- Remove test dependencies on python-nose during the buildprocess + * Tue Aug 03 2021 OpenStack_SIG - 1.1.8-1 - Package Spec generate