Skip to content

Commit f969cc4

Browse files
committed
Convert to PEP 621 project metadata format
- Migrate pyproject.toml from Poetry-specific [tool.poetry] to standard [project] section - Update dependencies specification to use standard requires-python and dependencies arrays - Normalize license identifier to AGPL-3.0-only format - Maintain all Poetry-specific configuration in [tool.poetry] for compatibility - Update poetry.lock with latest dependency versions
1 parent cf60927 commit f969cc4

2 files changed

Lines changed: 48 additions & 47 deletions

File tree

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
[tool.poetry]
1+
[project]
22
name = "search-a-licious"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Open Food Facts team"]
6-
license = "AGPL-3.0 licence"
75
readme = "README.md"
8-
package-mode = false
9-
10-
[tool.poetry.dependencies]
11-
python = "^3.11"
12-
elasticsearch-dsl = "~8.9.0"
13-
fastapi = "~0.115.0"
14-
requests = "~2.32.4"
15-
redis = "~5.0.0"
16-
uvicorn = "~0.23.2"
17-
tqdm = "~4.66.1"
18-
cachetools = "~5.3.2"
19-
typer = "~0.9.0"
20-
luqum = "~0.13.0"
21-
pydantic-settings = "~2.0.3"
22-
sentry-sdk = {extras = ["fastapi"], version = "~1.34.0"}
23-
jinja2 = "~3.1.6"
24-
pyyaml = "~6.0.1"
25-
orjson = "~3.9.15"
26-
py-healthcheck = "^1.10.1"
27-
28-
29-
[tool.poetry.group.dev.dependencies]
30-
pytest = "^7.4.3"
31-
coverage = {extras = ["toml"], version = "^7.3.2"}
32-
pytest-cov = "^4.1.0"
33-
mypy = "^1.10.0"
34-
types-cachetools = "^5.3.0.7"
35-
types-requests = "^2.31.0.10"
36-
types-pyyaml = "^6.0.12.12"
37-
pre-commit = "^3.5.0"
38-
factory-boy = "^3.3.1"
39-
httpx = "^0.27.1"
6+
requires-python = ">=3.11,<4.0"
7+
license = "AGPL-3.0-only"
8+
authors = [{ name = "Open Food Facts team" }]
9+
dependencies = [
10+
"cachetools~=5.3.2",
11+
"elasticsearch-dsl~=8.9.0",
12+
"fastapi~=0.115.0",
13+
"jinja2~=3.1.6",
14+
"luqum~=0.13.0",
15+
"orjson~=3.9.15",
16+
"py-healthcheck>=1.10.1,<2.0.0",
17+
"pydantic-settings~=2.0.3",
18+
"pyyaml~=6.0.1",
19+
"redis~=5.0.0",
20+
"requests~=2.32.4",
21+
"sentry-sdk[fastapi]~=1.34.0",
22+
"tqdm~=4.66.1",
23+
"typer~=0.9.0",
24+
"uvicorn~=0.23.2",
25+
]
4026

4127
[build-system]
4228
requires = ["poetry-core"]
@@ -52,15 +38,6 @@ exclude = '''
5238
)/
5339
'''
5440

55-
[tool.mypy]
56-
ignore_missing_imports = true
57-
exclude = '''(?x)(
58-
.*\.cache/pre-commit/.* # avoid pre-commit cache
59-
)'''
60-
61-
[tool.isort]
62-
profile = "black"
63-
6441
[tool.coverage.run]
6542
data_file = ".cov/.coverage"
6643
source = ["app"]
@@ -70,3 +47,27 @@ output = ".cov/coverage.xml"
7047

7148
[tool.coverage.html]
7249
directory = ".cov/htmlcov"
50+
51+
[tool.isort]
52+
profile = "black"
53+
54+
[tool.mypy]
55+
ignore_missing_imports = true
56+
exclude = '''(?x)(
57+
.*\.cache/pre-commit/.* # avoid pre-commit cache
58+
)'''
59+
60+
[tool.poetry]
61+
package-mode = false
62+
63+
[tool.poetry.group.dev.dependencies]
64+
coverage = { extras = ["toml"], version = "^7.3.2" }
65+
factory-boy = "^3.3.1"
66+
httpx = "^0.27.1"
67+
mypy = "^1.10.0"
68+
pre-commit = "^3.5.0"
69+
pytest = "^7.4.3"
70+
pytest-cov = "^4.1.0"
71+
types-cachetools = "^5.3.0.7"
72+
types-pyyaml = "^6.0.12.12"
73+
types-requests = "^2.31.0.10"

0 commit comments

Comments
 (0)