66 lines
1.5 KiB
TOML
66 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "local-api-docs-search"
|
|
version = "0.1.0"
|
|
description = "A CLI tool that indexes local API documentation and enables natural language semantic search"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "Developer", email = "dev@example.com"}
|
|
]
|
|
keywords = ["cli", "documentation", "search", "openapi", "semantic-search"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
|
|
dependencies = [
|
|
"click>=8.1.0",
|
|
"sentence-transformers>=3.0.0",
|
|
"pyyaml>=6.0",
|
|
"rich>=13.0.0",
|
|
"chromadb>=0.5.0",
|
|
"openapi-spec-validator>=0.7.0",
|
|
"python-dotenv>=1.0.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
api-docs = "src.main:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"black>=23.0.0",
|
|
"ruff>=0.1.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_functions = ["test_*"]
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ["py310"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.api-docs]
|
|
index-path = "./docs"
|
|
model-name = "all-MiniLM-L6-v2"
|
|
embedding-device = "cpu"
|
|
chroma-persist-dir = "./.api-docs/chroma"
|