Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-pyramid-chameleon"

Tue Aug  3 22:48:55 2021 rev:5 rq:909955 version:0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pyramid-chameleon/python-pyramid-chameleon.changes
        2020-08-17 14:40:06.794575634 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyramid-chameleon.new.1899/python-pyramid-chameleon.changes
      2021-08-03 22:49:28.216444071 +0200
@@ -1,0 +2,5 @@
+Tue Aug  3 10:38:31 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Add pyramid2.patch for the compatibility with the new pyramid.
+
+-------------------------------------------------------------------

New:
----
  pyramid2.patch

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

Other differences:
------------------
++++++ python-pyramid-chameleon.spec ++++++
--- /var/tmp/diff_new_pack.8TlFmu/_old  2021-08-03 22:49:28.632443569 +0200
+++ /var/tmp/diff_new_pack.8TlFmu/_new  2021-08-03 22:49:28.636443564 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyramid-chameleon
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2017 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -25,6 +25,7 @@
 License:        BSD-3-Clause AND ZPL-2.1 AND MIT
 URL:            https://github.com/Pylons/pyramid_chameleon
 Source:         
https://files.pythonhosted.org/packages/source/p/pyramid_chameleon/pyramid_chameleon-%{version}.tar.gz
+Patch0:         pyramid2.patch
 BuildRequires:  %{python_module Chameleon}
 BuildRequires:  %{python_module hupper}
 BuildRequires:  %{python_module plaster-pastedeploy}
@@ -46,6 +47,7 @@
 
 %prep
 %setup -q -n pyramid_chameleon-%{version}
+%autopatch -p1
 # Remove CC-SA-NC licensed stuff
 rm -rf docs/
 

++++++ pyramid2.patch ++++++
Index: pyramid_chameleon-0.3/pyramid_chameleon/tests/test_text.py
===================================================================
--- pyramid_chameleon-0.3.orig/pyramid_chameleon/tests/test_text.py
+++ pyramid_chameleon-0.3/pyramid_chameleon/tests/test_text.py
@@ -1,7 +1,6 @@
 import sys
 import unittest
 
-from pyramid.compat import binary_type
 from pyramid import testing
 
 class Base(object):
@@ -97,7 +96,7 @@ class TextTemplateRendererTests(Base, un
         lookup = DummyLookup()
         instance = self._makeOne(minimal, lookup)
         result = instance({}, {})
-        self.assertTrue(isinstance(result, binary_type))
+        self.assertTrue(isinstance(result, bytes))
         self.assertEqual(result, b'Hello.\n')
 
     def test_call_with_nondict_value(self):
@@ -111,7 +110,7 @@ class TextTemplateRendererTests(Base, un
         lookup = DummyLookup()
         instance = self._makeOne(nonminimal, lookup)
         result = instance({'name':'Chris'}, {})
-        self.assertTrue(isinstance(result, binary_type))
+        self.assertTrue(isinstance(result, bytes))
         self.assertEqual(result, b'Hello, Chris!\n')
 
     def test_implementation(self):
@@ -119,7 +118,7 @@ class TextTemplateRendererTests(Base, un
         lookup = DummyLookup()
         instance = self._makeOne(minimal, lookup)
         result = instance.implementation()()
-        self.assertTrue(isinstance(result, binary_type))
+        self.assertTrue(isinstance(result, bytes))
         self.assertEqual(result, b'Hello.\n')
 
 class DummyLookup(object):
Index: pyramid_chameleon-0.3/pyramid_chameleon/tests/test_zpt.py
===================================================================
--- pyramid_chameleon-0.3.orig/pyramid_chameleon/tests/test_zpt.py
+++ pyramid_chameleon-0.3/pyramid_chameleon/tests/test_zpt.py
@@ -2,7 +2,6 @@ import sys
 import unittest
 
 from pyramid import testing
-from pyramid.compat import text_type
 
 class Base(object):
     def setUp(self):
@@ -54,7 +53,7 @@ class ZPTTemplateRendererTests(Base, uni
         lookup = DummyLookup()
         instance = self._makeOne(minimal, lookup)
         result = instance({}, {})
-        self.assertTrue(isinstance(result, text_type))
+        self.assertTrue(isinstance(result, str))
         self.assertEqual(result.rstrip('\n'),
                      '<div xmlns="http://www.w3.org/1999/xhtml";>\n</div>')
 
@@ -121,7 +120,7 @@ class ZPTTemplateRendererTests(Base, uni
         lookup = DummyLookup()
         instance = self._makeOne(minimal, lookup)
         result = instance.implementation()()
-        self.assertTrue(isinstance(result, text_type))
+        self.assertTrue(isinstance(result, str))
         self.assertEqual(result.rstrip('\n'),
                      '<div xmlns="http://www.w3.org/1999/xhtml";>\n</div>')
 

Reply via email to