mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-26 12:31:25 +08:00
Drop Python 3.7 support
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python_version: [3.7, 3.8, 3.9, '3.10', '3.11']
|
python_version: [3.8, 3.9, '3.10', '3.11']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
4
.github/workflows/documentation.yml
vendored
4
.github/workflows/documentation.yml
vendored
@ -13,10 +13,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
import sys
|
from typing import Generic, Optional, Protocol
|
||||||
from typing import Generic, Optional
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
from fastapi_users import models
|
from fastapi_users import models
|
||||||
from fastapi_users.manager import BaseUserManager
|
from fastapi_users.manager import BaseUserManager
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
import sys
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Any, Dict, Generic, Optional
|
from typing import Any, Dict, Generic, Optional, Protocol
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
from fastapi_users.authentication.strategy.db.models import AP
|
from fastapi_users.authentication.strategy.db.models import AP
|
||||||
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
import sys
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import TypeVar
|
from typing import Protocol, TypeVar
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
from fastapi_users import models
|
from fastapi_users import models
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
import sys
|
from typing import Protocol
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
from fastapi import Response
|
from fastapi import Response
|
||||||
from fastapi.security.base import SecurityBase
|
from fastapi.security.base import SecurityBase
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
import sys
|
from typing import Literal, Optional
|
||||||
from typing import Optional
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Literal # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Literal # pragma: no cover
|
|
||||||
|
|
||||||
from fastapi import Response, status
|
from fastapi import Response, status
|
||||||
from fastapi.security import APIKeyCookie
|
from fastapi.security import APIKeyCookie
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
import sys
|
from typing import Generic, List, Optional, Protocol, TypeVar
|
||||||
from typing import Generic, List, Optional, TypeVar
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
ID = TypeVar("ID")
|
ID = TypeVar("ID")
|
||||||
|
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
import sys
|
from typing import Optional, Protocol, Tuple
|
||||||
from typing import Optional, Tuple
|
|
||||||
|
|
||||||
if sys.version_info < (3, 8):
|
|
||||||
from typing_extensions import Protocol # pragma: no cover
|
|
||||||
else:
|
|
||||||
from typing import Protocol # pragma: no cover
|
|
||||||
|
|
||||||
from passlib import pwd
|
from passlib import pwd
|
||||||
from passlib.context import CryptContext
|
from passlib.context import CryptContext
|
||||||
|
@ -115,7 +115,6 @@ classifiers = [
|
|||||||
"Framework :: FastAPI",
|
"Framework :: FastAPI",
|
||||||
"Framework :: AsyncIO",
|
"Framework :: AsyncIO",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"Programming Language :: Python :: 3.7",
|
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
@ -123,7 +122,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3 :: Only",
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
"Topic :: Internet :: WWW/HTTP :: Session",
|
"Topic :: Internet :: WWW/HTTP :: Session",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fastapi >=0.65.2",
|
"fastapi >=0.65.2",
|
||||||
"passlib[bcrypt] ==1.7.4",
|
"passlib[bcrypt] ==1.7.4",
|
||||||
@ -131,7 +130,6 @@ dependencies = [
|
|||||||
"pyjwt[crypto] ==2.7.0",
|
"pyjwt[crypto] ==2.7.0",
|
||||||
"python-multipart ==0.0.6",
|
"python-multipart ==0.0.6",
|
||||||
"makefun >=1.11.2,<2.0.0",
|
"makefun >=1.11.2,<2.0.0",
|
||||||
"typing-extensions >=4.1.1; python_version < '3.8'",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
@ -142,7 +140,7 @@ beanie = [
|
|||||||
"fastapi-users-db-beanie >=1.0.0",
|
"fastapi-users-db-beanie >=1.0.0",
|
||||||
]
|
]
|
||||||
oauth = [
|
oauth = [
|
||||||
"httpx-oauth >=0.4,<0.12"
|
"httpx-oauth >=0.13"
|
||||||
]
|
]
|
||||||
redis = [
|
redis = [
|
||||||
"redis >=4.3.3,<5.0.0",
|
"redis >=4.3.3,<5.0.0",
|
||||||
|
Reference in New Issue
Block a user