diff --git a/python-pygit2.spec b/python-pygit2.spec index d918a17..33faad5 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -26,6 +26,7 @@ Summary: Python 2.x bindings for libgit2 %{?python_provide:%python_provide python2-%{pkgname}} BuildRequires: python2-cffi BuildRequires: python2-devel +BuildRequires: python2-pytest BuildRequires: python2-setuptools BuildRequires: python2-six Requires: python2-cffi @@ -44,6 +45,7 @@ Summary: Python 3.x bindings for libgit2 %{?python_provide:%python_provide python3-%{pkgname}} BuildRequires: python3-cffi BuildRequires: python3-devel +BuildRequires: python3-pytest BuildRequires: python3-setuptools BuildRequires: python3-six Requires: python3-cffi @@ -96,14 +98,14 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' # https://github.com/libgit2/pygit2/issues/811 # https://github.com/libgit2/pygit2/issues/812 %ifarch aarch64 ppc64 s390x - %{__python2} setup.py test || : + pytest-2 || : %if 0%{?with_python3} - %{__python3} setup.py test || : + pytest-3 || : %endif %else - %{__python2} setup.py test + pytest-2 %if 0%{?with_python3} - %{__python3} setup.py test + pytest-3 %endif %endif @@ -132,6 +134,7 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %changelog * Thu Dec 27 2018 Pete Walter - 0.27.3-1 - Update to 0.27.3 +- Switch to pytest * Mon Sep 17 2018 Pete Walter - 0.27.2-1 - Update to 0.27.2