Skip to content

Commit

Permalink
chore: Bumps pytest version to avoids CWE-1333 (#174)
Browse files Browse the repository at this point in the history
* chore: Bumps pytest version

* chore: Updates version specifiers

* docs: Updates makefile

* chore: Updates Pillow specifier
  • Loading branch information
frgfm authored Oct 25, 2023
1 parent 59600d0 commit 0f8a92d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lock:
poetry lock
poetry export -f requirements.txt --without-hashes --output requirements.txt
poetry export -f requirements.txt --without-hashes --dev --output requirements-dev.txt
poetry export -f requirements.txt --without-hashes --with dev --output requirements-dev.txt

# Run the docker
run:
Expand Down
4 changes: 2 additions & 2 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ python = "^3.8"
uvicorn = ">=0.11.1"
fastapi = ">=0.65.2,<1.0.0"
python-multipart = "==0.0.5"
Pillow = ">=8.4.0"
Pillow = ">=8.4.0,!=9.2.0"
onnxruntime = "^1.10.0"
huggingface-hub = ">=0.4.0,<1.0.0"
numpy = "^1.19.5"


[tool.poetry.dev-dependencies]
pytest = ">=5.3.2,<8.0.0"
pytest = ">=7.2.0,<8.0.0"
pytest-asyncio = ">=0.14.0,<1.0.0"
httpx = ">=0.23.0"
requests = "^2.31.0"
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ dependencies = [

[project.optional-dependencies]
test = [
"pytest>=5.3.2",
# cf. https://cwe.mitre.org/data/definitions/1333.html
"pytest>=7.2.0,<8.0.0",
"coverage[toml]>=4.5.4",
]
training = [
Expand Down Expand Up @@ -68,7 +69,7 @@ docs = [
]
dev = [
# test
"pytest>=5.3.2",
"pytest>=7.2.0,<8.0.0",
"coverage[toml]>=4.5.4",
"requests>=2.20.0",
"torchvision>=0.4.0",
Expand Down

0 comments on commit 0f8a92d

Please sign in to comment.