From 4b69a8121609a6001e478eef6f9e8dfe489a6076 Mon Sep 17 00:00:00 2001
From: Randy Barlow <randy(a)electronsweatshop.com>
Date: Feb 28 2018 19:56:38 +0000
Subject: Use python2 explicitly during build, install, and testing.
Signed-off-by: Randy Barlow <randy(a)electronsweatshop.com>
---
diff --git a/python-webtest.spec b/python-webtest.spec
index 6652073..4e74552 100644
--- a/python-webtest.spec
+++ b/python-webtest.spec
@@ -9,7 +9,7 @@
Name: python-webtest
Version: 2.0.29
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Helper to test WSGI applications
Group: Development/Languages
@@ -97,12 +97,16 @@ find tests -type f -exec sed -i "s|import mock|from unittest
import mock|" {} \;
popd
%endif
+#
https://github.com/Pylons/webtest/pull/190
+chmod -x docs/contributing.rst
+
+
%build
-%{__python} setup.py build
+%py2_build
%if 0%{?with_python3}
pushd %{py3dir}
-%{__python3} setup.py build
+%py3_build
popd
%endif
@@ -110,14 +114,15 @@ popd
%{__rm} -rf %{buildroot}
%if 0%{?with_python3}
pushd %{py3dir}
-%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+%py3_install
popd
%endif
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%py2_install
+
%check
-PYTHONPATH=$(pwd) nosetests
+PYTHONPATH=$(pwd) nosetests-2
%if 0%{?with_python3}
pushd %{py3dir}
@@ -139,6 +144,9 @@ popd
%endif
%changelog
+* Wed Feb 28 2018 Randy Barlow <bowlofeggs(a)fedoraproject.org> - 2.0.29-5
+- Use python2 explicitly during build, install, and testing.
+
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb(a)redhat.com> - 2.0.29-4
- Update Python 2 dependency declarations to new packaging standards
(See
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
https://src.fedoraproject.org/rpms/python-webtest/c/4b69a8121609a6001e478...