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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ollama-web"
version = "0.5.0"
description = "Ollama web project"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE", "THIRD_PARTY_LICENSES.txt"]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ollama>=0.6.2",
"ddgs>=9.14.4",
"starlette>=0.37",
"uvicorn>=0.30",
"httpx>=0.27",
"beautifulsoup4>=4.12",
"jinja2>=3.1",
"pypdf>=4.0",
"python-multipart>=0.0.9",
"Pillow>=10.0",
"mcp>=1.6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.5",
"mypy>=1.10",
]
[project.scripts]
ollama-web = "ollama_web.main:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
ollama_web = [
"i18n/messages/*.json",
"prompts/*.json",
"static/*.css",
"static/*.js",
"static/vendor/*.css",
"static/vendor/*.js",
"static/vendor/*.map",
"static/vendor/fonts/*.ttf",
"static/vendor/fonts/*.woff",
"static/vendor/fonts/*.woff2",
"templates/*.html",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
filterwarnings = [
"ignore:Using `httpx` with `starlette.testclient` is deprecated.*:starlette.exceptions.StarletteDeprecationWarning",
]
[tool.mypy]
python_version = "3.10"
strict = true
|