From ad85d2f0be1a584c6cd772fd011a268d9b960564 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Feb 03 2017 19:50:05 +0000 Subject: Load the newer WebOb in the main __init__.py (#1419160). --- diff --git a/python-pyramid.spec b/python-pyramid.spec index b966fb5..fea0f45 100644 --- a/python-pyramid.spec +++ b/python-pyramid.spec @@ -6,7 +6,7 @@ Name: python-%{modname} Version: 1.5.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Pyramid web application framework, a Pylons project Group: Development/Libraries @@ -118,6 +118,8 @@ fun, more predictable, and more productive. # Force that a certain version of webob is imported and not the older one. awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"WebOb>=1.3.1\"]; import pkg_resources"}1' setup.py > setup.py.tmp mv setup.py.tmp setup.py +awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"WebOb>=1.3.1\"]; import pkg_resources"}1' pyramid/__init__.py > pyramid/__init__.py.tmp +mv pyramid/__init__.py.tmp pyramid/__init__.py # Remove bundled egg info @@ -202,6 +204,10 @@ popd %endif %changelog +* Fri Feb 03 2017 Randy Barlow - 1.5.6-3 +- Use Ralph's webob technique in the package's main __init__.py so it + works during runtime as well (#1419160). + * Thu Apr 16 2015 Ralph Bean - 1.5.6-2 - Force usage of the forward compat webob package on epel7.