- Package:
- src:python-django
- Source:
- src:python-django
- Submitter:
- Maximiliano Curia
- Date:
- 2026-08-28 15:53:02 UTC
- Severity:
- normal
- Tags:
Hi! While rebuilding the python related packages against the Python 3.15rc1 version we found that python-django fails to build from source [1]. There are three separate issues related to python 3.15. First, tests failing with `NameError: name 'SomeType' is not defined. Did you mean: 'TokenType'?`. This was fixed upstream with Commit e7f539f [2]. Second, the error message for `test_invalid_choice_db_option` has changed. To fix this, it required applying a few upstream patches [3] [4]. Third, test_strip_tags failed with `sys.version_info >= min_fixed_security[sys.version_info[:2]] KeyError: (3, 15)`, this is caused by line 136 of tests/utils_tests/test_html.py, which defines htmlparser_fixed_security but that's never used and it's later recrated in line 151 in a way that avoids the error, the related upstream fix about this is in [5], but backporting the fix is actually only deleting the line 136. I applied the upstream fixes in the sandbox [5] to be able to build the packages that depend on python-django, 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/4415709/raw/python-django_5.2.17-1+py315.1_amd64-2026-08-22T01:25:30Z.build [2]: https://github.com/django/django/commit/e7f539f813bd56a71ca3c1fbf379f47691002086 [3]: https://github.com/django/django/pull/20021 [4]: https://github.com/django/django/commit/ed13a58bf63df94508c8a0fe779da0b6a2bc26bb [5]: https://github.com/django/django/commit/185b049 [6]: https://debusine.debian.net/debian/r-python-python3.15/
We believe that the bug you reported is fixed in the latest version of
python-django, 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 1145438@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated python-django 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, 27 Aug 2026 16:55:04 -0700
Source: python-django
Architecture: source
Version: 3:5.2.17-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Closes: 1145438
Changes:
python-django (3:5.2.17-2) unstable; urgency=medium
.
* Apply a number of upstream patches to address FTBFS issues under Python
3.15. Thanks to Maximiliano Curia (maxy) for report and research:
.
- "Used annotation_format parameter of getfullargspec() on Python 3.15."
- "Defaulted suggest_on_error=True in management commands."
- "Fixed test_invalid_choice_db_option on Python 3.14.5+."
- Drop incorrect/masked definition of htmlparser_fixed_security in
tests/utils_tests/test_html.py.
.
(Closes: #1145438)
Checksums-Sha1:
333b37623063d86539a98e156acb6a039957c8ad 2790 python-django_5.2.17-2.dsc
7c0ecfdec9fdd9c3dcc1e96be06dbd6841beee3b 10889740 python-django_5.2.17.orig.tar.gz
3de7539ec0551bf4488233b5a6a9a13b730e5d10 43036 python-django_5.2.17-2.debian.tar.xz
1d4051fc0277d40d7d768d838edbd57c4f53ec2e 8035 python-django_5.2.17-2_source.buildinfo
Checksums-Sha256:
2a315a609f90054e5293cadd85e67f1ba2c3ec7503635b9ca73be0a3da3c8a7f 2790 python-django_5.2.17-2.dsc
9d4d93be539a18ab80d058eb515900e10951e04c537c5a6b394fc49528d3251f 10889740 python-django_5.2.17.orig.tar.gz
b4481d5b6e67bababceb6650e7211f844f7e6a3f3136f7a7278e7b851b66cbf4 43036 python-django_5.2.17-2.debian.tar.xz
5512199ff669c40b0d14f7ae8f63bc418239341c6ed26b77a3a37008a437deb6 8035 python-django_5.2.17-2_source.buildinfo
Files:
2db3efd59c4b6fa76926b29f2c1cbf9b 2790 python optional python-django_5.2.17-2.dsc
d3e9f9ca5c6d7d044a97675def960297 10889740 python optional python-django_5.2.17.orig.tar.gz
267c12b7e7b095943ae8c8efe50d5fe7 43036 python optional python-django_5.2.17-2.debian.tar.xz
f4c8be9c402ab0fa8778bed9e0a667b2 8035 python optional python-django_5.2.17-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmqRqHEACgkQHpU+J9Qx
HljWuQ/+I5O75aeJ2BYVK10oAKIfktY5l6XoG0f5Ij8WWHvoMmXD7QAVScZWvrJf
yPVTiOqni3wEVejkBjRlpcXoz29nKZzZ4m2S7oOrZVy3Xq4qcJRpjx+jhPvSxqZJ
yqWKU5fdf32ddZT8HmNFuez/vc5ibf0Sh/vSCzmCkOL1SNnOWgpdqxsHa+MSGw95
5qdmgk6Fdshg6JTDl5SJb7FOp2gvdJheJ0CFMUEyxxPIMX2v0Tnk0Rk06xhQ2p2P
EC3s5SAh7UfMwaEN5Z/cIqoePuwUrrmtJaRJawOAkbuHYPSVI6bVqD7fvOEbFY4j
28b1Do1QRzYOMr/IUCc0qnxZxdarSsCEBuWOdU2gRXhObfD3ri/NzWROFqTTgVBI
+iEPTXUsMGgCkaNb8mBfn20+wDpdMW+ZrrMfZC2ptdQiQ2b1/ID0+vVgi7a4NekN
O06EYNXJkuG2GVvrMD5Hn8M25T/7abm2C6mYw/XrvwcdJVVfcMr0kPCCY0qRydBV
Lte/PXyXo0yAnCGsv9B5n7fyX3NZUaMWrtGPfpuD1F90HYWr9QiBdmJlYfqRd4qu
rKBxK1UlQWiPU0pFDAX2N3p6BBQMqzCYYP+7ctCqPxQodWph0u6iOJLbp7BgRvki
mwdWhj1xPCs+eMhbGwOgBATnvlcyf+6zsMMAHJuB0wBeZqRxoY4=
=vk9y
-----END PGP SIGNATURE-----