feat: improve compatiblity with certain apps (#72)

* feat: enable modern packaging via pyproject.toml

uvx --from (...) chatmock should just work !

* feat(ollama): add version endpoint

* feat(logging): improve verbose diagnostics

* fix(stream): always send stop chunk
This commit is contained in:
Magniquick
2025-11-19 15:32:20 +05:30
committed by GitHub
parent a4b9ae9471
commit 13b1dddf75
11 changed files with 541 additions and 81 deletions

29
pyproject.toml Normal file
View File

@@ -0,0 +1,29 @@
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "chatmock"
version = "0.1.0"
requires-python = ">=3.13"
dependencies = [
"certifi==2025.8.3",
"click==8.2.1",
"flask==3.1.1",
"idna==3.10",
"itsdangerous==2.2.0",
"jinja2==3.1.6",
"markupsafe==3.0.2",
"requests==2.32.5",
"urllib3==2.5.0",
"werkzeug==3.1.3",
]
[project.scripts]
chatmock = "chatmock.cli:main"
[tool.setuptools.packages.find]
include = ["chatmock*"]
[tool.setuptools.package-data]
chatmock = ["prompt.md", "prompt_gpt5_codex.md"]