Skip to content

Commit

Permalink
Updated dependencies and minimal requirements in setup.py
Browse files Browse the repository at this point in the history
This fixes a DoS security issue in python-multipart.
Drop xPython 3.7 support.
  • Loading branch information
CrsiX committed Feb 9, 2024
1 parent 11862b0 commit 12ec9c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ amount of consumables and vouch for other users in case of high debts.

### Pre-requirements

- Python >= 3.7
- Python >= 3.8
- pip >= 18

### Installation & configuration
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ argon2-cffi>=21.2.0,<22.0
fastapi==0.88.0
pydantic[dotenv]>=1.10.0,<2.0
python-jose>=3.3.0,<4.0
python-multipart==0.0.5
python-multipart>=0.0.7
requests>=2.27.0,<3.0
SQLAlchemy>=1.4.30,<2.0
ujson>=5.2.0,<6.0
Expand Down
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,32 @@ def get_packages(package: str) -> List[str]:
install_requires=[
"aiohttp>=3.8,<4.0",
"alembic>=1.7.6,<2.0",
"fastapi==0.74.1",
"pydantic>=1.8.2,<2.0",
"fastapi==0.88.0",
"pydantic>=1.10.0,<2.0",
"python-jose>=3.3.0,<4.0",
"python-multipart==0.0.5",
"requests>=2.26.0,<3.0",
"python-multipart>=0.0.7",
"requests>=2.27.0,<3.0",
"SQLAlchemy>=1.4.30,<2.0",
"uvicorn>=0.17.0,<1.0"
"uvicorn>=0.20.0,<1.0"
],
extra_requires={
"full": [
"aiofiles>=0.8.0,<1.0",
"ujson>=4.0,<5.0"
"ujson>=5.2,<6.0"
]
},
project_urls={},
python_requires=">=3.7",
python_requires=">=3.8",
classifiers=[
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha"
]
)

0 comments on commit 12ec9c4

Please sign in to comment.