Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-autopage for openSUSE:Factory 
checked in at 2023-01-11 17:14:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopage (Old)
 and      /work/SRC/openSUSE:Factory/.python-autopage.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-autopage"

Wed Jan 11 17:14:24 2023 rev:6 rq:1057699 version:0.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopage/python-autopage.changes  
2022-11-22 16:09:45.189899072 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-autopage.new.32243/python-autopage.changes   
    2023-01-11 17:14:30.511636280 +0100
@@ -1,0 +2,6 @@
+Wed Jan 11 05:45:45 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-python-311.patch:
+  * Support Python 3.11 changes.
+
+-------------------------------------------------------------------

New:
----
  support-python-311.patch

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

Other differences:
------------------
++++++ python-autopage.spec ++++++
--- /var/tmp/diff_new_pack.ORT30d/_old  2023-01-11 17:14:31.175640143 +0100
+++ /var/tmp/diff_new_pack.ORT30d/_new  2023-01-11 17:14:31.179640167 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-autopage
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@
 License:        Apache-2.0
 URL:            https://github.com/zaneb/autopage
 Source:         
https://files.pythonhosted.org/packages/source/a/autopage/autopage-%{version}.tar.gz
+Patch0:         support-python-311.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}

++++++ support-python-311.patch ++++++
Index: autopage-0.5.1/autopage/tests/test_autopage.py
===================================================================
--- autopage-0.5.1.orig/autopage/tests/test_autopage.py
+++ autopage-0.5.1/autopage/tests/test_autopage.py
@@ -37,6 +37,9 @@ class PagedStreamTest(fixtures.TestWithF
         popen = fixtures.MockPatch('subprocess.Popen')
         self.useFixture(popen)
         self.popen = popen.mock
+        self.encoding = 'UTF-8'
+        if sys.version_info >= (3, 11):
+            self.encoding = 'utf-8'
 
     def test_defaults(self) -> None:
         class TestCommand(command.PagerCommand):
@@ -58,7 +61,7 @@ class PagedStreamTest(fixtures.TestWithF
                 env=get_env.return_value,
                 bufsize=-1,
                 universal_newlines=True,
-                encoding='UTF-8',
+                encoding=self.encoding,
                 errors='strict',
                 stdin=subprocess.PIPE,
                 stdout=None)
@@ -84,7 +87,7 @@ class PagedStreamTest(fixtures.TestWithF
                     env=get_env.return_value,
                     bufsize=-1,
                     universal_newlines=True,
-                    encoding='UTF-8',
+                    encoding=self.encoding,
                     errors='strict',
                     stdin=subprocess.PIPE,
                     stdout=None)
@@ -100,7 +103,7 @@ class PagedStreamTest(fixtures.TestWithF
                 env=get_env.return_value,
                 bufsize=-1,
                 universal_newlines=True,
-                encoding='UTF-8',
+                encoding=self.encoding,
                 errors='strict',
                 stdin=subprocess.PIPE,
                 stdout=None)

Reply via email to