Thread View: linux.debian.bugs.rc
1 messages
1 total messages
Started by Debian Bug Tracking System
Sat, 24 Oct 2026 23:10
Bug#1143845: marked as done (cython: functionality errors when built against python 3.15)
Author: Debian Bug Tracking System
Date: Sat, 24 Oct 2026 23:10
Date: Sat, 24 Oct 2026 23:10
870 lines
36071 bytes
36071 bytes
This is a multi-part message in MIME format...
------------=_1792883342-447222-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sat, 24 Oct 2026 23:07:29 +0000
with message-id <E1xKkpl-000000085gn-29FU@fasolo.debian.org>
and subject line Bug#1143845: fixed in cython 3.1.6+dfsg-4
has caused the Debian Bug report #1143845,
regarding cython: functionality errors when built against python 3.15
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1143845: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1143845
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1792883342-447222-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 7 Aug 2026 08:30:03 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-20.9 required=4.0 tests=BAYES_00,
BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,MD5_SHA1_SUM,PGPSIGNATURE,
SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 320; hammy, 150; neutral, 565; spammy,
0. spammytokens: hammytokens:0.000-+--autopkgtest,
0.000-+--H*ct:application, 0.000-+--H*ct:protocol,
0.000-+--H*ct:micalg, 0.000-+--H*ct:signed
Return-path: <maxy@gnuservers.com.ar>
Received: from nefele.gnuservers.com.ar ([2001:41d0:8:bc55::1]:40102)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <maxy@gnuservers.com.ar>)
id 1wsFxq-0067wu-1l
for submit@bugs.debian.org;
Fri, 07 Aug 2026 08:30:03 +0000
Authentication-Results: nefele.gnuservers.com.ar; dmarc=fail (p=quarantine dis=none) header.from=gnuservers.com.ar
Authentication-Results: nefele.gnuservers.com.ar; dkim=none;
dkim-atps=neutral
Received: from gnuservers.com.ar (unknown [IPv6:2a02:f90:e18c:b700:236a:6aa4:c597:92])
by nefele.gnuservers.com.ar (Postfix) with ESMTPSA id CD9BF1AEC3D4;
Fri, 07 Aug 2026 08:29:53 +0000 (UTC)
Date: Fri, 7 Aug 2026 10:29:53 +0200
From: Maximiliano Curia <maxy@gnuservers.com.ar>
To: submit@bugs.debian.org
Cc: debian-python@lists.debian.org
Subject: cython: functionality errors when built against python 3.15
Message-ID: <anWXetQth3dY91mQ@hecuba.gnuservers.com.ar>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="VlMQcs7KBfd8nqbx"
Content-Disposition: inline
X-Greylist: delayed 148140 seconds by postgrey-1.37 at buxtehude; Fri, 07 Aug 2026 08:30:02 UTC
Delivered-To: submit@bugs.debian.org
--VlMQcs7KBfd8nqbx
Content-Type: multipart/mixed; boundary="y+9M2GRvnlIOC+is"
Content-Disposition: inline
--y+9M2GRvnlIOC+is
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Package: src:cython
Version: 3.1.6+dfsg-3
User: debian-python@lists.debian.org
Usertags: python3.15
Hi!
While rebuilding packages against python 3.15 we found that cython
produces some errors when used against it. Some of this caught by the
autopkgtest
(https://debusine.debian.net/debian/r-python-python3.15/work-request/972899=
/)
=2E
I'm attaching a debdiff that adds the upstream fixes related to python
3.15, these fix the build against python 3.15, these fixes are in the
history of the upcoming 3.3.0 release.
I'll also send a merge request for this changes to salsa which might be
easier to work with depending on your workflow.
Happy hacking,
--=20
"The most important thing in the programming language is the name. A langua=
ge=20
will not succeed without a good name. I have recently invented a very good=
=20
name and now I am looking for a suitable language."
-- Donald Knuth
Saludos /\/\ /\ >< `/
--y+9M2GRvnlIOC+is
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=cython_3.1.6+dfsg-3.1.debdiff
Content-Transfer-Encoding: quoted-printable
diff -Nru cython-3.1.6+dfsg/debian/changelog cython-3.1.6+dfsg/debian/chang=
elog
--- cython-3.1.6+dfsg/debian/changelog 2026-06-29 01:19:58.000000000 +0200
+++ cython-3.1.6+dfsg/debian/changelog 2026-08-06 12:49:22.000000000 +0200
@@ -1,3 +1,14 @@
+cython (3.1.6+dfsg-3.1) UNRELEASED; urgency=3Dmedium
+
+ * Non-maintainer upload.
+ * Backport upstream fixes for Python 3.15 support:
+ - py315-fix-tests.patch,
+ - py315-update-builtins.patch
+ - py315-array-declarations.patch
+ - py315-cpdef-enum-negatives.patch
+
+ -- Maximiliano Curia <maxy@debian.org> Thu, 06 Aug 2026 12:49:22 +0200
+
cython (3.1.6+dfsg-3) unstable; urgency=3Dmedium
=20
* Team upload.
diff -Nru cython-3.1.6+dfsg/debian/patches/py315-array-declarations.patch c=
ython-3.1.6+dfsg/debian/patches/py315-array-declarations.patch
--- cython-3.1.6+dfsg/debian/patches/py315-array-declarations.patch 1970-01=
-01 01:00:00.000000000 +0100
+++ cython-3.1.6+dfsg/debian/patches/py315-array-declarations.patch 2026-08=
-06 12:49:22.000000000 +0200
@@ -0,0 +1,54 @@
+From: da-woods <dw-git@d-woods.co.uk>
+Date: Fri, 8 May 2026 16:30:31 +0100
+Subject: Adapt array module declarations to Python 3.15 changes
+
+In https://github.com/python/cpython/issues/148675 the format of the
+"arraydescr" struct was changed, which meant that our representation was
+outdated and crashed.
+
+The new format is partly compatible and we can provide help to use either e
+of the two formats, but user code that manually accesses the internals of
+the "arraydescr" needs to be adapted in order to make it work correctly.
+
+Origin: upstream, https://github.com/cython/cython/commit/a470483da2274ca2=
72e70280fa27b5f7e90c9e09
+Bug: https://github.com/cython/cython/issues/7659
+Applied-Upstream: 3.2.9
+Last-Update: 2026-08-06
+---
+diff --git a/Cython/Includes/cpython/array.pxd b/Cython/Includes/cpython/a=
rray.pxd
+index b5e888089..de1f7d51e 100644
+--- a/Cython/Includes/cpython/array.pxd
++++ b/Cython/Includes/cpython/array.pxd
+@@ -70,7 +70,9 @@ cdef extern from *: # Hard-coded utility code hack.
+ ctypedef object GETF(array a, Py_ssize_t ix)
+ ctypedef object SETF(array a, Py_ssize_t ix, object o)
+ ctypedef struct arraydescr: # [object arraydescr]:
+- char typecode
++ char typecode "typecode_char" # backwards compatibility only
++ char typecode_char # Python <=3D 3.14
++ char typecode_array[3] # Python 3.15+
+ int itemsize
+ GETF getitem # PyObject * (*getitem)(struct arrayobject *,=
Py_ssize_t);
+ SETF setitem # int (*setitem)(struct arrayobject *, Py_ssi=
ze_t, PyObject *);
+diff --git a/Cython/Utility/arrayarray.h b/Cython/Utility/arrayarray.h
+index d410e66c8..507d97a7f 100644
+--- a/Cython/Utility/arrayarray.h
++++ b/Cython/Utility/arrayarray.h
+@@ -23,11 +23,16 @@
+ // below. That's defined later because the appropriate get and set
+ // functions aren't visible yet.
+ typedef struct arraydescr {
+- int typecode;
++ union {
++ char typecode_char; // pre-3.15
++ char typecode_array[3]; // post-3.15
++ };
+ int itemsize;
+ PyObject * (*getitem)(struct arrayobject *, Py_ssize_t);
+ int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *);
++#if PY_VERSION_HEX <=3D 0x030F00a8
+ char *formats;
++#endif
+ } arraydescr;
+=20
+=20
diff -Nru cython-3.1.6+dfsg/debian/patches/py315-cpdef-enum-negatives.patch=
cython-3.1.6+dfsg/debian/patches/py315-cpdef-enum-negatives.patch
--- cython-3.1.6+dfsg/debian/patches/py315-cpdef-enum-negatives.patch 1970-=
01-01 01:00:00.000000000 +0100
+++ cython-3.1.6+dfsg/debian/patches/py315-cpdef-enum-negatives.patch 2026-=
08-06 12:49:22.000000000 +0200
@@ -0,0 +1,214 @@
+From: da-woods <dw-git@d-woods.co.uk>
+Date: Mon, 20 Jul 2026 12:23:34 +0100
+Subject: Fix cpdef enums with negative values on Python 3.15 (#7703)
+
+Fixes #7701
+
+It seems like Python 3.15 has tightened the requirements for `IntFlag`
+and now converts negative numbers into positive numbers (because it
+doesn't make sense to do bitwise operations on negative numbers).
+
+We only really use `IntFlag` because people *might* want to do bitwise
+operations with wrapped enums and it gives them a slightly better
+experience. I've created a new enum-type that's is less strict than
+`IntEnum` and which does allow unknown values. However for simplicity
+I'm skipped all the `IntFlag` flag-like behaviour.
+
+Origin: upstream, https://github.com/cython/cython/commit/42830b85c8ae7489=
dac9d143f521e392d966d8c8
+Bug: https://github.com/cython/cython/issues/7701
+Last-Update: 2026-08-06
+---
+diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py
+index 4dca40ffd..be131968d 100644
+--- a/Cython/Compiler/Code.py
++++ b/Cython/Compiler/Code.py
+@@ -562,7 +562,7 @@ class UtilityCodeBase(AbstractUtilityCode):
+ return cls(**kwargs)
+=20
+ @classmethod
+- def load_cached(cls, utility_code_name, from_file, __cache=3D{}):
++ def load_cached(cls, utility_code_name, from_file, *, __cache=3D{}):
+ """
+ Calls .load(), but using a per-type cache based on utility name a=
nd file name.
+ """
+diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
+index 2f67d774c..f5a162224 100644
+--- a/Cython/Compiler/PyrexTypes.py
++++ b/Cython/Compiler/PyrexTypes.py
+@@ -4480,6 +4480,8 @@ class CppScopedEnumType(CType, EnumMixin):
+=20
+ def create_type_wrapper(self, env):
+ from .UtilityCode import CythonUtilityCode
++ env.use_utility_code(CythonUtilityCode.load_cached(
++ "CppScopedEnumBase", "CpdefEnums.pyx"))
+ rst =3D CythonUtilityCode.load(
+ "CppScopedEnumType", "CpdefEnums.pyx",
+ context=3D{
+@@ -4595,6 +4597,8 @@ class CEnumType(CIntLike, CType, EnumMixin):
+ enum_to_pyint_func =3D self.to_py_function
+ self.to_py_function =3D old_to_py_function # we don't actually w=
ant to overwrite this
+=20
++ env.use_utility_code(CythonUtilityCode.load_cached(
++ "EnumBase", "CpdefEnums.pyx"))
+ env.use_utility_code(CythonUtilityCode.load(
+ "EnumType", "CpdefEnums.pyx",
+ context=3D{"name": self.name,
+diff --git a/Cython/Utility/CpdefEnums.pyx b/Cython/Utility/CpdefEnums.pyx
+index efd391f61..a69a78e84 100644
+--- a/Cython/Utility/CpdefEnums.pyx
++++ b/Cython/Utility/CpdefEnums.pyx
+@@ -1,46 +1,62 @@
+ #################### EnumBase ####################
+=20
+-cimport cython
+-
+ cdef extern from *:
+- int PY_VERSION_HEX
++ object PyImport_Import(object)
++
++cdef object __Pyx_FlexibleEnumBase
++class __Pyx_FlexibleEnumBase(PyImport_Import("enum").IntEnum):
++ @classmethod
++ def _missing_(cls, value):
++ # This is a trimmed down version of "EnumFlag._missing_" with
++ # the flag-specific details removed.
++ pseudo_member =3D int.__new__(cls, value)
++ if not hasattr(pseudo_member, '_value_'):
++ pseudo_member._value_ =3D value
++ pseudo_member._name_ =3D None
++ # _value2member_map_ is an undocumented detail of enum so don't f=
ail
++ # if we can't use it to cache pseudo-members
++ value2member_map =3D getattr(cls, '_value2member_map_', None)
++ if value2member_map is not None:
++ pseudo_member =3D value2member_map.setdefault(value, pseudo_m=
ember)
++ return pseudo_member
++
++ def __repr__(self):
++ if self._name_ is None:
++ # arbitrary value pseudo member
++ return f"<{self.__class__.__name__}: {self._value_!r}>"
++ return super().__repr__()
+=20
+-# @cython.internal
+-cdef object __Pyx_EnumBase
+-from enum import IntEnum as __Pyx_EnumBase
+-
+-cdef object __Pyx_FlagBase
+-from enum import IntFlag as __Pyx_FlagBase
+=20
+ #################### EnumType ####################
+-#@requires: EnumBase
++# requires EnumBase but this is done manually to avoid duplication
+=20
+ cdef extern from *:
+ object {{enum_to_pyint_func}}({{name}} value)
+=20
+-# create new IntFlag() - the assumption is that C enums are sufficiently =
commonly
+-# used as flags that this is the most appropriate base class
+-{{name}} =3D __Pyx_FlagBase('{{name}}', [
++
++# Create new IntFlag()-like enums:
++# the assumption is that C enums are sufficiently commonly
++# used as flags that this is the most appropriate base class.
++# On Python 3.15+ IntFlag doesn't accept negative numbers however.
++{{name}} =3D __Pyx_FlexibleEnumBase('{{name}}', [
+ {{for item in items}}
+ ('{{item}}', {{enum_to_pyint_func}}({{item}})),
+ {{endfor}}
+ # Try to look up the module name dynamically if possible
+ ], module=3Dglobals().get("__module__", '{{static_modname}}'))
+=20
+-if PY_VERSION_HEX >=3D 0x030B0000:
+- # Python 3.11 starts making the behaviour of flags stricter
+- # (only including powers of 2 when iterating). Since we're using
+- # "flag" because C enums *might* be used as flags, not because
+- # we want strict flag behaviour, manually undo some of this.
+- {{name}}._member_names_ =3D list({{name}}.__members__)
+-
+ {{if enum_doc is not None}}
+ {{name}}.__doc__ =3D {{ repr(enum_doc) }}
+ {{endif}}
+=20
+=20
++#################### CppScopedEnumBase ####################
++
++cdef object __Pyx_EnumBase
++from enum import IntEnum as __Pyx_EnumBase
++
+ #################### CppScopedEnumType ####################
+-#@requires: EnumBase
++# requires CppScopedEnumBase (but this is done manually to avoid duplicat=
ion)
+ cdef dict __Pyx_globals =3D globals()
+=20
+ __Pyx_globals["{{name}}"] =3D __Pyx_EnumBase('{{name}}', [
+diff --git a/tests/run/cpdef_enums.pyx b/tests/run/cpdef_enums.pyx
+index 2cff7c2b5..8e6d700b9 100644
+--- a/tests/run/cpdef_enums.pyx
++++ b/tests/run/cpdef_enums.pyx
+@@ -141,6 +141,23 @@ cpdef enum CyDefinedHasDuplicates3:
+ CY_DUP3_B =3D 0
+ CY_DUP3_C # =3D 1
+=20
++cdef extern from *:
++ """
++ enum ExternHasNegatives {
++ EX_NEG_A =3D -1,
++ EX_NEG_B =3D 1,
++ EX_NEG_C =3D 2
++ };
++ """
++ cpdef enum ExternHasNegatives:
++ EX_NEG_A
++ EX_NEG_B
++ EX_NEG_C
++
++cpdef enum CyDefinedHasNegatives:
++ CY_NEG_A =3D -1
++ CY_NEG_B =3D 1
++ CY_NEG_C =3D 2
+=20
+ def test_as_variable_from_cython():
+ """
+@@ -285,3 +302,42 @@ def test_special_attributes():
+ cpdefPyxDocLineEnum.__module__,
+ cpdefPyxDocLineEnum.__doc__,
+ )
++
++
++def test_extern_negatives(ExternHasNegatives val=3DExternHasNegatives.EX_=
NEG_A):
++ """
++ >>> val =3D test_extern_negatives()
++ >>> type(val) =3D=3D ExternHasNegatives
++ True
++ >>> val < 0
++ True
++
++ # It's still possible to do bitwise operations of numbers and convert=
them to/from Cython
++ # whether Cython chooses to represent it as an IntEnum or an IntFlag.
++ >>> test_extern_negatives(ExternHasNegatives.EX_NEG_B) =3D=3D 1 =3D=
=3D ExternHasNegatives.EX_NEG_B
++ True
++ >>> test_extern_negatives(3) =3D=3D 3 =3D=3D (ExternHasNegatives.EX_N=
EG_B | ExternHasNegatives.EX_NEG_C)
++ True
++ >>> test_extern_negatives(ExternHasNegatives.EX_NEG_A) =3D=3D -1 =3D=
=3D ExternHasNegatives.EX_NEG_A
++ True
++ """
++ return val
++
++def test_cy_negatives(CyDefinedHasNegatives val=3DCyDefinedHasNegatives.C=
Y_NEG_A):
++ """
++ >>> val =3D test_cy_negatives()
++ >>> type(val) =3D=3D CyDefinedHasNegatives
++ True
++ >>> val < 0
++ True
++
++ # It's still possible to do bitwise operations of numbers and convert=
them to/from Cython
++ # whether Cython chooses to represent it as an IntEnum or an IntFlag.
++ >>> test_cy_negatives(CyDefinedHasNegatives.CY_NEG_B) =3D=3D 1 =3D=3D=
CyDefinedHasNegatives.CY_NEG_B
++ True
++ >>> test_cy_negatives(3) =3D=3D 3 =3D=3D (CyDefinedHasNegatives.CY_NE=
G_B | CyDefinedHasNegatives.CY_NEG_C)
++ True
++ >>> test_cy_negatives(CyDefinedHasNegatives.CY_NEG_A) =3D=3D -1 =3D=
=3D CyDefinedHasNegatives.CY_NEG_A
++ True
++ """
++ return val
diff -Nru cython-3.1.6+dfsg/debian/patches/py315-fix-tests.patch cython-3.1=
=2E6+dfsg/debian/patches/py315-fix-tests.patch
--- cython-3.1.6+dfsg/debian/patches/py315-fix-tests.patch 1970-01-01 01:00=
:00.000000000 +0100
+++ cython-3.1.6+dfsg/debian/patches/py315-fix-tests.patch 2026-08-06 12:49=
:22.000000000 +0200
@@ -0,0 +1,93 @@
+From: Stefan Behnel <stefan_ml@behnel.de>
+Date: Sat, 24 Jan 2026 20:33:29 +0100
+Subject: Fix tests in Py3.15
+
+Origin: upstream, https://github.com/cython/cython/commit/46ee38dd0ed8d5fe=
90fb31690e6e9a39ba1e2a4b
+Applied-Upstream: 3.2.9
+Last-Update: 2026-08-06
+---
+diff --git a/tests/run/strmethods.pyx b/tests/run/strmethods.pyx
+index 7714eb7f9..45c516c6d 100644
+--- a/tests/run/strmethods.pyx
++++ b/tests/run/strmethods.pyx
+@@ -152,9 +152,9 @@ def mod_format_tuple(*values):
+ """
+ >>> mod_format_tuple('sa') =3D=3D 'abcsadef' or mod_format(format1,=
'sa')
+ True
+- >>> mod_format_tuple()
++ >>> mod_format_tuple() # doctest: +ELLIPSIS
+ Traceback (most recent call last):
+- TypeError: not enough arguments for format string
++ TypeError: not enough arguments for format string...
+ """
+ assert cython.typeof('abc%sdef' % values) =3D=3D "str object", cython=
=2Etypeof('abc%sdef' % values)
+ return 'abc%sdef' % values
+diff --git a/tests/run/test_unicode.pyx b/tests/run/test_unicode.pyx
+index 937039218..2139b7779 100644
+--- a/tests/run/test_unicode.pyx
++++ b/tests/run/test_unicode.pyx
+@@ -1446,11 +1446,43 @@ class UnicodeTest(CommonTest,
+ self.assertEqual('%X' % letter_m, '6D')
+ self.assertEqual('%o' % letter_m, '155')
+ self.assertEqual('%c' % letter_m, 'm')
+- self.assertRaisesRegex(TypeError, '%x format: an integer is requi=
red, not float', operator.mod, '%x', 3.14),
+- self.assertRaisesRegex(TypeError, '%X format: an integer is requi=
red, not float', operator.mod, '%X', 2.11),
+- self.assertRaisesRegex(TypeError, '%o format: an integer is requi=
red, not float', operator.mod, '%o', 1.79),
+- self.assertRaisesRegex(TypeError, '%x format: an integer is requi=
red, not PseudoFloat', operator.mod, '%x', pi),
+- self.assertRaises(TypeError, operator.mod, '%c', pi),
++ """
++ # Error message differs in Py3.15+
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %x requires an integer, not float'):
++ '%x' % 3.14
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %X requires an integer, not float'):
++ '%X' % 2.11
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %o requires an integer, not float'):
++ '%o' % 1.79
++ with self.assertRaisesRegex(TypeError,
++ r'format argument: %x requires an integer, not .*\.Pseudo=
Float'):
++ '%x' % pi
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %x requires an integer, not complex'):
++ '%x' % 3j
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %X requires an integer, not complex'):
++ '%X' % 2j
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %o requires an integer, not complex'):
++ '%o' % 1j
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %u requires a real number, not complex'=
):
++ '%u' % 3j
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %i requires a real number, not complex'=
):
++ '%i' % 2j
++ with self.assertRaisesRegex(TypeError,
++ 'format argument: %d requires a real number, not complex'=
):
++ '%d' % 1j
++ with self.assertRaisesRegex(TypeError,
++ r'format argument: %c requires an integer or a unicode ch=
aracter, '
++ r'not .*\.PseudoFloat'):
++ '%c' % pi
++ """
+=20
+ def test_formatting_with_enum(self):
+ # issue18780
+diff --git a/tests/run/unicodemethods.pyx b/tests/run/unicodemethods.pyx
+index f893a7100..7aa2317b0 100644
+--- a/tests/run/unicodemethods.pyx
++++ b/tests/run/unicodemethods.pyx
+@@ -581,9 +581,9 @@ def mod_format_tuple(*values):
+ """
+ >>> mod_format_tuple('sa') =3D=3D 'abcsadef' or mod_format(format1,=
'sa')
+ True
+- >>> mod_format_tuple()
++ >>> mod_format_tuple() # doctest: +ELLIPSIS
+ Traceback (most recent call last):
+- TypeError: not enough arguments for format string
++ TypeError: not enough arguments for format string...
+ """
+ assert cython.typeof(u'abc%sdef' % values) =3D=3D "str object", cytho=
n.typeof(u'abc%sdef' % values)
+ return u'abc%sdef' % values
diff -Nru cython-3.1.6+dfsg/debian/patches/py315-update-builtins.patch cyth=
on-3.1.6+dfsg/debian/patches/py315-update-builtins.patch
--- cython-3.1.6+dfsg/debian/patches/py315-update-builtins.patch 1970-01-01=
01:00:00.000000000 +0100
+++ cython-3.1.6+dfsg/debian/patches/py315-update-builtins.patch 2026-08-06=
12:49:22.000000000 +0200
@@ -0,0 +1,83 @@
+From: Stefan Behnel <stefan_ml@behnel.de>
+Date: Wed, 29 Apr 2026 05:40:07 +0200
+Subject: Update builtins to Python 3.15b1
+
+ 736a2c360 Update builtins to Py3.15.0a6.
+ 42d13596c Update builtins to Py3.15.0a6+.
+ 414ef7834 Update builtins for Python 3.15b1.
+
+Origin: upstrea, https://github.com/cython/cython/commit/414ef78348a6aa1f3=
abd310ded388a10348b67c9
+Bug: https://github.com/cython/cython/issues/6405
+Applied-Upstream: 3.2.9
+Last-Update: 2026-08-06
+---
+diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py
+index 4dca40ffd..b0960d5fe 100644
+--- a/Cython/Compiler/Code.py
++++ b/Cython/Compiler/Code.py
+@@ -54,7 +54,7 @@ basicsize_builtins_map =3D {
+ }
+=20
+ # Builtins as of Python version ...
+-KNOWN_PYTHON_BUILTINS_VERSION =3D (3, 13, 0, 'alpha', 5)
++KNOWN_PYTHON_BUILTINS_VERSION =3D (3, 15, 0, 'beta', 1)
+ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ 'ArithmeticError',
+ 'AssertionError',
+@@ -84,6 +84,7 @@ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ 'FutureWarning',
+ 'GeneratorExit',
+ 'IOError',
++ 'ImportCycleError',
+ 'ImportError',
+ 'ImportWarning',
+ '_IncompleteInputError',
+@@ -135,6 +136,7 @@ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ 'ZeroDivisionError',
+ '__build_class__',
+ '__debug__',
++ '__lazy_import__',
+ '__import__',
+ 'abs',
+ 'aiter',
+@@ -165,6 +167,7 @@ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ 'filter',
+ 'float',
+ 'format',
++ 'frozendict',
+ 'frozenset',
+ 'getattr',
+ 'globals',
+@@ -199,6 +202,7 @@ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ 'repr',
+ 'reversed',
+ 'round',
++ 'sentinel',
+ 'set',
+ 'setattr',
+ 'slice',
+@@ -216,6 +220,11 @@ KNOWN_PYTHON_BUILTINS =3D frozenset([
+ uncachable_builtins =3D [
+ # Global/builtin names that cannot be cached because they may or may =
not
+ # be available at import time, for various reasons:
++ ## Python 3.15+
++ 'frozendict',
++ 'sentinel',
++ 'ImportCycleError',
++ '__lazy_import__',
+ ## Python 3.13+
+ '_IncompleteInputError',
+ 'PythonFinalizationError',
+@@ -226,11 +235,10 @@ uncachable_builtins =3D [
+ 'aiter',
+ 'anext',
+ 'EncodingWarning',
+- ## - Py3.7+
+- 'breakpoint', # might deserve an implementation in Cython
+ ## - platform specific
+ 'WindowsError',
+ ## - others
++ 'breakpoint', # Probably best left alone.
+ '_', # e.g. used by gettext
+ ]
+=20
diff -Nru cython-3.1.6+dfsg/debian/patches/series cython-3.1.6+dfsg/debian/=
patches/series
--- cython-3.1.6+dfsg/debian/patches/series 2026-06-28 22:15:28.000000000 +=
0200
+++ cython-3.1.6+dfsg/debian/patches/series 2026-08-06 12:49:22.000000000 +=
0200
@@ -1,3 +1,7 @@
honour_SOURCE_DATE_EPOCH_for_copyright_year
debup_workaround_verify_resolution_GH1533
disable_tests.patch
+py315-fix-tests.patch
+py315-update-builtins.patch
+py315-array-declarations.patch
+py315-cpdef-enum-negatives.patch
--y+9M2GRvnlIOC+is--
--VlMQcs7KBfd8nqbx
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmp1l3oACgkQxxl2mbKb
Iyr5eg//fpmyT3bIKUsZ2mXK1nHZwemPXNR80Z6T4lNec5g+iIDAhiKPatrSyZ4x
JbHWPCbPExnXJZiv9rJPajE00kEENtEyaYIycwSvC2lFAHO5F2rJTQELfygSzbhE
SveVLB4rjqqXhyN9CZac07Iqfk747nuMBgkxIf2BZc3bA+SR1ZQoc3FS4TE2BYBG
zMWt+foGDRsLchpax4BfpAxDAWORjU2npKy9dE3C509vIOg4+OG8p9hlSpHT8ZwA
+WbbjeDlDFJAUMReo6uQcyHtMUQ3KPRfw7iOvlu1wnehqq1NmTcdyzBAMvaR4Dt9
fwcHyZ/nwvN7FMgfm2CoXOpl2ITpySdpfTK99colaz63lWmtZ2G7n//AXotuVc0V
xJuUgxLL/crJ6JBZoq5eNXqYnCgFg/F7J1DV5b657P0qWu//BNpqasSBdUIB0mrs
dakPmXnAH/e/I2uPEuHVctvJkGRfCzIsa5WuZOQf+MOeW3GvUVazj0TVTjq0umPz
lCY04FVjrHyEwRT8zOu86g2pbbiuLuuJW5+KMBhXWCUZfgXeCDhVDpcxXl1KuaJ9
zzJzX49nyS+e9Gn9hCwUx1hKoZUq7XZGyoLw/pQgQAtFSPi8iTexwk7KyUl152Io
XjdoZ42s0AdgpEru3hfE/3FkGJ4BcLZAs35DXaLdqjbB5oVT44Q=
=56Dv
-----END PGP SIGNATURE-----
--VlMQcs7KBfd8nqbx--
------------=_1792883342-447222-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1143845-close) by bugs.debian.org; 24 Oct 2026 23:07:31 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-114.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,
HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_PASS,SPF_PASS,
USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 100; hammy, 150; neutral, 153; spammy,
0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:48422)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xKkpo-001rwS-0r
for 1143845-close@bugs.debian.org;
Sat, 24 Oct 2026 23:07:31 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xKkpm-005t4u-16
for 1143845-close@bugs.debian.org;
Sat, 24 Oct 2026 23:07:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
:Content-Description:In-Reply-To:References;
bh=C+K0ZL4hBLBQAwZHCKY2UOvjUn6EyqNKXHsN5Iw9Cgg=; b=nDm72deBB4b1IlL97KVBJkw47I
RtMyKtN1AFW/XOo4ZNgFTEZl7kIGxbZ8Fi8xiR41sTXP5yqmFVO29ZqWjtGTHSWQnqw5caghzAq+6
3ZXgGehw0lTOmshPXRVath/gUmYO4DxjUuzS4vXpd28s9UDNEjtKaFzluvloS/hfY4Od7zzwkn+23
Ij9Nzxb3GScmnSCjxSxVo/vv3vfw9InBGT63upbUwcq10j/FztRhu/G/m9ugIbQL8aQxFGknuCxd7
LnsDXv8VLsRec8UJw8mTGeCw5mjgdZCtsF/2ypqTDnRpFnYiL7eAVJgodfo5ZOnPWv+9/h3VTzD2v
4AcY4GsQ==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xKkpl-000000085gn-29FU;
Sat, 24 Oct 2026 23:07:29 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Boyuan Yang <byang@debian.org>
To: 1143845-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: cython
Debian: DAK
Debian-Changes: cython_3.1.6+dfsg-4_source.changes
Debian-Source: cython
Debian-Version: 3.1.6+dfsg-4
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1143845: fixed in cython 3.1.6+dfsg-4
Content-Type: multipart/signed; micalg="pgp-sha256";
protocol="application/pgp-signature";
boundary="===============8012229125225029130=="
Message-Id: <E1xKkpl-000000085gn-29FU@fasolo.debian.org>
Date: Sat, 24 Oct 2026 23:07:29 +0000
--===============8012229125225029130==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Source: cython
Source-Version: 3.1.6+dfsg-4
Done: Boyuan Yang <byang@debian.org>
We believe that the bug you reported is fixed in the latest version of
cython, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1143845@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated cython package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 24 Oct 2026 12:34:39 -0400
Source: cython
Architecture: source
Version: 3.1.6+dfsg-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1143845
Changes:
cython (3.1.6+dfsg-4) unstable; urgency=3Dmedium
.
* Team upload.
* Backport Python 3.15 compatibility fixes. (Closes: #1143845)
* debian/patches/46ee38dd0ed8d5fe90fb31690e6e9a39ba1e2a4b.patch: Adapt
string formatting tests to Python 3.15 error messages.
* debian/patches/736a2c3603363b64fc7639ba050982d9609b7750.patch:
Recognize lazy-import builtins from Python 3.15.
* debian/patches/42d13596c8a531e83a337e014fa7ef2f4d162ded.patch:
Recognize frozendict from Python 3.15.
* debian/patches/414ef78348a6aa1f3abd310ded388a10348b67c9.patch:
Recognize sentinel from Python 3.15 and avoid caching its new
builtins on older Python versions.
* debian/patches/a470483da2274ca272e70280fa27b5f7e90c9e09.patch: Adapt
array declarations to the Python 3.15 layout.
* debian/patches/42830b85c8ae7489dac9d143f521e392d966d8c8.patch:
Preserve negative cpdef enum values on Python 3.15.
Checksums-Sha1:
1c744828f19b6174c11b8c50438bccf6c64592ea 3039 cython_3.1.6+dfsg-4.dsc
87eeb02e973b5d62adbeaa3461710efe10ed0ec8 2557448 cython_3.1.6+dfsg.orig.tar.=
xz
3e6d0b160309c1ee9ae3c41dba510da0f5a26d5c 33328 cython_3.1.6+dfsg-4.debian.ta=
r.xz
d7762672d04bbc1ff7b9eaca6eed2b246d9e33ab 9508 cython_3.1.6+dfsg-4_amd64.buil=
dinfo
Checksums-Sha256:
5a9742063a37eeaf16e812cdb16d69b3bfb3224ab55a8512edfd297dda4445ef 3039 cython=
_3.1.6+dfsg-4.dsc
9de56310c9a51b1de840ae817899cd287d72e8b9a42da529044fbfd7334fa77c 2557448 cyt=
hon_3.1.6+dfsg.orig.tar.xz
28f18803330e1d69b6f98320a472c0a311ea098da4ebf8a6b3c23afbb3ca04e3 33328 cytho=
n_3.1.6+dfsg-4.debian.tar.xz
c2b17b0a8f9d9f863354efb94ace8520c41f05c9e4310db825692e0486daa84d 9508 cython=
_3.1.6+dfsg-4_amd64.buildinfo
Files:
05aa4ab687435e7c60f9531b330ea4f7 3039 python optional cython_3.1.6+dfsg-4.dsc
c47c94c4af6f7b62fdf1bd43acdd5c28 2557448 python optional cython_3.1.6+dfsg.o=
rig.tar.xz
946675eeb5e03b723b4cd3017a7f4ee4 33328 python optional cython_3.1.6+dfsg-4.d=
ebian.tar.xz
0dbbc394215fcb525fd858ef46e8ecc5 9508 python optional cython_3.1.6+dfsg-4_am=
d64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmrdNVIACgkQwpPntGGC
Ws4EvhAAgpnI2x+D/bnBsGyosyMnhXKhZgpVa7sLNcbGuKts0AudviFbE4BmnXWq
C5eVoQduVV4ohrSmcfkgQOp/WrBVGxE7eOD4wd/SwoUMra1927I5pjBmWe4f0qbD
gPIgJmgZ7Xe+ROb56rGUOpznxXj+rwvokPnGWmQXogny31KV96ONGu3ZnG/p/aJd
ZRFGClgyQ7iVGTDkBwzdzaBeI56c+AuWAQGTIHBaCAwhHE/NNVNYq4innhBNIv/j
cgJxcAW1olWUHuWMIf9fgBIgx7zwu0Yfljz1bL9/Rkoc84FGeFmOJk0Ftvx0ZmWK
unpdpiFHpMjUvNwRLBhSgb/0aTbr6UIwQHsVi/QMJXv29QEwxJta8dJATX77w8DE
jYDCRG8I4BsslMaD7DdxcWaJy3gLnwbVuoKUB8P9CVLGi/QGu+luEjx26zKnrBEv
pWjp9O0LznIZWYfJCck2Soz68QZUJnJF7UOFm8SJGXgdbPstei1LCmzu4pw/zlgw
jbzpA198ePbMBot8Nwd02s5me1vSOBGYDVIZS689eWce41upyADNh+tyq7CmgnA8
J/EkkLvhSSo5ZjE6Qvr1yu5daWm1oDeigKuxxsH1feEXJsHB14Enf2uL8guU3l7b
dy7+LbIDAc98SSgR4qosLQNc46GKZgP5ZX+UQ3UpYNItT4gOqxM=3D
=3DP8Nr
-----END PGP SIGNATURE-----
--===============8012229125225029130==
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCat06MQAKCRCb9qggYcy5
IemTAQDjsd7RftYQvuNCJ0WUmc6lDSplL3zKoUOF8+gahYZ2EAEAs34OWQBDa+Az
DPYXg96JM7G231PvOW76GuGUtffcwwc=
=J8IF
-----END PGP SIGNATURE-----
--===============8012229125225029130==--
------------=_1792883342-447222-0--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads