Skip to content

Commit 7468dcf

Browse files
committed
Drop support for python 3.7 and 3.8, add 3.13
Python 3.7 and 3.8 have reached their end of life, and support for them has been dropped by upstream libraries we rely on.
1 parent 1326eb7 commit 7468dcf

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

.github/workflows/type_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python: [3.7, 3.8, 3.9, '3.10']
13+
python: [3.9, '3.10', '3.11', '3.12', '3.13']
1414

1515
steps:
1616
- uses: actions/checkout@v3

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', 'pypy3.9']
13+
python: [3.9, '3.10', '3.11', '3.12', '3.13', 'pypy3.9']
1414

1515
steps:
1616
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/PyCQA/flake8
13-
rev: 4.0.1
13+
rev: 7.1.1
1414
hooks:
1515
- id: flake8
1616
additional_dependencies: [flake8-bugbear]

flask_jwt_extended/typing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import sys
21
from datetime import timedelta
2+
from typing import Literal
33
from typing import Union
44

5-
if sys.version_info >= (3, 8):
6-
from typing import Literal # pragma: no cover
7-
else:
8-
from typing_extensions import Literal # pragma: no cover
9-
105
ExpiresDelta = Union[Literal[False], timedelta]
116
Fresh = Union[bool, float, timedelta]

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@
3232
"Werkzeug>=0.14", # Needed for SameSite cookie functionality
3333
"Flask>=2.0,<4.0",
3434
"PyJWT>=2.0,<3.0",
35-
"typing_extensions>=3.7.4; python_version<'3.8'", # typing.Literal
3635
],
3736
extras_require={"asymmetric_crypto": ["cryptography>=3.3.1"]},
38-
python_requires=">=3.7,<4",
37+
python_requires=">=3.9,<4",
3938
classifiers=[
4039
"Development Status :: 5 - Production/Stable",
4140
"Environment :: Web Environment",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py37,py38,py39,py310,py311,py312,pypy3.9,flask21,flask2x,mypy,coverage,style,docs
7+
envlist = py39,py310,py311,py312,py313,pypy3.9,flask21,flask2x,mypy,coverage,style,docs
88

99
[testenv]
1010
commands =

0 commit comments

Comments
 (0)