Skip to content

Commit 12ec9c4

Browse files
committed
Updated dependencies and minimal requirements in setup.py
This fixes a DoS security issue in python-multipart. Drop xPython 3.7 support.
1 parent 11862b0 commit 12ec9c4

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ amount of consumables and vouch for other users in case of high debts.
1515

1616
### Pre-requirements
1717

18-
- Python >= 3.7
18+
- Python >= 3.8
1919
- pip >= 18
2020

2121
### Installation & configuration

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ argon2-cffi>=21.2.0,<22.0
55
fastapi==0.88.0
66
pydantic[dotenv]>=1.10.0,<2.0
77
python-jose>=3.3.0,<4.0
8-
python-multipart==0.0.5
8+
python-multipart>=0.0.7
99
requests>=2.27.0,<3.0
1010
SQLAlchemy>=1.4.30,<2.0
1111
ujson>=5.2.0,<6.0

setup.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,32 @@ def get_packages(package: str) -> List[str]:
3535
install_requires=[
3636
"aiohttp>=3.8,<4.0",
3737
"alembic>=1.7.6,<2.0",
38-
"fastapi==0.74.1",
39-
"pydantic>=1.8.2,<2.0",
38+
"fastapi==0.88.0",
39+
"pydantic>=1.10.0,<2.0",
4040
"python-jose>=3.3.0,<4.0",
41-
"python-multipart==0.0.5",
42-
"requests>=2.26.0,<3.0",
41+
"python-multipart>=0.0.7",
42+
"requests>=2.27.0,<3.0",
4343
"SQLAlchemy>=1.4.30,<2.0",
44-
"uvicorn>=0.17.0,<1.0"
44+
"uvicorn>=0.20.0,<1.0"
4545
],
4646
extra_requires={
4747
"full": [
4848
"aiofiles>=0.8.0,<1.0",
49-
"ujson>=4.0,<5.0"
49+
"ujson>=5.2,<6.0"
5050
]
5151
},
5252
project_urls={},
53-
python_requires=">=3.7",
53+
python_requires=">=3.8",
5454
classifiers=[
5555
"Operating System :: OS Independent",
5656
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
5757
"Topic :: Internet :: WWW/HTTP :: WSGI",
5858
"Programming Language :: Python :: 3",
59-
"Programming Language :: Python :: 3.7",
6059
"Programming Language :: Python :: 3.8",
6160
"Programming Language :: Python :: 3.9",
6261
"Programming Language :: Python :: 3.10",
62+
"Programming Language :: Python :: 3.11",
63+
"Programming Language :: Python :: 3.12",
6364
"Development Status :: 3 - Alpha"
6465
]
6566
)

0 commit comments

Comments
 (0)