#3 Do not run tests on Python 2
Merged 4 years ago by kalev. Opened 4 years ago by pviktori.
rpms/ pviktori/pycairo no-py2-pytest  into  master

file modified
+4 -3
@@ -1,6 +1,6 @@ 

  Name: pycairo

  Version: 1.18.2

- Release: 1%{?dist}

+ Release: 2%{?dist}

  Summary: Python bindings for the cairo library

  

  License: MPLv1.1 or LGPLv2
@@ -11,7 +11,6 @@ 

  BuildRequires: gcc

  BuildRequires: pkgconfig

  BuildRequires: python2-devel

- BuildRequires: python2-pytest

  BuildRequires: python3-devel

  BuildRequires: python3-pytest

  
@@ -70,7 +69,6 @@ 

  %py3_install

  

  %check

- %{__python2} setup.py test

  %{__python3} setup.py test

  

  %files -n python2-cairo
@@ -94,6 +92,9 @@ 

  %{_libdir}/pkgconfig/py3cairo.pc

  

  %changelog

+ * Tue Oct 29 2019 Petr Viktorin <pviktori@redhat.com> - 1.18.2-2

+ - Do not run tests on Python 2

+ 

  * Thu Oct 24 2019 Kalev Lember <klember@redhat.com> - 1.18.2-1

  - Update to 1.18.2

  

The python2-pytest maintainers plan to retire it in Fedora 32, and it's quite unlikely that anyone will want to take it (and its many dependencies). Most likely, it will be removed in mid-November and pycairo will start failing to build.
Here's a pull request to build pycairo without python2-pytest.

Pull-Request has been merged by kalev

4 years ago