!6 use pytest to run test suite
From: @tong_1001 Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
96f6a8f8c7
@ -16,7 +16,7 @@ need to prettify source code. Highlights are: \
|
||||
Name: python-pygments
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
Version: 2.5.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: BSD
|
||||
URL: http://pygments.org/
|
||||
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
||||
@ -27,7 +27,7 @@ BuildArch: noarch
|
||||
|
||||
%package -n python2-pygments
|
||||
BuildRequires: python2-devel >= 2.4, python2-setuptools
|
||||
BuildRequires: python2-nose, python2-sphinx
|
||||
BuildRequires: python2-nose, python2-sphinx python2-pytest
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
%{?python_provide:%python_provide python2-pygments}
|
||||
|
||||
@ -35,7 +35,7 @@ Summary: Syntax highlighting engine written in Python
|
||||
%{_description}
|
||||
|
||||
%package -n python3-pygments
|
||||
BuildRequires: python3-devel, python3-setuptools, python3-nose
|
||||
BuildRequires: python3-devel, python3-setuptools, python3-nose python3-pytest
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
%{?python_provide:%python_provide python3-pygments}
|
||||
|
||||
@ -64,8 +64,8 @@ cp -r doc/docs doc/reST
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
make test PYTHON=%{__python2}
|
||||
make test PYTHON=%{__python3}
|
||||
%{__python2} -m pytest
|
||||
%{__python3} -m pytest
|
||||
|
||||
%files -n python2-pygments
|
||||
%license LICENSE
|
||||
@ -81,6 +81,9 @@ make test PYTHON=%{__python3}
|
||||
%lang(en) %{_mandir}/man1/pygmentize.1*
|
||||
|
||||
%changelog
|
||||
* Sat Dec 05 2020 shixuantong<shixuantong@huawei.com> - 2.5.2-2
|
||||
- use pytest to run test suite
|
||||
|
||||
* Sat Aug 22 2020 tianwei<tianwei12@huawei.com> - 2.5.2-1
|
||||
- Package update to 2.5.2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user