From 39c616625a9ebdbc33fcfbb10d4e05216f32f03b Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jun 05 2018 12:48:14 +0000 Subject: Backport upstream patch for Python 3.7 support (#1577621) - Use python2 explicitly --- diff --git a/python-testtools.spec b/python-testtools.spec index 7162c12..c01ab7b 100644 --- a/python-testtools.spec +++ b/python-testtools.spec @@ -4,7 +4,7 @@ Name: python-testtools Version: 2.3.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Extensions to the Python unit testing framework %if 0%{?rhel} @@ -15,6 +15,9 @@ URL: https://launchpad.net/testtools Source0: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz Patch0: testtools-1.8.0-py3.patch +# https://github.com/testing-cabal/testtools/pull/271 +Patch1: testtools-2.3.0-py37.patch + BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-extras @@ -86,6 +89,7 @@ This package contains HTML documentation for %{name}. %prep %setup -q -n testtools-%{version} +%patch1 -p1 -b .py37 %if 0%{?with_python3} rm -rf %{py3dir} @@ -129,7 +133,7 @@ popd %check -make PYTHON=%{__python} check +make PYTHON=%{__python2} check %if 0%{?with_python3} pushd %{py3dir} @@ -155,6 +159,10 @@ popd %changelog +* Tue Jun 05 2018 Miro Hrončok - 2.3.0-7 +- Backport upstream patch for Python 3.7 support (#1577621) +- Use python2 explicitly + * Fri Mar 09 2018 Iryna Shcherbina - 2.3.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)