Switch to pytest

This commit is contained in:
Pete Walter 2019-01-07 10:12:32 +00:00
parent 89f38ef97a
commit 89a8b4912d

View File

@ -27,6 +27,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
@ -78,11 +79,11 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
# https://github.com/libgit2/pygit2/issues/812
%ifarch aarch64 ppc64 s390x
%if 0%{?with_python3}
%{__python3} setup.py test || :
pytest-3 || :
%endif
%else
%if 0%{?with_python3}
%{__python3} setup.py test
pytest-3
%endif
%endif
@ -104,6 +105,7 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%changelog
* Thu Dec 27 2018 Pete Walter <pwalter@fedoraproject.org> - 0.27.3-1
- Update to 0.27.3
- Switch to pytest
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.27.2-2
- Python2 binary package has been removed