Your message dated Sun, 08 Nov 2026 12:35:19 +0000
with message-id <[email protected]>
and subject line Bug#1145078: fixed in parso 0.8.7-1.1
has caused the Debian Bug report #1145078,
regarding parso: FTBFS building 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 [email protected]
immediately.)
--
1145078: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145078
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:parso
Version: 0.8.7-1
User: [email protected]
Usertags: python3.15
Tags: patch
Hi!
While rebuilding the python related packages against the python version
3.15rc1 we found that parso fails to build from source [1].
Python 3.15 changed some of the texts in the exception messages and
parso tests rely on the exact wordings. Upstream already has fixed these
issues and I'm attaching the upstream patches that we used in the
sandbox.
Please consider applying these patches to fix the compatibility with
python 3.15.
Happy hacking,
[1]:
https://debusine.debian.net/debian/r-python-python3.15/work-request/1021941/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
commit 62b30e7fae5402ead78fdd9315fb3d6e20bce36f
Author: Steve Kowalik <[email protected]>
Date: Wed Jul 29 20:23:35 2026 +1000
Support Python 3.15 exception message changes (#240)
Python 3.15 changed the wording of some SyntaxError exceptions to make
it clearer.
Closes #239
diff --git a/parso/python/errors.py b/parso/python/errors.py
index 09c5047..0916fb3 100644
--- a/parso/python/errors.py
+++ b/parso/python/errors.py
@@ -973,7 +973,10 @@ class _ParameterRule(SyntaxRule):
continue
if p.name.value in param_names:
- message = "duplicate argument '%s' in function definition"
+ if sys.version_info[:2] < (3, 15):
+ message = "duplicate argument '%s' in function definition"
+ else:
+ message = "duplicate parameter '%s' in function definition"
self.add_issue(p.name, message=message % p.name.value)
param_names.add(p.name.value)
commit 512e78c1a8f4968086af652394a9cd0a91c16e54
Author: Steve Kowalik <[email protected]>
Date: Thu Jul 30 17:27:07 2026 +1000
Support more Python 3.15 exception changes (#241)
Python 3.15 changed the wording of some SyntaxError exceptions to make
it clearer. The previous PR only fixed one instance.
diff --git a/parso/python/errors.py b/parso/python/errors.py
index 0916fb3..c51a36d 100644
--- a/parso/python/errors.py
+++ b/parso/python/errors.py
@@ -659,7 +659,10 @@ class _StringChecks(SyntaxRule):
@ErrorFinder.register_rule(value='*')
class _StarCheck(SyntaxRule):
- message = "named arguments must follow bare *"
+ if sys.version_info[:2] < (3, 15):
+ message = "named arguments must follow bare *"
+ else:
+ message = "named parameters must follow bare *"
def is_issue(self, leaf):
params = leaf.parent
diff --git a/test/failing_examples.py b/test/failing_examples.py
index a555fde..af0c711 100644
--- a/test/failing_examples.py
+++ b/test/failing_examples.py
@@ -139,7 +139,6 @@ FAILING_EXAMPLES = [
'del *a, b',
'def x(*): pass',
'(%s *d) = x' % ('a,' * 256),
- '{**{} for a in [1]}',
'(True,) = x',
'([False], a) = x',
'def x(): from math import *',
@@ -229,7 +228,6 @@ FAILING_EXAMPLES = [
'async def foo():\n yield x\n return 1',
'async def foo():\n yield x\n return 1',
- '[*[] for a in [1]]',
'async def bla():\n def x(): await bla()',
'del None',
'del True',
@@ -423,3 +421,10 @@ if sys.version_info[:2] < (3, 13):
FAILING_EXAMPLES += [
'from .__future__ import whatever',
]
+
+if sys.version_info[:2] < (3, 15):
+ # these nested expression successfully evaluate with 3.15
+ FAILING_EXAMPLES += [
+ '[*[] for a in [1]]',
+ '{**{} for a in [1]}',
+ ]
diff --git a/test/test_python_errors.py b/test/test_python_errors.py
index 0c89016..a3fdaa1 100644
--- a/test/test_python_errors.py
+++ b/test/test_python_errors.py
@@ -275,9 +275,13 @@ def test_named_argument_issues(works_not_in_py):
message = works_not_in_py.get_error_message('def foo(*, **dict): pass')
message = works_not_in_py.get_error_message('def foo(*): pass')
if works_not_in_py.version.startswith('2'):
- assert message == 'SyntaxError: invalid syntax'
+ wanted = 'SyntaxError: invalid syntax'
else:
- assert message == 'SyntaxError: named arguments must follow bare *'
+ if sys.version_info[:2] < (3, 15):
+ wanted = 'SyntaxError: named arguments must follow bare *'
+ else:
+ wanted = 'SyntaxError: named parameters must follow bare *'
+ assert message == wanted
works_not_in_py.assert_no_error_in_passing('def foo(*, name): pass')
works_not_in_py.assert_no_error_in_passing('def foo(bar, *, name=1): pass')
--- End Message ---
--- Begin Message ---
Source: parso
Source-Version: 0.8.7-1.1
Done: Alexandre Detiste <[email protected]>
We believe that the bug you reported is fixed in the latest version of
parso, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alexandre Detiste <[email protected]> (supplier of updated parso 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 08 Nov 2026 13:13:25 +0100
Source: parso
Architecture: source
Version: 0.8.7-1.1
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Alexandre Detiste <[email protected]>
Closes: 1141478 1145078
Changes:
parso (0.8.7-1.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Fix FTBFS building against python 3.15 (Closes: #1145078)
* Mark python3-pytest as <!nocheck> (Closes: #1141478)
Checksums-Sha1:
9eba5b2addd030a4acb7b07823464ffa12a3906d 1969 parso_0.8.7-1.1.dsc
20ed01a0e2dc207a8a1a99869d5d4937ad4af339 6484 parso_0.8.7-1.1.debian.tar.xz
a50954217f3745e6d617da11fe5ae8fac5a08921 7529 parso_0.8.7-1.1_source.buildinfo
Checksums-Sha256:
fb17851c0c582e6e8792859bc705e47382300f2034de543c0ea525e5778c3f1a 1969
parso_0.8.7-1.1.dsc
fa6c23d9e86ba9a3e19a428ee4dadfb5c35ebea85cdbd26ce2d0324b79f799c0 6484
parso_0.8.7-1.1.debian.tar.xz
114028d36b9fc2a1ff1e078c7b3fa1f8cf6d9e3e3b6687ad041fcc5af3512d01 7529
parso_0.8.7-1.1_source.buildinfo
Files:
c3b268dd5963079f2e6d2746b1f1c5a4 1969 python optional parso_0.8.7-1.1.dsc
a900e9a8b9054df41b9f6d38df964f41 6484 python optional
parso_0.8.7-1.1.debian.tar.xz
edc73f84cffd01b7e9a996de9834dd80 7529 python optional
parso_0.8.7-1.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmrwaFARHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBr11A//bFAvUytnvVDcZ8VC6iC+cLLmsq0N7X6o
+BdI0nIO8lwM2O6QaA4n58keBRgv4HY8TnX2H20MyyRkOvOakDgsfuQEonABp4R8
V2WRDvzv+lc1auCwe4e8Y07S9dYyBVdt0GdTt1vxls/Na/Tso/a1I+GZlE0LzKQa
IGLJ4Mv0Te9QeKi87/4GkU6ifV2k5S4cRdgMCTA/vC6k1PtxBquaBam9ZykbsGr3
Tm314dFhfX/My0qdmWrzmfefa3AOp6p60NlULtvF3Ba3M/qZ/doo6/TxbobNl2SK
F+iJ9w/4RCADbbnwqn/2gBe6ELzjkwVNEIAKEXclD/nzC9c/qVP0P3hXszQZPfcB
4FnxR9eOnfNPntYV3cH5rsiwBflLvfybN46FmZmaJ/sovGeTe76KM7/d2LVN37I3
JtnmxEcaR/T+AM3zdJRONKhFZomKw6fvwmch3MAtPCRiZL3M3fLkn7zpVm6/4H/N
LBxHDwROSG11I3noxjBWg2BGVpSM02dZPpNOq6yj0BSO7Uw1kiikxWGxvGlRW68X
TWsrPrFMO5jU93rQjm6oeyQe6Gp2Scs2cYXvcKPJUcRcHIxON2VsLLzKQdK8k7oX
8o4TRCQJFqhIbKhBiWb+mFczRLCg6rxa300kpwJUgnNCVuFb4+lk0jDk6cMoWSIP
YiHf6sGf9AA=
=wshW
-----END PGP SIGNATURE-----
pgpxwV42REjix.pgp
Description: PGP signature
--- End Message ---