Skip to content

Commit 96ef5d7

Browse files
authored
1 parent 6a0d30d commit 96ef5d7

14 files changed

+10
-667
lines changed

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
strategy:
2121
matrix:
2222
python-version:
23-
- 3.8
2423
- 3.9
2524
- '3.10'
2625
- '3.11'

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
rev: v3.17.0
3535
hooks:
3636
- id: pyupgrade
37-
args: [--py38-plus]
37+
args: [--py39-plus]
3838
- repo: https://github.com/adamchainz/django-upgrade
3939
rev: 1.21.0
4040
hooks:

CHANGELOG.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Changelog
33
=========
44

5+
* Drop Python 3.8 support.
6+
57
* Support Python 3.13.
68

79
4.4.0 (2024-06-19)

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Some good resources to read on the subject are:
4747
Requirements
4848
------------
4949

50-
Python 3.8 to 3.13 supported.
50+
Python 3.9 to 3.13 supported.
5151

5252
Django 3.2 to 5.1 supported.
5353

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ maintainers = [
2222
authors = [
2323
{ name = "Otto Yiu", email = "[email protected]" },
2424
]
25-
requires-python = ">=3.8"
25+
requires-python = ">=3.9"
2626
classifiers = [
2727
"Development Status :: 5 - Production/Stable",
2828
"Environment :: Web Environment",
@@ -38,7 +38,6 @@ classifiers = [
3838
"Natural Language :: English",
3939
"Operating System :: OS Independent",
4040
"Programming Language :: Python :: 3 :: Only",
41-
"Programming Language :: Python :: 3.8",
4241
"Programming Language :: Python :: 3.9",
4342
"Programming Language :: Python :: 3.10",
4443
"Programming Language :: Python :: 3.11",

src/corsheaders/conf.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from __future__ import annotations
22

3-
from typing import List
4-
from typing import Pattern
5-
from typing import Sequence
6-
from typing import Tuple
3+
from collections.abc import Sequence
4+
from re import Pattern
75
from typing import Union
86
from typing import cast
97

@@ -53,7 +51,7 @@ def CORS_ALLOWED_ORIGINS(self) -> list[str] | tuple[str]:
5351
"CORS_ALLOWED_ORIGINS",
5452
getattr(settings, "CORS_ORIGIN_WHITELIST", ()),
5553
)
56-
return cast(Union[List[str], Tuple[str]], value)
54+
return cast(Union[list[str], tuple[str]], value)
5755

5856
@property
5957
def CORS_ALLOWED_ORIGIN_REGEXES(self) -> Sequence[str | Pattern[str]]:

src/corsheaders/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import re
4-
from typing import Awaitable
4+
from collections.abc import Awaitable
55
from typing import Callable
66
from urllib.parse import SplitResult
77
from urllib.parse import urlsplit

tests/requirements/compile.py

-40
Original file line numberDiff line numberDiff line change
@@ -21,46 +21,6 @@
2121
*sys.argv[1:],
2222
]
2323
run = partial(subprocess.run, check=True)
24-
run(
25-
[
26-
*common_args,
27-
"--python",
28-
"3.8",
29-
"--output-file",
30-
"py38-django32.txt",
31-
],
32-
input=b"Django>=3.2a1,<3.3",
33-
)
34-
run(
35-
[
36-
*common_args,
37-
"--python",
38-
"3.8",
39-
"--output-file",
40-
"py38-django40.txt",
41-
],
42-
input=b"Django>=4.0a1,<4.1",
43-
)
44-
run(
45-
[
46-
*common_args,
47-
"--python",
48-
"3.8",
49-
"--output-file",
50-
"py38-django41.txt",
51-
],
52-
input=b"Django>=4.1a1,<4.2",
53-
)
54-
run(
55-
[
56-
*common_args,
57-
"--python",
58-
"3.8",
59-
"--output-file",
60-
"py38-django42.txt",
61-
],
62-
input=b"Django>=4.2a1,<5.0",
63-
)
6424
run(
6525
[
6626
*common_args,

tests/requirements/py38-django32.txt

-143
This file was deleted.

0 commit comments

Comments
 (0)