Skip to content

Commit e55a4fb

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 b584875 commit e55a4fb

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

pyproject.toml

+26-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22
#
3-
# Copyright (C) 2023 Collabora Limited
3+
# Copyright (C) 2023, 2024 Collabora Limited
44
# Author: Guillaume Tucker <[email protected]>
5+
# Author: Jeny Sadadia <[email protected]>
56

67
[project]
78
name = "kernelci-api"
@@ -11,18 +12,37 @@ readme = "README.md"
1112
requires-python = ">=3.10"
1213
license = {text = "LGPL-2.1-or-later"}
1314
dependencies = [
14-
"aioredis[hiredis] == 2.0.0",
1515
"cloudevents == 1.9.0",
1616
"fastapi[all] == 0.68.1",
1717
"fastapi-pagination == 0.9.3",
18+
"fastapi-users[beanie, oauth] == 10.4.0",
19+
"fastapi-versioning == 0.10.0",
20+
"MarkupSafe == 2.0.1",
21+
"motor == 2.5.1",
1822
"passlib == 1.7.4",
1923
"pydantic == 1.10.5",
20-
"python-jose[cryptography] == 3.3.0",
21-
"uvicorn[standard] == 0.13.4",
22-
"motor == 2.5.1",
2324
"pymongo-migrate == 0.11.0",
25+
"python-jose[cryptography] == 3.3.0",
2426
"pyyaml == 5.3.1",
25-
"fastapi-versioning == 0.10.0",
27+
"redis == 5.0.1",
28+
"uvicorn[standard] == 0.13.4",
29+
]
30+
31+
[project.optional-dependencies]
32+
tests = [
33+
"fakeredis == 2.20.0",
34+
"pytest == 6.2.5",
35+
"pytest-asyncio == 0.16.0",
36+
"pytest-dependency == 0.5.1",
37+
"pytest-mock == 3.6.1",
38+
"pytest-order == 1.0.1",
39+
"httpx == 0.23.3",
40+
"mongomock_motor == 0.0.21",
41+
]
42+
dev = [
43+
"kernelci-api[tests]",
44+
"pycodestyle == 2.8.0",
45+
"pylint == 2.12.2",
2646
]
2747

2848
[project.urls]

0 commit comments

Comments
 (0)