Package: src:python-mashumaro
Version: 3.17-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid

Hi!

While rebuilding the python related packages against the Python 3.15rc1
version we found that python-mashumaro fails to build from source [1].
This problem has already been fixed upstream with commit da19903 [2].

I've applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on python-mashumaro, please consider applying the
patch to support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4434319/
[2]: 
https://github.com/Fatal1ty/mashumaro/commit/da199032223da4fa31709a23553204c47b49bd85
[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 /\/\ /\ >< `/
Description: Adapt test for TypeVarTuple changes in Python 3.15
 In Python 3.15 and typing-extensions 4.16+, TypeVarTuple string representation
 includes the ~ prefix. Use f-strings with Ts to match the representation
 across Python versions.
Author: Alexander Tikhonov <[email protected]>
--- a/tests/test_pep_646.py
+++ b/tests/test_pep_646.py
@@ -269,14 +269,14 @@
         )
         == "Tuple[str, Tuple[int, ...], int]"
     )
-    assert _type_name(Tuple[Unpack[Ts]]) == "Tuple[*Ts]"
-    assert _type_name(Tuple[int, Unpack[Ts], int]) == "Tuple[int, *Ts, int]"
-    assert _type_name(Generic[Unpack[Ts]]) == "Generic[*Ts]"
-    assert _type_name(Generic[K, Unpack[Ts], V]) == "Generic[Any, *Ts, Any]"
+    assert _type_name(Tuple[Unpack[Ts]]) == f"Tuple[*{Ts}]"
+    assert _type_name(Tuple[int, Unpack[Ts], int]) == f"Tuple[int, *{Ts}, int]"
+    assert _type_name(Generic[Unpack[Ts]]) == f"Generic[*{Ts}]"
+    assert _type_name(Generic[K, Unpack[Ts], V]) == f"Generic[Any, *{Ts}, Any]"
     assert _type_name(Unpack[Tuple[int]]) == "int"
     assert _type_name(Unpack[Tuple[int, float]]) == "int, float"
-    assert _type_name(Unpack[Ts]) == "*Ts"
-    assert _type_name(Ts) == "Ts"
+    assert _type_name(Unpack[Ts]) == f"*{Ts}"
+    assert _type_name(Ts) == f"{Ts}"
     assert (
         _type_name(Tuple[Unpack[Ts], K][Unpack[Tuple[int, ...]]])
         == "Tuple[*Tuple[int, ...], int]"

Reply via email to