70 lines
1.9 KiB
TOML
70 lines
1.9 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "lilith-service-fastapi-bootstrap"
|
|
version = "4.2.0"
|
|
description = "Base utilities for FastAPI microservices with optional ML support"
|
|
requires-python = ">=3.10"
|
|
license = "MIT"
|
|
authors = [{ name = "Lilith", email = "quinn@ftw.codes" }]
|
|
keywords = ["fastapi", "microservice", "bootstrap", "ml", "ai"]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Framework :: FastAPI",
|
|
"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",
|
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
]
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.32.0",
|
|
"pydantic>=2.10.0",
|
|
"pydantic-settings>=2.6.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
redis = ["redis>=5.0.0"]
|
|
database = ["sqlalchemy>=2.0.0", "asyncpg>=0.29.0"]
|
|
ml = [
|
|
"lilith-model-boss>=4.0.0",
|
|
"lilith-model-boss-loaders>=1.0.0",
|
|
]
|
|
service-addresses = ["lilith-service-addresses>=1.0.0"] # For dependency startup (v2.0+)
|
|
all = ["lilith-service-fastapi-bootstrap[redis,database,ml,service-addresses]"]
|
|
dev = ["pytest>=7.0", "pytest-asyncio>=0.21", "httpx>=0.25.0"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/lilith_service_fastapi_bootstrap"]
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
include = [
|
|
"/src",
|
|
"/tests",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
src = ["src", "tests"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
|
|
|
|
[tool.lilith]
|
|
registry = "forgejo"
|