python-recordclass fails to build with Python 3.13.0a1. lib/recordclass/_dataobject.c: In function ‘dataobject_repr’: lib/recordclass/_dataobject.c:1179:5: error: unknown type name ‘_PyUnicodeWriter’; did you mean ‘PyUnicode_WRITE’? 1179 | _PyUnicodeWriter writer; | ^~~~~~~~~~~~~~~~ | PyUnicode_WRITE lib/recordclass/_dataobject.c:1215:5: error: implicit declaration of function ‘_PyUnicodeWriter_Init’ [-Werror=implicit-function-declaration] 1215 | _PyUnicodeWriter_Init(&writer); | ^~~~~~~~~~~~~~~~~~~~~ lib/recordclass/_dataobject.c:1216:11: error: request for member ‘overallocate’ in something not a structure or union 1216 | writer.overallocate = 1; | ^ lib/recordclass/_dataobject.c:1219:15: error: request for member ‘min_length’ in something not a structure or union 1219 | writer.min_length = 1 + 1 + (2 + 1) * (n-1) + 1; | ^ lib/recordclass/_dataobject.c:1223:15: error: request for member ‘min_length’ in something not a structure or union 1223 | writer.min_length = 4; | ^ lib/recordclass/_dataobject.c:1226:9: error: implicit declaration of function ‘_PyUnicodeWriter_WriteStr’ [-Werror=implicit-function-declaration] 1226 | if (_PyUnicodeWriter_WriteStr(&writer, tp_name) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ lib/recordclass/_dataobject.c:1231:9: error: implicit declaration of function ‘_PyUnicodeWriter_WriteChar’; did you mean ‘PyUnicode_WriteChar’? [-Werror=implicit-function-declaration] 1231 | if (_PyUnicodeWriter_WriteChar(&writer, '(') < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | PyUnicode_WriteChar lib/recordclass/_dataobject.c:1268:17: error: implicit declaration of function ‘_PyUnicodeWriter_WriteASCIIString’; did you mean ‘PyUnicode_CompareWithASCIIString’? [-Werror=implicit-function-declaration] 1268 | if (_PyUnicodeWriter_WriteASCIIString(&writer, ", ", 2) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyUnicode_CompareWithASCIIString lib/recordclass/_dataobject.c:1295:11: error: request for member ‘overallocate’ in something not a structure or union 1295 | writer.overallocate = 0; | ^ lib/recordclass/_dataobject.c:1301:12: error: implicit declaration of function ‘_PyUnicodeWriter_Finish’ [-Werror=implicit-function-declaration] 1301 | return _PyUnicodeWriter_Finish(&writer); | ^~~~~~~~~~~~~~~~~~~~~~~ lib/recordclass/_dataobject.c:1306:5: error: implicit declaration of function ‘_PyUnicodeWriter_Dealloc’ [-Werror=implicit-function-declaration] 1306 | _PyUnicodeWriter_Dealloc(&writer); | ^~~~~~~~~~~~~~~~~~~~~~~~ https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06546831-python-recordclass/ For all our attempts to build python-recordclass with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-recordclass/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
It looks like recordclass 0.21.1 resolves the issue.
FEDORA-2023-2a63cfbcef has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a63cfbcef
FEDORA-2023-2a63cfbcef has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.