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