[Django] #34233: Drop support for Python 3.8 & 3.9.

35 views
Skip to first unread message

Django

unread,
Dec 29, 2022, 12:26:32 AM12/29/22
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: Mariusz Felisiak
Felisiak |
Type: | Status: assigned
Cleanup/optimization |
Component: Core | Version: dev
(Other) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Django 4.2 LTS, supported until April 2026, is the last version to
support:
- Python 3.8 (end of life: October 2024)
- Python 3.9 (end of life: October 2025)

See [https://docs.djangoproject.com/en/dev/faq/install/#what-python-
version-can-i-use-with-django our policy about Python version support] and
discussions regarding the Python version support policy:

- https://groups.google.com/forum/#!topic/django-
developers/YDJwI7uvgxU/discussion
- https://groups.google.com/forum/#!msg/django-
developers/ezUpskYAcyo/discussion

--
Ticket URL: <https://code.djangoproject.com/ticket/34233>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 29, 2022, 12:27:10 AM12/29/22
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

This ticket should be "Someday/Maybe" until we start working on Django
5.0.

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:1>

Django

unread,
Dec 29, 2022, 10:39:42 PM12/29/22
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* stage: Unreviewed => Someday/Maybe


--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:2>

Django

unread,
Jan 17, 2023, 7:35:25 AM1/17/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/16467 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:3>

Django

unread,
Jan 18, 2023, 3:46:48 AM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed

Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"3bbe22dafcc69c5ffa79707f5a74eb1faf466e12" 3bbe22da]:
{{{
#!CommitTicketReference repository=""
revision="3bbe22dafcc69c5ffa79707f5a74eb1faf466e12"
Fixed #34233 -- Dropped support for Python 3.8 and 3.9.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:4>

Django

unread,
Jan 18, 2023, 6:58:06 AM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"a04565845ae3e766a1a4ec827a6e1f4fac335c3a" a045658]:
{{{
#!CommitTicketReference repository=""
revision="a04565845ae3e766a1a4ec827a6e1f4fac335c3a"
Refs #34233 -- Referenced isocalendar() results by names not indexes.

isocalendar() returns a namedtuple() instead of tuple in Python 3.9+
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:5>

Django

unread,
Jan 18, 2023, 7:45:51 AM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"26a395f27d86bbf65f330851c8136c33694ac867" 26a395f]:
{{{
#!CommitTicketReference repository=""
revision="26a395f27d86bbf65f330851c8136c33694ac867"
Refs #34233 -- Used aiter() and anext().

Available since Python 3.10.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:6>

Django

unread,
Jan 18, 2023, 11:28:14 AM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"fd21f82aa82b0d75a161f618ef944ebe0923e0ab" fd21f82a]:
{{{
#!CommitTicketReference repository=""
revision="fd21f82aa82b0d75a161f618ef944ebe0923e0ab"
Refs #34233 -- Used types.NoneType.

Available since Python 3.10 where it was reintroduced.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:7>

Django

unread,
Jan 18, 2023, 1:11:58 PM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"23e886886249ebe8f80a48b0d25fbb5308eeb06f" 23e88688]:
{{{
#!CommitTicketReference repository=""
revision="23e886886249ebe8f80a48b0d25fbb5308eeb06f"
Refs #34233 -- Used str.removeprefix()/removesuffix().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:8>

Django

unread,
Jan 18, 2023, 1:23:33 PM1/18/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"4470c2405c8dbb529501f9d78753e2aa4e9653a2" 4470c24]:
{{{
#!CommitTicketReference repository=""
revision="4470c2405c8dbb529501f9d78753e2aa4e9653a2"
Refs #34233 -- Used @functools.cache.

Python 3.9+ supports @functools.cache as an alias for
@functools.lru_cache(maxsize=None).
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:9>

Django

unread,
Jun 11, 2023, 8:58:01 AM6/11/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"e9bd5b4876a05efa078962aa8c51f8357e747156" e9bd5b48]:
{{{
#!CommitTicketReference repository=""
revision="e9bd5b4876a05efa078962aa8c51f8357e747156"
Refs #34233 -- Updated black target-version to Python 3.10.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:10>

Django

unread,
Jun 26, 2023, 8:23:04 AM6/26/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"370a021780b25123a410ffa771ed7d88b8760570" 370a0217]:
{{{
#!CommitTicketReference repository=""
revision="370a021780b25123a410ffa771ed7d88b8760570"
Refs #34233 -- Bumped minimum supported version of Selenium to 4.8.0.

This bumps minimum supported versions of selenium to the first release
to support Python 3.10.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:11>

Django

unread,
Aug 9, 2023, 6:41:58 AM8/9/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by GitHub <noreply@…>):

In [changeset:"80a5667c50d12b27a031a9ce0408a5b81bc4e684" 80a5667c]:
{{{
#!CommitTicketReference repository=""
revision="80a5667c50d12b27a031a9ce0408a5b81bc4e684"
Refs #34233 -- Bumped required cx_Oracle to 8.3.

This bumps minimum supported versions of cx_Oracle to the first release
to support Python 3.10.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:12>

Django

unread,
Sep 4, 2023, 4:57:20 PM9/4/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"6c6606aa014862f1a5c112d688d5e91c0cd9a8d8" 6c6606aa]:
{{{
#!CommitTicketReference repository=""
revision="6c6606aa014862f1a5c112d688d5e91c0cd9a8d8"
Refs #34233 -- Bumped minimum supported version of docutils to 0.19.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:13>

Django

unread,
Sep 13, 2023, 3:12:56 AM9/13/23
to django-...@googlegroups.com
#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"170b0a47b09d735132bcfdcc9b303397eb03b34b" 170b0a47]:
{{{
#!CommitTicketReference repository=""
revision="170b0a47b09d735132bcfdcc9b303397eb03b34b"
Refs #34233 -- Used @staticmethod with
TextChoices._generate_next_value_().

Now that Python 3.10 is the minimum supported version, we can decorate
_generate_next_value_() with @staticmethod. It wasn't possible before
as Python < 3.10 does not support calling static methods direct from
the class body.

https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:14>

Reply all
Reply to author
Forward
0 new messages