Thread View: linux.debian.bugs.rc
1 messages
1 total messages
Started by Debian Bug Tracking System
Sat, 14 Nov 2026 19:10
Bug#1148799: marked as done (strawberry-graphql: FTBFS against python 3.15rc2)
Author: Debian Bug Tracking System
Date: Sat, 14 Nov 2026 19:10
Date: Sat, 14 Nov 2026 19:10
454 lines
19244 bytes
19244 bytes
This is a multi-part message in MIME format...
------------=_1794683222-2403585-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sat, 14 Nov 2026 19:05:50 +0000
with message-id <E1xSJ4Q-00000008wqx-3uA4@fasolo.debian.org>
and subject line Bug#1148799: fixed in strawberry-graphql 0.320.0-3
has caused the Debian Bug report #1148799,
regarding strawberry-graphql: FTBFS against python 3.15rc2
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
1148799: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1148799
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1794683222-2403585-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 23 Sep 2026 21:16:15 +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=-118.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,GMAIL,HAS_PACKAGE,
MD5_SHA1_SUM,SPF_HELO_NONE,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, 123; hammy, 150; neutral, 228; spammy,
0. spammytokens:
hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <maxy@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:32868)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <maxy@debian.org>)
id 1x9UK7-006zjb-2U
for submit@bugs.debian.org;
Wed, 23 Sep 2026 21:16:15 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:In-Reply-To:References;
bh=jt29fa7baRXAbUQX99/5i9fR6vPP910HhdjiBD9PSPM=; b=n2yT1soXuae6cStIAM0D+euG9w
jszVbQPGq5vp/DuFfHVJNjZXd0oPDwGklKCNv8EZJJ4eCdlcQHUI6LKNLkPvbL80XJW1smQpR20Z3
NvT0Ks3TU6vY0H+Fwv5a433GE9dBdJ9TMt0apBjHeXn644m9CsObFuUyHA8zHTna2d5kz6KFRH4L7
DVZItVIlmMUBI5vwfY/hdSlpoxzVQyyPlps1i8G4BXgYd2pxwAJ+pq+pGmluzXYf4YVwXRxTsR/Bf
0O/tVXwSHt9FN+ENiYbFITz+J/lF+Es39LrpyA2YNBOiKqrpn4s+klWNdm0+VN155JRzYy6kHSb71
6aUE7usg==;
Received: from authenticated-user
by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <maxy@debian.org>)
id 1x9UK5-0042OC-2D
for submit@bugs.debian.org;
Wed, 23 Sep 2026 21:16:14 +0000
Date: Wed, 23 Sep 2026 23:16:12 +0200
From: Maximiliano Curia <maxy@debian.org>
To: submit@bugs.debian.org
Subject: strawberry-graphql: FTBFS against python 3.15rc2
Message-ID: <arRBnJ9ON0VzGgLE@hecuba.gnuservers.com.ar>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="jRTZl+mugiqrqO2N"
Content-Disposition: inline
X-Debian-User: maxy
Delivered-To: submit@bugs.debian.org
--jRTZl+mugiqrqO2N
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Package: src:strawberry-graphql
Version: 0.320.0-2
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important
Hi!
While rebuilding the python related packages against the Python 3.15rc2 version we found that strawberry-graphql fails to build from source [1].
The error is:
E AttributeError: module 'dataclasses' has no attribute '_is_type'
To fix it I had to backport upstream commit a0ce7fc "Add Python 3.15 test coverage (#4565)" [2].
I've applied the upstream fix in the sandbox [3] to verify that it builds successfully, please consider applying the patch to support the upcoming 3.15 version.
Setting the severity to important for now. Once Python 3.15 is released, it will be added to python3-defaults and this bug will become release critical.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1313032/
[2]: https://github.com/strawberry-graphql/strawberry/commit/a0ce7fce5f968043812dabdaa4ad99fedfc70086
[3]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
--jRTZl+mugiqrqO2N
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename=Add-Python-3.15-test-coverage-4565.patch
Content-Transfer-Encoding: quoted-printable
=46rom: Patrick Arminio <patrick.arminio@gmail.com>
Date: Fri, 28 Aug 2026 20:21:19 +0200
Subject: Add Python 3.15 test coverage (#4565)
* Add Python 3.15 test coverage
* Install Python 3.15 build dependencies
* Complete Python 3.15 build toolchain
* Skip codeflash on Python 3.15
* Avoid private dataclasses APIs
* Preserve ClassVar detection across Python versions
---------
Co-authored-by: Amp <amp@ampcode.com>
---
strawberry/utils/typing.py | 33 ++++++++++++++++++++---------=
----
tests/relay/test_types.py | 13 +++++++++++++
tests/utils/test_typing_forward_refs.py | 11 +++++++++++
3 files changed, 44 insertions(+), 13 deletions(-)
diff --git a/strawberry/utils/typing.py b/strawberry/utils/typing.py
index a5e2886..a0c02c0 100644
--- a/strawberry/utils/typing.py
+++ b/strawberry/utils/typing.py
@@ -1,5 +1,5 @@
import ast
-import dataclasses
+import re
import sys
import typing
from collections.abc import AsyncGenerator
@@ -22,6 +22,8 @@ from typing import ( # type: ignore
get_origin,
)
=20
+_CLASSVAR_RE =3D re.compile(r"^\s*(\w+(?:\s*\.\s*\w+)*)")
+
=20
@lru_cache
def get_generic_alias(type_: type) -> type:
@@ -144,24 +146,29 @@ def is_type_var(annotation: type) -> bool:
return isinstance(annotation, TypeVar)
=20
=20
-def is_classvar(cls: type, annotation: ForwardRef | str) -> bool:
+def is_classvar(cls: type, annotation: object) -> bool:
"""Returns True if the annotation is a ClassVar."""
- # This code was copied from the dataclassses cpython implementation to=
check
- # if a field is annotated with ClassVar or not, taking future annotati=
ons
- # in consideration.
- if dataclasses._is_classvar(annotation, typing): # type: ignore
+ if annotation is ClassVar or get_origin(annotation) is ClassVar:
return True
=20
annotation_str =3D (
annotation.__forward_arg__ if isinstance(annotation, ForwardRef) e=
lse annotation
)
- return isinstance(annotation_str, str) and dataclasses._is_type( # ty=
pe: ignore
- annotation_str,
- cls,
- typing,
- typing.ClassVar,
- dataclasses._is_classvar, # type: ignore
- )
+ module =3D sys.modules.get(cls.__module__)
+ if not isinstance(annotation_str, str) or module is None:
+ return False
+
+ match =3D _CLASSVAR_RE.match(annotation_str)
+ if match is None:
+ return False
+
+ resolved: object | None =3D module
+ for path_item in match.group(1).split("."):
+ resolved =3D getattr(resolved, path_item.strip(), None)
+ if resolved is None:
+ return False
+
+ return resolved is ClassVar or get_origin(resolved) is ClassVar
=20
=20
def type_has_annotation(type_: object, annotation: type) -> bool:
diff --git a/tests/relay/test_types.py b/tests/relay/test_types.py
index c445cf0..aa329f2 100644
--- a/tests/relay/test_types.py
+++ b/tests/relay/test_types.py
@@ -1,3 +1,4 @@
+import typing_extensions
from collections.abc import AsyncGenerator, AsyncIterable
from typing import Any, Optional, Union, cast
from typing_extensions import assert_type
@@ -259,6 +260,18 @@ def test_overwrite_resolve_id_and_no_node_id():
strawberry.Schema(query=3DQuery)
=20
=20
+def test_resolve_id_attr_ignores_qualified_classvar():
+ @strawberry.type
+ class Fruit(relay.Node):
+ id: relay.NodeID[int]
+
+ Fruit.__annotations__["registry"] =3D (
+ f"{typing_extensions.__name__}.ClassVar[MissingType]"
+ )
+
+ assert Fruit.resolve_id_attr() =3D=3D "id"
+
+
def test_list_connection_without_edges_or_page_info(mocker: MagicMock):
@strawberry.type(name=3D"Connection", description=3D"A connection to a=
list of items.")
class DummyListConnectionWithTotalCount(relay.ListConnection[relay.Nod=
eType]):
diff --git a/tests/utils/test_typing_forward_refs.py b/tests/utils/test_typ=
ing_forward_refs.py
index 7b8bb51..41f5e56 100644
--- a/tests/utils/test_typing_forward_refs.py
+++ b/tests/utils/test_typing_forward_refs.py
@@ -1,11 +1,17 @@
from __future__ import annotations
=20
import typing
+import typing_extensions
+from types import SimpleNamespace
from typing import ClassVar, ForwardRef, Optional, Union
=20
from strawberry.scalars import JSON
from strawberry.utils.typing import eval_type, is_classvar
=20
+_classvar_proxy =3D SimpleNamespace(
+ nested=3DSimpleNamespace(ClassVar=3DClassVar),
+)
+
=20
def test_eval_type():
class Foo: ...
@@ -51,7 +57,12 @@ def test_is_classvar():
attr1: str
attr2: ClassVar[str]
attr3: typing.ClassVar[str]
+ attr4: typing_extensions.ClassVar[str]
+
+ Foo.__annotations__["attr5"] =3D "_classvar_proxy.nested.ClassVar[str]"
=20
assert not is_classvar(Foo, Foo.__annotations__["attr1"])
assert is_classvar(Foo, Foo.__annotations__["attr2"])
assert is_classvar(Foo, Foo.__annotations__["attr3"])
+ assert is_classvar(Foo, Foo.__annotations__["attr4"])
+ assert is_classvar(Foo, Foo.__annotations__["attr5"])
--jRTZl+mugiqrqO2N--
------------=_1794683222-2403585-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1148799-close) by bugs.debian.org; 14 Nov 2026 19:05:51 +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=-113.7 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,PDS_BTC_ID,PGPSIGNATURE,
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, 94; hammy, 150; neutral, 105; 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 muffat.debian.org ([2607:f8f0:614:1::1274:33]:39672)
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 1xSJ4R-00A5BZ-2g
for 1148799-close@bugs.debian.org;
Sat, 14 Nov 2026 19:05:51 +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 muffat.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 1xSJ4R-00GyuJ-2Q
for 1148799-close@bugs.debian.org;
Sat, 14 Nov 2026 19:05:51 +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=Z6RerdZDLyeut5gBoKMh+Ven2tqhiegy2SXIbUdvsg0=; b=NyoSQAFEcw4L0pOSgyQEN8ZVc4
gG+WzJ3qiwWowgrKSa9IpLaiguNebGrKDzA820IG1dpcsTq8aPpAYBb0NJxMbJJT62+F2X0lk8xTn
blxt2b6hxtK/BBBePvvoP9FefTLmzH/Re33exmlhrpf+UtVMdvevAGBvNiYccxpct4ljxW0JQ0J4K
3Zyd6fkN5i0QddNoc9HyQjt0dIYCe51t9GZ9URI4kJelFzz5BSIp37+g6m//6AyxAMoOF2exDJcu7
7z7szMXMiKBXOK12/PObz4BZ7tj4yRN1jgEmf3roh74t5DjC+ih9UpuiZTfWtdWwENm8tYyKEWve+
xhbQWo+Q==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xSJ4Q-00000008wqx-3uA4;
Sat, 14 Nov 2026 19:05:50 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Nico Della Torre <nicoz91@ubuntu.com>
To: 1148799-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: strawberry-graphql
Debian: DAK
Debian-Changes: strawberry-graphql_0.320.0-3_source.changes
Debian-Source: strawberry-graphql
Debian-Version: 0.320.0-3
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1148799: fixed in strawberry-graphql 0.320.0-3
Content-Type: multipart/signed; micalg="pgp-sha256";
protocol="application/pgp-signature";
boundary="===============7381729365715051069=="
Message-Id: <E1xSJ4Q-00000008wqx-3uA4@fasolo.debian.org>
Date: Sat, 14 Nov 2026 19:05:50 +0000
--===============7381729365715051069==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Source: strawberry-graphql
Source-Version: 0.320.0-3
Done: Nico Della Torre <nicoz91@ubuntu.com>
We believe that the bug you reported is fixed in the latest version of
strawberry-graphql, 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 1148799@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nico Della Torre <nicoz91@ubuntu.com> (supplier of updated strawberry-graphql=
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: Fri, 13 Nov 2026 21:29:11 +0100
Source: strawberry-graphql
Architecture: source
Version: 0.320.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Nico Della Torre <nicoz91@ubuntu.com>
Closes: 1148799
Changes:
strawberry-graphql (0.320.0-3) unstable; urgency=3Dmedium
.
* Team upload.
* [02b1c4f] Backport upstream fix for Python 3.15 (Closes: #1148799)
Checksums-Sha1:
8b976eb1815edd837c810523a12e03621de64259 3778 strawberry-graphql_0.320.0-3.d=
sc
e4e2a49ba7d6ef601148fcd6afe7a7c42a6586a1 1393752 strawberry-graphql_0.320.0-=
3.debian.tar.xz
d0a5ea2c745c1ae1e73c980cdb4c25a46e0bce60 12680 strawberry-graphql_0.320.0-3_=
source.buildinfo
Checksums-Sha256:
eea54590bcd9fd1c5b5432e22852f808415ff456b6e7f79dd328f779487c3bc0 3778 strawb=
erry-graphql_0.320.0-3.dsc
c9fbe0353f1db47dcc3555b76c9da6c45e8fd1484463bc83c671cce0851485a4 1393752 str=
awberry-graphql_0.320.0-3.debian.tar.xz
45a1d37b65fbb16ff024afd4bcdc40bc3c85e7061943158dd60c3d91fce39870 12680 straw=
berry-graphql_0.320.0-3_source.buildinfo
Files:
e69e41a77671bd06ff9064fd007364d1 3778 python optional strawberry-graphql_0.3=
20.0-3.dsc
3edc2b6977357f87c912fce8d45823fc 1393752 python optional strawberry-graphql_=
0.320.0-3.debian.tar.xz
ca011a445fbf8eb5dace791f80d30364 12680 python optional strawberry-graphql_0.=
320.0-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmr4q/wACgkQMfMURUSh
dBopgRAAlJPTU7CX3uRHN6KNO5Q/+ZUnrspFgEOE3xashxwdEyfXBOdYeVT4wjSA
TDk3cIooLdR0+jYJYvJJSTFCnZhBHy0ibsL2IlcMIqDAOgqvh/S+KjSFj1tNDR48
8ujOV18/2TJBY0DKKd0qUZu4kFmjLdM3lkG6g2TRLEKh5hlfbWoyQ3GVD4Ua6MQB
EWJ4P7Zw7xBPDMByv5oszu0MS5FlgCK6flCMkxtZSwRqRrjAOlP763i0+B57Q6zm
JUZQvxKZHd52+I8mG/W0Yk8pkBMwnQRcaWSh8NBHCTFo3z9cOrDkSrwhDVOfPRPt
koKlhoMQxiGIy/YHPsLrJepQ0QUekoHnh49/RhPsrlFTNi6fB2LCzTG9Y5krbi5j
56Sj6Ic7ozhvlQXWetDvJznoMdD9ilJVBjPdK6u6UaNhFHA4IFqELqfsM0fBpnXS
7r4Y4G07mTIucnyqwSrR5FJZ+k4W0Ct5YJ2iSRuYSPWr7bA8yWBISf0Cvp9C/3Fo
mkMipcNATnjMCYtm4oNsuKT50lIEw14VXFUjmAshsfk2obU0LLkwEJ5l/qlGhCG3
Uk7c0W+AQ3xV+gZMiJpPazBdkJYEBAyzNFkLavW7yqT9TX00JdEml3G/Ec4uNYRo
4Jwj3k8hDERGfsEsEwnVwm8aqdRrppKV+Xw9BMu/WjbHK7Hbjwg=3D
=3D/tAw
-----END PGP SIGNATURE-----
--===============7381729365715051069==
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCavixDgAKCRCb9qggYcy5
IWfvAPwIq1oTw1kDtQgxs33ZE33jtCHtfAghYGmEe3OMbhnb2AEAppWVWJAn1hsC
W2wOMqFp+iUS29FPjuuj6Iq6whHbOgY=
=kTda
-----END PGP SIGNATURE-----
--===============7381729365715051069==--
------------=_1794683222-2403585-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