Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyramid-mako for 
openSUSE:Factory checked in at 2021-08-04 22:28:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyramid-mako (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyramid-mako.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyramid-mako"

Wed Aug  4 22:28:46 2021 rev:3 rq:909992 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyramid-mako/python-pyramid-mako.changes  
2021-06-04 00:34:17.672997608 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyramid-mako.new.1899/python-pyramid-mako.changes
        2021-08-04 22:29:23.397765019 +0200
@@ -1,0 +2,6 @@
+Tue Aug  3 12:36:41 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Add pyramid2.patch for the compatibility with the new pyramid.
+- Require pyramid 2 and skip python2 because of it.
+
+-------------------------------------------------------------------

New:
----
  pyramid2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyramid-mako.spec ++++++
--- /var/tmp/diff_new_pack.Wxgqfe/_old  2021-08-04 22:29:23.765764570 +0200
+++ /var/tmp/diff_new_pack.Wxgqfe/_new  2021-08-04 22:29:23.765764570 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:           python-pyramid-mako
 Version:        1.1.0
 Release:        0
@@ -25,16 +26,17 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/Pylons/pyramid_mako
 Source:         
https://files.pythonhosted.org/packages/source/p/pyramid_mako/pyramid_mako-%{version}.tar.gz
+Patch0:         pyramid2.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-Mako >= 1.1.0
-Requires:       python-pyramid
+Requires:       python-pyramid >= 2.0
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Mako >= 1.1.0}
 BuildRequires:  %{python_module WebTest >= 1.3.1}
-BuildRequires:  %{python_module pyramid}
+BuildRequires:  %{python_module pyramid >= 2.0}
 # /SECTION
 %python_subpackages
 
@@ -43,6 +45,7 @@
 
 %prep
 %setup -q -n pyramid_mako-%{version}
+%autopatch -p1
 
 %build
 %python_build

++++++ pyramid2.patch ++++++
Index: pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mak
===================================================================
--- pyramid_mako-1.1.0.orig/pyramid_mako/fixtures/helloworld.mak
+++ pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mak
@@ -1,3 +1,3 @@
 ## -*- coding: utf-8 -*-
-<%!from pyramid.compat import text_%><% a, b = 'foo', text_('f????', 'utf-8') 
%>
+<%!from pyramid.util import text_%><% a, b = 'foo', text_('f????', 'utf-8') %>
 Hello ${text_('f????', 'utf-8')}
Index: pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mako
===================================================================
--- pyramid_mako-1.1.0.orig/pyramid_mako/fixtures/helloworld.mako
+++ pyramid_mako-1.1.0/pyramid_mako/fixtures/helloworld.mako
@@ -1,3 +1,3 @@
 ## -*- coding: utf-8 -*-
-<%!from pyramid.compat import text_%><% a, b = 'foo', text_('f????', 'utf-8') 
%>
+<%!from pyramid.util import text_%><% a, b = 'foo', text_('f????', 'utf-8') %>
 Hello ${text_('f????', 'utf-8')}

Reply via email to