Skip to content

Commit 66b4188

Browse files
author
Jeny Sadadia
committed
pyproject.toml: add missing modules to project deps
New python packages were added to `requirements.txt` after `fastapi-users` integration. Add all those packages to `pyproject.toml`. Also, re-order the existing packages to maintain package version dependencies. Added section for optional dependencies as well. The package can be installed with below commands including optional dependencies: To run API tests: `python3 -m pip install .[tests]` For developer mode: `python3 -m pip install .[dev]` Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 628a6d6 commit 66b4188

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

pyproject.toml

+25-5
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,40 @@ readme = "README.md"
1111
requires-python = ">=3.10"
1212
license = {text = "LGPL-2.1-or-later"}
1313
dependencies = [
14-
"aioredis[hiredis] == 2.0.0",
1514
"cloudevents == 1.9.0",
1615
"fastapi[all] == 0.68.1",
1716
"fastapi-pagination == 0.9.3",
17+
"fastapi-users[beanie, oauth] == 10.4.0",
18+
"fastapi-versioning == 0.10.0",
19+
"MarkupSafe == 2.0.1",
20+
"motor == 2.5.1",
1821
"passlib == 1.7.4",
1922
"pydantic == 1.10.5",
20-
"python-jose[cryptography] == 3.3.0",
21-
"uvicorn[standard] == 0.13.4",
22-
"motor == 2.5.1",
2323
"pymongo-migrate == 0.11.0",
24+
"python-jose[cryptography] == 3.3.0",
2425
"pyyaml == 5.3.1",
25-
"fastapi-versioning == 0.10.0",
26+
"redis == 5.0.1",
27+
"uvicorn[standard] == 0.13.4",
28+
]
29+
30+
[project.optional-dependencies]
31+
tests = [
32+
"fakeredis == 2.20.0",
33+
"pytest == 6.2.5",
34+
"pytest-asyncio == 0.16.0",
35+
"pytest-dependency == 0.5.1",
36+
"pytest-mock == 3.6.1",
37+
"pytest-order == 1.0.1",
38+
"httpx == 0.23.3",
39+
"mongomock_motor == 0.0.21",
40+
]
41+
dev = [
42+
"kernelci-api[tests]",
43+
"pycodestyle == 2.8.0",
44+
"pylint == 2.12.2",
2645
]
2746

47+
2848
[project.urls]
2949
Homepage = "https://kernelci.org"
3050
Documentation = "https://kernelci.org/docs"

0 commit comments

Comments
 (0)