From 1fb4b30fe249b8bb2529307b7b7ccacd90e61a82 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Wed, 24 Nov 2021 14:39:31 +0800 Subject: [PATCH] Use pytest to run tests --- python-xattr.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python-xattr.spec b/python-xattr.spec index 73392f6..d26030e 100644 --- a/python-xattr.spec +++ b/python-xattr.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-xattr Version: 0.9.7 -Release: 1 +Release: 2 Summary: Python wrapper for extended filesystem attributes License: MIT URL: http://github.com/xattr/xattr @@ -17,6 +17,7 @@ Provides: python-xattr BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-cffi +BuildRequires: python3-pytest BuildRequires: gcc BuildRequires: gdb # General requires @@ -69,7 +70,9 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +#%{__python3} setup.py test +export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH +pytest-3 %files -n python3-xattr -f filelist.lst %dir %{python3_sitearch}/* @@ -78,5 +81,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Nov 24 2021 huangtianhua - 0.9.7-2 +- Use pytest-3 to run tests + * Wed Aug 11 2021 OpenStack_SIG - 0.9.7-1 - Package Spec generate