Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python38 for openSUSE:Factory 
checked in at 2021-06-23 17:38:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python38 (Old)
 and      /work/SRC/openSUSE:Factory/.python38.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python38"

Wed Jun 23 17:38:05 2021 rev:15 rq:900833 version:3.8.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python38/python38.changes        2021-06-11 
22:30:02.238064006 +0200
+++ /work/SRC/openSUSE:Factory/.python38.new.2625/python38.changes      
2021-06-23 17:38:07.664462863 +0200
@@ -1,0 +2,6 @@
+Fri Jun 18 22:45:17 UTC 2021 - Matej Cepl <[email protected]>
+
+- Add bpo44426-complex-keyword-sphinx.patch allowing generating
+  documentation with Sphinx 4 (bpo#44426).
+
+-------------------------------------------------------------------

New:
----
  bpo44426-complex-keyword-sphinx.patch

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

Other differences:
------------------
++++++ python38.spec ++++++
--- /var/tmp/diff_new_pack.ywChjJ/_old  2021-06-23 17:38:08.568464108 +0200
+++ /var/tmp/diff_new_pack.ywChjJ/_new  2021-06-23 17:38:08.572464113 +0200
@@ -151,6 +151,10 @@
 Patch29:        bpo-31046_ensurepip_honours_prefix.patch
 # PATCH-FIX-UPSTREAM stop calling removed Sphinx function 
gh#python/cpython#13236
 Patch32:        sphinx-update-removed-function.patch
+# PATCH-FIX-UPSTREAM bpo44426-complex-keyword-sphinx.patch bpo#44426 
[email protected]
+# Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'
+# The same goes for 'default', which I had to change to 'def_size'
+Patch33:        bpo44426-complex-keyword-sphinx.patch
 BuildRequires:  autoconf-archive
 BuildRequires:  automake
 BuildRequires:  fdupes
@@ -406,6 +410,7 @@
 %patch28 -p1
 %patch29 -p1
 %patch32 -p1
+%patch33 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac


++++++ bpo44426-complex-keyword-sphinx.patch ++++++
>From 29b463879b71a3ade67541c34daafb2929269fc4 Mon Sep 17 00:00:00 2001
From: Mark Dickinson <[email protected]>
Date: Wed, 16 Jun 2021 18:43:49 +0100
Subject: [PATCH] bpo-44426: Use of 'complex' as a C variable name confuses
 Sphinx; change it to 'num'. (GH-26744) (cherry picked from commit
 7247f6f433846c6e37308a550e8e5eb6be379856)

Co-authored-by: Mark Dickinson <[email protected]>
---
 Doc/c-api/complex.rst |    4 ++--
 Doc/c-api/object.rst  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/Doc/c-api/complex.rst
+++ b/Doc/c-api/complex.rst
@@ -46,9 +46,9 @@ pointers.  This is consistent throughout
    :c:type:`Py_complex` representation.
 
 
-.. c:function:: Py_complex _Py_c_neg(Py_complex complex)
+.. c:function:: Py_complex _Py_c_neg(Py_complex num)
 
-   Return the negation of the complex number *complex*, using the C
+   Return the negation of the complex number *num*, using the C
    :c:type:`Py_complex` representation.
 
 
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -483,12 +483,12 @@ Object Protocol
    returned.  This is the equivalent to the Python expression ``len(o)``.
 
 
-.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t default)
+.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t 
def_size)
 
    Return an estimated length for the object *o*. First try to return its
    actual length, then an estimate using :meth:`~object.__length_hint__`, and
    finally return the default value. On error return ``-1``. This is the
-   equivalent to the Python expression ``operator.length_hint(o, default)``.
+   equivalent to the Python expression ``operator.length_hint(o, def_size)``.
 
    .. versionadded:: 3.4
 

Reply via email to