forked from openfoodfacts/openfoodfacts-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (62 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
70 lines (62 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[project]
name = "openfoodfacts"
version = "3.3.0"
authors = [
{name = "The Open Food Facts team", email = "contact@openfoodfacts.org"}
]
description = "Official Python SDK of Open Food Facts"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"requests>=2.20.0",
"pydantic>=2.0.0,<3.0.0",
"tqdm>=4.0.0,<5.0.0",
]
dynamic = ["classifiers"]
[tool.poetry]
include = [
{path = "tests", format = "sdist"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[project.urls]
repository = "https://github.com/openfoodfacts/openfoodfacts-python"
[tool.mypy]
ignore_missing_imports = true
[tool.isort] # From https://black.readthedocs.io/en/stable/compatible_configs.html#isort
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
redis = { version = "~6.4.0", optional = true, extras = ["hiredis"] }
Pillow = { version = ">=9.3,<12", optional = true }
tritonclient = {extras = ["grpc"], version = ">2.0.0,<3.0.0", optional = true}
opencv-python-headless = {version = ">4.0.0,<5.0.0", optional = true}
[tool.poetry.group.dev.dependencies]
requests-mock = "1.12.1"
flake8 = "7.3.0"
black = "25.1.0"
mypy = "1.17.1"
isort = "6.0.1"
coverage = {version = "7.10.4", extras = ["toml"]}
pytest = "8.4.1"
types-requests = "2.32.4.20250809"
types-tqdm = "4.67.0.20250809"
types-redis = "^4.6.0.20240425"
[project.optional-dependencies]
redis = ["redis"]
pillow = ["Pillow"]
ml = ["tritonclient[grpc]", "opencv-python-headless", "Pillow", "albumentations>=2.0.0"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"