Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python36 for openSUSE:Factory checked in at 2022-02-11 23:10:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python36 (Old) and /work/SRC/openSUSE:Factory/.python36.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python36" Fri Feb 11 23:10:20 2022 rev:27 rq:953799 version:3.6.15 Changes: -------- --- /work/SRC/openSUSE:Factory/python36/python36.changes 2021-12-18 20:30:19.438245140 +0100 +++ /work/SRC/openSUSE:Factory/.python36.new.1956/python36.changes 2022-02-11 23:12:24.323465866 +0100 @@ -1,0 +2,5 @@ +Fri Feb 4 18:00:41 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Rename 22198.patch into more descriptive remove-sphinx40-warning.patch. + +------------------------------------------------------------------- Old: ---- 22198.patch New: ---- remove-sphinx40-warning.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python36.spec ++++++ --- /var/tmp/diff_new_pack.fsgjgW/_old 2022-02-11 23:12:25.303468701 +0100 +++ /var/tmp/diff_new_pack.fsgjgW/_new 2022-02-11 23:12:25.307468712 +0100 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -183,8 +183,8 @@ Patch39: ignore_pip_deprec_warn.patch # PATCH-FIX-UPSTREAM stop calling removed Sphinx function gh#python/cpython#13236 Patch40: sphinx-update-removed-function.patch -# PATCH-FIX-UPSTREAM https://github.com/python/cpython/pull/22198 - adopted for 3.6 dmuel...@suse.com -Patch41: 22198.patch +# PATCH-FIX-UPSTREAM remove-sphinx40-warning.patch gh#python/cpython#22198 dmuel...@suse.com +Patch41: remove-sphinx40-warning.patch BuildRequires: automake BuildRequires: fdupes BuildRequires: gmp-devel ++++++ remove-sphinx40-warning.patch ++++++ >From 02f1485b1a26b575ad3a2c957ea279fcff789f63 Mon Sep 17 00:00:00 2001 From: Dong-hee Na <donghee.n...@gmail.com> Date: Fri, 11 Sep 2020 20:41:43 +0900 Subject: [PATCH 1/3] bpo-35293: Remove RemovedInSphinx40Warning --- Doc/tools/extensions/pyspecific.py | 40 ++++++++++++------- .../2020-09-12-17-37-13.bpo-35293._cOwPD.rst | 1 + 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst Index: Python-3.6.13/Doc/tools/extensions/pyspecific.py =================================================================== --- Python-3.6.13.orig/Doc/tools/extensions/pyspecific.py +++ Python-3.6.13/Doc/tools/extensions/pyspecific.py @@ -27,7 +27,12 @@ from sphinx.util.nodes import split_expl from sphinx.writers.html import HTMLTranslator from sphinx.writers.text import TextWriter, TextTranslator from sphinx.writers.latex import LaTeXTranslator -from sphinx.domains.python import PyModulelevel, PyClassmember + +try: + from sphinx.domains.python import PyFunction, PyMethod +except ImportError: + from sphinx.domains.python import PyClassmember as PyMethod + from sphinx.domains.python import PyModulelevel as PyFunction # Support for checking for suspicious markup @@ -142,17 +147,18 @@ class PyDecoratorMixin(object): return False -class PyDecoratorFunction(PyDecoratorMixin, PyModulelevel): +class PyDecoratorFunction(PyDecoratorMixin, PyFunction): def run(self): # a decorator function is a function after all self.name = 'py:function' - return PyModulelevel.run(self) + return PyFunction.run(self) -class PyDecoratorMethod(PyDecoratorMixin, PyClassmember): +# TODO: Use sphinx.domains.python.PyDecoratorMethod when possible +class PyDecoratorMethod(PyDecoratorMixin, PyMethod): def run(self): self.name = 'py:method' - return PyClassmember.run(self) + return PyMethod.run(self) class PyCoroutineMixin(object): @@ -162,19 +168,19 @@ class PyCoroutineMixin(object): return ret -class PyCoroutineFunction(PyCoroutineMixin, PyModulelevel): +class PyCoroutineFunction(PyCoroutineMixin, PyFunction): def run(self): self.name = 'py:function' - return PyModulelevel.run(self) + return PyFunction.run(self) -class PyCoroutineMethod(PyCoroutineMixin, PyClassmember): +class PyCoroutineMethod(PyCoroutineMixin, PyMethod): def run(self): self.name = 'py:method' - return PyClassmember.run(self) + return PyMethod.run(self) -class PyAbstractMethod(PyClassmember): +class PyAbstractMethod(PyMethod): def handle_signature(self, sig, signode): ret = super(PyAbstractMethod, self).handle_signature(sig, signode) @@ -184,7 +190,7 @@ class PyAbstractMethod(PyClassmember): def run(self): self.name = 'py:method' - return PyClassmember.run(self) + return PyMethod.run(self) # Support for documenting version of removal in deprecations Index: Python-3.6.13/Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst =================================================================== --- /dev/null +++ Python-3.6.13/Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst @@ -0,0 +1 @@ +Fix RemovedInSphinx40Warning when building the documentation. Patch by Dong-hee Na.