Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (53 loc) · 1.72 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (53 loc) · 1.72 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
# File: pyproject.toml
[project]
name = "webai-to-api"
version = "0.7.2"
description = "WebAI-to-API is a modular web server built with FastAPI, designed to manage requests across AI services."
authors = [
{ name = "Mohammad", email = "m.khani2810@gmail.com" },
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.11,<3.13"
dynamic = ["dependencies"]
[tool.poetry]
packages = [
{ include = "app", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
fastapi = ">=0.115.7,<0.130.0"
jinja2 = ">=3.1.0,<4.0.0"
browser-cookie3 = ">=0.20.1,<0.21.0"
httpx = ">=0.28.1,<0.29.0"
curl-cffi = ">=0.7.4"
gemini-webapi = "==2.1.1"
uvicorn = {extras = ["standard"], version = ">=0.34.0,<0.41.0"}
# Windows-specific dependencies for cookie decryption
# These will only be installed on Windows systems
pywin32 = { version = "==308", platform = "win32" }
pycryptodomex = { version = ">=3.24.0,<4.0.0", platform = "win32" }
tomli = "^2.2.1"
python-multipart = "^0.0.32"
aiohttp-socks = "^0.11.0"
playwright = "^1.60.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.4"
pytest-asyncio = "^0.26"
pytest-mock = "^3.16.0"
pytest-cov = "^6.0.0"
pytest-timeout = "^2.3.1"
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = ["tests"]
asyncio_default_test_loop_scope = "function"
timeout = 30
# Temporary workaround for Starlette using deprecated anyio.abc.BlockingPortal.
# Remove once Starlette no longer emits this warning.
# Tracking: #142
filterwarnings = [
"ignore:The anyio\\.abc\\.BlockingPortal alias is deprecated, use anyio\\.from_thread\\.BlockingPortal instead\\.:DeprecationWarning:starlette\\.testclient",
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"