Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sphinxcontrib-httpdomain for 
openSUSE:Factory checked in at 2021-07-20 15:39:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-httpdomain (Old)
 and      /work/SRC/openSUSE:Factory/.python-sphinxcontrib-httpdomain.new.2632 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sphinxcontrib-httpdomain"

Tue Jul 20 15:39:24 2021 rev:23 rq:907156 version:1.7.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-httpdomain/python-sphinxcontrib-httpdomain.changes
  2021-07-10 22:55:08.515462441 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-httpdomain.new.2632/python-sphinxcontrib-httpdomain.changes
        2021-07-20 15:40:07.977544157 +0200
@@ -1,0 +2,6 @@
+Mon Jul 19 13:56:40 UTC 2021 - Matej Cepl <mc...@suse.com>
+
+- Replace missing_force_decode.patch with
+  49-remove_force_decode.patch (gh#sphinx-contrib/httpdomain#49).
+
+-------------------------------------------------------------------

Old:
----
  missing_force_decode.patch

New:
----
  49-remove_force_decode.patch

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

Other differences:
------------------
++++++ python-sphinxcontrib-httpdomain.spec ++++++
--- /var/tmp/diff_new_pack.dWe8Wh/_old  2021-07-20 15:40:08.545545172 +0200
+++ /var/tmp/diff_new_pack.dWe8Wh/_new  2021-07-20 15:40:08.545545172 +0200
@@ -25,9 +25,9 @@
 License:        BSD-2-Clause
 URL:            https://github.com/sphinx-contrib/httpdomain
 Source:         
https://github.com/sphinx-contrib/httpdomain/archive/%{version}.tar.gz
-# PATCH-FIX-UPSTREAM missing_force_decode.patch 
gh#sphinx-contrib/httpdomain#46 mc...@suse.com
-# Add missing force_decode function in case it is missing in the actual Sphinx
-Patch0:         missing_force_decode.patch
+# PATCH-FIX-UPSTREAM 49-remove_force_decode.patch 
gh#sphinx-contrib/httpdomain#49 mc...@suse.com
+# Finally remove use of force_decode function (removed from Sphinx).
+Patch0:         49-remove_force_decode.patch
 BuildRequires:  %{python_module Flask >= 0.11}
 BuildRequires:  %{python_module Sphinx >= 1.5}
 BuildRequires:  %{python_module bottle >= 0.11.0}

++++++ 49-remove_force_decode.patch ++++++
>From f120ce8d1c3089f23c8bfee41e59a4f84044c0c4 Mon Sep 17 00:00:00 2001
From: Florian Masy <flor...@ezdev.fr>
Date: Thu, 24 Jun 2021 21:39:16 +0200
Subject: [PATCH] Remove imports and calls to depracated function force_decode
 who was removed starting with sphinx 4.0

---
 sphinxcontrib/autohttp/bottle.py     | 6 ++----
 sphinxcontrib/autohttp/flask.py      | 1 -
 sphinxcontrib/autohttp/flask_base.py | 4 ----
 sphinxcontrib/autohttp/tornado.py    | 6 ++----
 4 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/sphinxcontrib/autohttp/bottle.py b/sphinxcontrib/autohttp/bottle.py
index d249b30..1e8d709 100644
--- a/sphinxcontrib/autohttp/bottle.py
+++ b/sphinxcontrib/autohttp/bottle.py
@@ -17,7 +17,6 @@
 from docutils.parsers.rst import directives, Directive
 from docutils.statemachine import ViewList
 
-from sphinx.util import force_decode
 from sphinx.util.nodes import nested_parse_with_titles
 from sphinx.util.docstrings import prepare_docstring
 from sphinx.pycode import ModuleAnalyzer
@@ -89,11 +88,10 @@ def make_rst(self):
                 continue
             view = target.callback
             docstring = view.__doc__ or ''
-            if not isinstance(docstring, six.text_type):
-                analyzer = ModuleAnalyzer.for_module(view.__module__)
-                docstring = force_decode(docstring, analyzer.encoding)
+            
             if not docstring and 'include-empty-docstring' not in self.options:
                 continue
+            
             docstring = prepare_docstring(docstring)
             for line in http_directive(method, path, docstring):
                 yield line
diff --git a/sphinxcontrib/autohttp/flask.py b/sphinxcontrib/autohttp/flask.py
index de60c55..761efec 100644
--- a/sphinxcontrib/autohttp/flask.py
+++ b/sphinxcontrib/autohttp/flask.py
@@ -19,7 +19,6 @@
 from docutils.parsers.rst import directives, Directive
 from docutils.statemachine import ViewList
 
-from sphinx.util import force_decode
 from sphinx.util.nodes import nested_parse_with_titles
 from sphinx.util.docstrings import prepare_docstring
 from sphinx.pycode import ModuleAnalyzer
diff --git a/sphinxcontrib/autohttp/flask_base.py 
b/sphinxcontrib/autohttp/flask_base.py
index 782a95d..ba3e7ef 100644
--- a/sphinxcontrib/autohttp/flask_base.py
+++ b/sphinxcontrib/autohttp/flask_base.py
@@ -17,7 +17,6 @@
 
 from docutils.parsers.rst import directives, Directive
 
-from sphinx.util import force_decode
 from sphinx.util.docstrings import prepare_docstring
 from sphinx.pycode import ModuleAnalyzer
 
@@ -236,9 +235,6 @@ def inspect_routes(self, app):
             if view_func and view_func.__doc__:
                 view_doc = view_func.__doc__
 
-            if not isinstance(view_doc, six.text_type):
-                analyzer = ModuleAnalyzer.for_module(view.__module__)
-                view_doc = force_decode(view_doc, analyzer.encoding)
 
             if not view_doc and 'include-empty-docstring' not in self.options:
                 continue
diff --git a/sphinxcontrib/autohttp/tornado.py 
b/sphinxcontrib/autohttp/tornado.py
index 9a38b10..1e529ef 100644
--- a/sphinxcontrib/autohttp/tornado.py
+++ b/sphinxcontrib/autohttp/tornado.py
@@ -18,7 +18,6 @@
 from docutils.parsers.rst import directives, Directive
 from docutils.statemachine import ViewList
 
-from sphinx.util import force_decode
 from sphinx.util.nodes import nested_parse_with_titles
 from sphinx.util.docstrings import prepare_docstring
 from sphinx.pycode import ModuleAnalyzer
@@ -129,11 +128,10 @@ def make_rst(self):
                 continue
 
             docstring = getattr(handler, method).__doc__ or ''
-            #if not isinstance(docstring, unicode):
-            #    analyzer = ModuleAnalyzer.for_module(view.__module__)
-            #    docstring = force_decode(docstring, analyzer.encoding)
+            
             if not docstring and 'include-empty-docstring' not in self.options:
                 continue
+            
             docstring = prepare_docstring(docstring)
             for line in http_directive(method, normalize_path(path), 
docstring):
                 yield line

Reply via email to