From 315aaf380bc99cee0dbe612a4a57a34cd88016c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E5=B0=8F=E5=93=A5?= Date: Sat, 5 Dec 2020 16:29:39 +0800 Subject: [PATCH] use pytest to run test suite --- python-pygments.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/python-pygments.spec b/python-pygments.spec index bb899d0..04d1f4a 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -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 - 2.5.2-2 +- use pytest to run test suite + * Sat Aug 22 2020 tianwei - 2.5.2-1 - Package update to 2.5.2 -- Gitee