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
90 lines (79 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
90 lines (79 loc) · 2.46 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[project]
name = "openfoodfacts"
dynamic = ["version"]
authors = [
{name = "The Open Food Facts team", email = "contact@openfoodfacts.org" }
]
description = "Official Python SDK of Open Food Facts"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.9"
dependencies = [
"requests>=2.20.0",
"pydantic>=1.10.0,<2.0.0",
]
[tool.setuptools]
zip-safe = false
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.txt", "*.rst"]
[tool.setuptools.packages.find]
exclude = ["tests*"]
[tool.setuptools.dynamic]
version = {attr = "openfoodfacts.__version__"}
[tool.poetry]
name = "openfoodfacts"
version = "2.6.1"
description = "Official Python SDK of Open Food Facts"
authors = ["The Open Food Facts team"]
license = "MIT"
readme = "README.md"
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.9,<4.0"
requests = ">=2.20.0"
pydantic = ">=2.0.0,<3.0.0"
tqdm = ">=4.0.0,<5.0.0"
redis = { version = "~5.1.0", optional = true, extras = ["hiredis"] }
Pillow = { version = ">=9.3,<11", 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.11.0"
flake8 = "6.0.0"
black = "24.3.0"
mypy = "1.12.0"
isort = "5.12.0"
coverage = {version = "7.2.7", extras = ["toml"]}
pytest = "7.4.2"
types-requests = "2.31.0.2"
types-tqdm = "4.66.0.20240417"
types-redis = "^4.6.0.20240425"
[tool.poetry.extras]
redis = ["redis"]
pillow = ["Pillow"]
ml = ["tritonclient", "opencv-python-headless", "Pillow"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"