#1149337 python-datamodel-code-generator: FTBFS against python 3.15rc2 (ValueError: '3.15' is not a valid PythonVersion)

#1149337#5
Date:
2026-09-29 13:54:01 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-datamodel-code-generator fails to build
from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856740/

 From the log, the error seems to be:

   ERROR tests/test_build_architecture_docs_script.py - ValueError:
'3.15' is no...
   ERROR tests/test_build_playground_assets_script.py - ValueError:
'3.15' is no...
   ERROR tests/test_build_schema_docs_script.py - ValueError: '3.15' is
not a va...
   ERROR tests/test_http.py - ValueError: '3.15' is not a valid
PythonVersion
   !!!!!!!!!!!!!!!!!!! Interrupted: 38 errors during collection
!!!!!!!!!!!!!!!!!!!
   ====================== 75 deselected, 38 errors in 4.34s
=======================

It looks like the code needs to be updated to accept 3.15 as a valid
Python version.

Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.

#1149337#10
Date:
2026-10-22 16:49:58 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-datamodel-code-generator, 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 1149337@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 python-datamodel-code-generator 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)
Format: 1.8
Date: Thu, 22 Oct 2026 17:20:49 +0100
Source: python-datamodel-code-generator
Architecture: source
Version: 0.85.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Nico Della Torre <nicoz91@ubuntu.com>
Closes: 1149337 1150471
Changes:
 python-datamodel-code-generator (0.85.0-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release:
     - Support Pydantic 2.14 (closes: #1150471).
   * Support Python 3.15 (Closes: #1149337).
   * Refresh isort-10.patch and extend it to the isort extra.
   * Build-Depend on python3-lxml, python3-trustme and
     python3-typing-extensions.
   * Update upstream URLs to the new GitHub organization.
   * Build-Depend on ruff and enable the tests that use its executable.
   * Skip new tests needing httpx2, grpc-tools or upstream CI files.
   * Bypass the pybuild dummy proxy for tests using a local HTTP server.
   * Depend explicitly on black, the default formatter: dh_python3 ignores
     the new environment markers on it.
   * Make datamodel-codegen depend on python3-datamodel-code-generator.
   * Include architecture.mk so that msgspec tests also run in autopkgtest.
   * Tolerate missing msgspec in more test modules, and skip the new tests
     needing it on architectures without it.
   * Skip tests needing a generated _version.py in src/ in autopkgtest.
Checksums-Sha1:
 5df9993063e404fddd3536a286926e6c97f8b450 3453 python-datamodel-code-generator_0.85.0-1.dsc
 47c04ae456abe0faf920ff0ced543c977ad2c879 4212840 python-datamodel-code-generator_0.85.0.orig.tar.xz
 5caac0a8c2d69669dbbadae3639683c958345b01 7052 python-datamodel-code-generator_0.85.0-1.debian.tar.xz
 6663e6f9741ffd0eb9639fc6cb72d9d39000b5eb 14543280 python-datamodel-code-generator_0.85.0-1.git.tar.xz
 e5b64d584d49b544fa1501a06d72fd5d18835154 17832 python-datamodel-code-generator_0.85.0-1_source.buildinfo
Checksums-Sha256:
 53089ed216bf1ac396a83e5ea8eca95f890ef5c627182c5258d7d784a8d89d96 3453 python-datamodel-code-generator_0.85.0-1.dsc
 c12cb9a5ff211b6c81fb81a99393fca369790e60af41ac688bef8fc6e8f2b13c 4212840 python-datamodel-code-generator_0.85.0.orig.tar.xz
 c12e13dbbf11851779307db5c0c7df0346f836fb40816685ff5d46e8130c5b8c 7052 python-datamodel-code-generator_0.85.0-1.debian.tar.xz
 499fc60723cc2363d9a16b0569afe45e846e7f77f2972f18dbc0b534f8017914 14543280 python-datamodel-code-generator_0.85.0-1.git.tar.xz
 c55fac3db112287687778959303303d26970e7d2ac2caa6a2d65199ed6971176 17832 python-datamodel-code-generator_0.85.0-1_source.buildinfo
Files:
 1fdbdf08e7e65b2b8cf1b3160e8f886c 3453 python optional python-datamodel-code-generator_0.85.0-1.dsc
 1d02dd57540dfc073cb90a91b7f9e935 4212840 python optional python-datamodel-code-generator_0.85.0.orig.tar.xz
 c5ad672a8689f92e699a315c2781c27c 7052 python optional python-datamodel-code-generator_0.85.0-1.debian.tar.xz
 59aef7ba20fea1d871d6bff8f9e8d808 14543280 python None python-datamodel-code-generator_0.85.0-1.git.tar.xz
 1bb90abe2f349927f1591f0952afdccb 17832 python optional python-datamodel-code-generator_0.85.0-1_source.buildinfo
Git-Tag-Info: tag=5e8b4b1b61ae134b07a51c9c3c91956783caa78e fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmraOlgACgkQYG0ITkaD
wHkaBw/9FJe/EEC0sKTALvoEbxhZ0+MBFG7YElkitTbRsd+8DC7Vp0Grkhn5FNuV
U3eEaZ2NWDbyYrbyNo44RAwdxTivEPJbL6UCpa1sYfPVo1pDYwA7Zg054DxgBxmY
3cviTxHJfUbKbBtiLs8tI6vxD0QxZdxu3z7sSjk8cKIEgmWurqC5m+vC02zRgjwB
25SA8AerXjj0mrp3O3xTp4ShEB9JUDSbCT7yKUIbPNZlsEtzIQDR6dVcQQOL2qI0
bnF8ycO3N8UhthdeM4JSq6xoA3ylWnVk4L6lrbbZAvwbLkf5W8yjhMXjd9rSm5eM
UhcY//HFXfkj4uV9CA+iSn+NjTwdnW64YrZCCE7+K8/INPBPLslsSqnxxUIRogN0
IfenGF+FvwxHU1/ePT3UliVZVFoSDV4aKtYlR5Yo2FP7tr+wxaYprMzcrTGr45RC
RnZPofuCtOjl4OKRE3bBkfeKtggdDAg6jyIxJtj0T2FRgpco2NqDglvz32FYhksL
K7sIBQTyXenTfG9oUku3sVvvF1vJmrl2qAhHYGsV1/6hEaFBvvEE/FQrLQtzf0ar
b+gZbo22jgqqZirIuFCMALCzo5TBz2+J9eF0W0yAfftN+YN8xPnhzSfk2/mEq6EQ
bw7B91w7MZnp8YKNt96K3ILy7webWnsqjv0RCaGudLBMWMCvtT0=
=r1Rw
-----END PGP SIGNATURE-----