Opened 7 months ago

Last modified 3 weeks ago

#34900 new New feature

Python 3.13 compatibility.

Reported by: Mariusz Felisiak Owned by: nobody
Component: Core (Other) Version: 4.2
Severity: Normal Keywords:
Cc: Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Python 3.13 final is scheduled for October 2024 (see PEP 719). This is a tracking ticket for compatibility fixes for Django submitted in the meantime.

Django 5.1 will be the first version to support Python 3.13, because Django 5.0 will end the mainstream support in August 2024.

Change History (14)

comment:1 by GitHub <noreply@…>, 7 months ago

In 20b7aac7:

Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.1+.

Python 3.12.1+ no longer includes skipped tests in the number of
running tests. Check out:

https://github.com/python/cpython/issues/110890#issuecomment-1763458686
https://github.com/python/cpython/pull/106588

comment:2 by Mariusz Felisiak <felisiak.mariusz@…>, 7 months ago

In 448510a9:

[5.0.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.1+.

Python 3.12.1+ no longer includes skipped tests in the number of
running tests. Check out:

https://github.com/python/cpython/issues/110890#issuecomment-1763458686
https://github.com/python/cpython/pull/106588
Backport of 20b7aac7ca60b0352d926340622e618bcbee54a8 from main

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 7 months ago

In a576ef9:

[4.2.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.1+.

Python 3.12.1+ no longer includes skipped tests in the number of
running tests. Check out:

https://github.com/python/cpython/issues/110890#issuecomment-1763458686
https://github.com/python/cpython/pull/106588
Backport of 20b7aac7ca60b0352d926340622e618bcbee54a8 from main

comment:4 by GitHub <noreply@…>, 6 months ago

In 00a950f9:

Refs #34900 -- Added Python 3.13 to daily builds.

comment:5 by GitHub <noreply@…>, 5 months ago

In 6af83d2e:

Refs #34900 -- Skipped argon2-cffi requirement on daily builds for Python 3.13.

comment:6 by GitHub <noreply@…>, 5 months ago

In 584fc49:

Refs #34900 -- Skipped Selenium requirement on daily builds for Python 3.13.

Selenium required trio and trio required cffi on Windows.

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 3 months ago

In bc8471f0:

Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.2+.

Python 3.12.2 bring back the skipped tests in the number of running
tests. Refs
https://github.com/python/cpython/commit/0a737639dcd3b7181250f5d56694b192eaddeef0

comment:8 by Mariusz Felisiak <felisiak.mariusz@…>, 3 months ago

In 1ba5afa:

[5.0.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.2+.

Python 3.12.2 bring back the skipped tests in the number of running
tests. Refs
https://github.com/python/cpython/commit/0a737639dcd3b7181250f5d56694b192eaddeef0

Backport of bc8471f0aac8f0c215b9471b594d159783bac19b from main

comment:9 by Mariusz Felisiak <felisiak.mariusz@…>, 3 months ago

In 86d8034:

[4.2.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.2+.

Python 3.12.2 bring back the skipped tests in the number of running
tests. Refs
https://github.com/python/cpython/commit/0a737639dcd3b7181250f5d56694b192eaddeef0

Backport of bc8471f0aac8f0c215b9471b594d159783bac19b from main

comment:10 by GitHub <noreply@…>, 2 months ago

In 3426a5c3:

Refs #34900 -- Fixed CommandTypes.test_help_default_options_with_custom_arguments test on Python 3.13+.

https://github.com/python/cpython/commit/c4a2e8a2c5188c3288d57b80852e92c83f46f6f3

comment:11 by GitHub <noreply@…>, 7 weeks ago

In b231bcd1:

Refs #34900 -- Fixed SafeMIMEText.set_payload() crash on Python 3.13.

Payloads with surrogates are passed to the set_payload() since
https://github.com/python/cpython/commit/f97f25ef5dfcdfec0d9a359fd970abd139cf3428

comment:12 by Sarah Boyce <42296566+sarahboyce@…>, 3 weeks ago

In 338ec052:

Refs #35361 -- Added test for Email line length checks when dealing with surrogate pairs.

Refs #33173, #34118 and #34900.

comment:13 by Sarah Boyce <42296566+sarahboyce@…>, 3 weeks ago

In 2e6ae1e9:

[5.0.x] Refs #34900, Refs #35361 -- Fixed SafeMIMEText.set_payload() crash on Python 3.13.

Payloads with surrogates are passed to the set_payload() since
https://github.com/python/cpython/commit/f97f25ef5dfcdfec0d9a359fd970abd139cf3428

Backport of b231bcd19e57267ce1fc21d42d46f0b65fdcfcf8 from main.

comment:14 by Sarah Boyce <42296566+sarahboyce@…>, 3 weeks ago

In 0d3ddcaf:

[4.2.x] Refs #34900, Refs #35361 -- Fixed SafeMIMEText.set_payload() crash on Python 3.13.

Payloads with surrogates are passed to the set_payload() since
https://github.com/python/cpython/commit/f97f25ef5dfcdfec0d9a359fd970abd139cf3428

Backport of b231bcd19e57267ce1fc21d42d46f0b65fdcfcf8 from main.

Note: See TracTickets for help on using tickets.
Back to Top