Skip to content

Commit

Permalink
[chore]: clean API dependencies (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixT2K authored Aug 28, 2023
1 parent 1f0169b commit e937217
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,23 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "doctr-api"
version = "0.6.1a0"
version = "0.7.0a0"
description = "Backend template for your OCR API with docTR"
authors = ["Mindee <[email protected]>"]
license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.8.2,<3.11" # pypdfium2 needs a python version above 3.8.2
tensorflow = ">=2.11.0,<3.0.0"
tensorflow-addons = ">=0.17.1"
python-doctr = {git = "https://github.com/mindee/doctr.git", extras = ['tf'], branch = "main" }
# Fastapi: minimum version required to avoid pydantic error
# cf. https://github.com/tiangolo/fastapi/issues/4168
fastapi = ">=0.73.0"
uvicorn = ">=0.11.1"
python-multipart = "==0.0.5"
# Protobuf: pin version otherwise errors
# See https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
protobuf= "<=3.20.2"
python-multipart = ">=0.0.5"

[tool.poetry.dev-dependencies]
pytest = ">=5.3.2,<8.0.0"
pytest-asyncio = ">=0.14.0,<1.0.0"
pytest = ">=5.3.2"
pytest-asyncio = ">=0.14.0"
httpx = ">=0.23.0"
requests = "^2.20.0"
requests = ">=2.20.0"
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ testing = [
quality = [
"ruff>=0.0.260",
"isort>=5.7.0",
"black>=22.1,<24.0",
"black>=22.1",
"mypy>=0.812",
"pydocstyle[toml]>=6.1.1",
"pre-commit>=2.17.0",
Expand All @@ -93,7 +93,7 @@ docs = [
dev = [
# Tensorflow
"tensorflow>=2.11.0,<3.0.0", # cf. https://github.com/mindee/doctr/pull/1182
"tf2onnx>=1.14.0,<2.0.0",
"tf2onnx>=1.15.1,<2.0.0", # cf.https://github.com/onnx/tensorflow-onnx/releases/tag/v1.15.1
# PyTorch
"torch>=1.12.0,<3.0.0",
"torchvision>=0.13.0",
Expand All @@ -108,7 +108,7 @@ dev = [
# Quality
"ruff>=0.0.260",
"isort>=5.7.0",
"black>=22.1,<24.0",
"black>=22.1",
"mypy>=0.812",
"pydocstyle[toml]>=6.1.1",
"pre-commit>=2.17.0",
Expand Down

0 comments on commit e937217

Please sign in to comment.