Skip to content

Commit 4304dc1

Browse files
committed
chore: update pyproject.toml to tool-agnostic standard
Signed-off-by: Luiz Georg <luiz.georg@profusion.mobi>
1 parent 2069443 commit 4304dc1

3 files changed

Lines changed: 42 additions & 39 deletions

File tree

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apk update \
2020
postgresql \
2121
curl \
2222
&& python3 -m venv $POETRY_HOME \
23-
&& $POETRY_HOME/bin/pip install poetry==1.8.3 \
23+
&& $POETRY_HOME/bin/pip install poetry~=2.4.0 \
2424
&& ln -s $POETRY_HOME/bin/poetry /bin/poetry
2525

2626
FROM backend-base as kernelci-django-backend

backend/poetry.lock

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

backend/pyproject.toml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
[tool.poetry]
1+
[project]
22
name = "backend"
33
version = "0.1.0"
44
description = "Django Backend"
5-
authors = ["Your Name <you@example.com>"]
5+
requires-python = ">=3.12,<4"
66
readme = "README.md"
7-
packages = [{ include = 'kernelCI' }]
8-
9-
[tool.poetry.dependencies]
10-
python = "^3.12"
11-
django = "^5.2.11"
12-
djangorestframework = "^3.15.2"
13-
gunicorn = "^23.0.0"
14-
psycopg = "^3.1.19"
15-
django-query-builder = "^3.2.0"
16-
django-cors-headers = "^4.4.0"
17-
beautifulsoup4 = "^4.12.3"
18-
requests = "^2.32.4"
19-
pydantic = "^2.10.3"
20-
drf-spectacular = "^0.28.0"
21-
jinja2 = "^3.1.5"
22-
django-crontab = "^0.7.1"
23-
django-prometheus = "^2.3.1"
24-
redis = {extras = ["hiredis"], version = "^5.2.1"}
25-
kcidb_io = {git = "https://github.com/kernelci/kcidb-io.git"}
26-
prometheus-client = "^0.23.1"
7+
dependencies = [
8+
"django>=5.2.11,<6",
9+
"djangorestframework>=3.15.2,<4",
10+
"gunicorn>=23.0.0,<24",
11+
"psycopg>=3.1.19,<4",
12+
"django-query-builder>=3.2.0,<4",
13+
"django-cors-headers>=4.4.0,<5",
14+
"beautifulsoup4>=4.12.3,<5",
15+
"requests>=2.32.4,<3",
16+
"pydantic>=2.10.3,<3",
17+
"drf-spectacular>=0.28.0,<0.29",
18+
"jinja2>=3.1.5,<4",
19+
"django-crontab>=0.7.1,<0.8",
20+
"django-prometheus>=2.3.1,<3",
21+
"redis[hiredis]>=5.2.1,<6",
22+
"kcidb_io @ git+https://github.com/kernelci/kcidb-io.git",
23+
"prometheus-client>=0.23.1,<0.24",
24+
]
2725

28-
[tool.poetry.group.dev.dependencies]
29-
mypy = "^1.10.0"
30-
pytest = "^8.3.4"
31-
pytest-django = "^4.10.0"
32-
pytest-xdist = {extras = ["psutil"], version = "^3.6.1"}
33-
pytest-rerunfailures = "^15.0"
34-
pytest-cov = "^6.2.1"
35-
factory-boy = "^3.3.3"
36-
pytest-benchmark = "^5.2.3"
37-
ruff = "^0.15.9"
38-
pre-commit = "^4.5.1"
26+
[dependency-groups]
27+
dev = [
28+
"mypy>=1.10.0,<2",
29+
"pytest>=8.3.4,<9",
30+
"pytest-django>=4.10.0,<5",
31+
"pytest-xdist[psutil]>=3.6.1,<4",
32+
"pytest-rerunfailures>=15.0,<16",
33+
"pytest-cov>=6.2.1,<7",
34+
"factory-boy>=3.3.3,<4",
35+
"pytest-benchmark>=5.2.3,<6",
36+
"ruff>=0.15.9,<0.16",
37+
"pre-commit>=4.5.1,<5",
38+
]
3939

4040
[tool.pytest.ini_options]
4141
DJANGO_SETTINGS_MODULE = "kernelCI.settings"
@@ -46,6 +46,9 @@ markers = [
4646
"performance: marks tests as performance/benchmark tests (very slow, requires full setup)"
4747
]
4848

49+
[tool.poetry]
50+
package-mode = false
51+
4952
[build-system]
50-
requires = ["poetry-core"]
53+
requires = ["poetry-core>=1.0.0"]
5154
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)