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 - 2.0.29-5 +- Use python2 explicitly during build, install, and testing. + * Wed Feb 28 2018 Iryna Shcherbina - 2.0.29-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)