[project]
name = "acong-tech-xiangqin"
version = "0.7.0"
description = "相亲平台 CLI — 虚拟信封私信商业模式（xq 命令 + xiangqin skill 配套）"
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "acong-tech", email = "yarnbgpt@gmail.com"}]
keywords = ["相亲", "matchmaking", "cli", "claude-code", "openclaw"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Environment :: Console",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3.12",
    "Topic :: Communications",
]
requires-python = ">=3.12"
dependencies = [
    "click>=8.1",
    "fastapi>=0.115",
    "uvicorn[standard]>=0.32",
    "python-multipart>=0.0.20",
    "pydantic>=2.9",
    "ulid-py>=1.1",
    "httpx[socks]>=0.27,<1.0",
    "oss2>=2.18",
    "cryptography>=43",
    "qrcode>=7.4",
]

[dependency-groups]
dev = [
    "pytest>=8.3",
    "pytest-asyncio>=0.24",
    "pytest-cov>=5.0",
    "ruff>=0.15",
    "genbadge[tests,coverage]>=1.1",
]
docs = [
    "mkdocs-material>=9.5",
    "pymdown-extensions>=10.7",
]

[project.scripts]
xq = "xiangqin.cli:cli"
xiangqin-server = "xiangqin.app:run"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/xiangqin"]

[tool.ruff]
line-length = 100
target-version = "py312"

[tool.pytest.ini_options]
addopts = "--cov=xiangqin --cov-report=term --cov-report=xml:coverage.xml --cov-fail-under=70 --junitxml=junit.xml"
testpaths = ["test"]

[tool.coverage.run]
source = ["src/xiangqin"]

[tool.coverage.report]
exclude_also = [
    "raise NotImplementedError",
    "if __name__ == .__main__.:",
    "if TYPE_CHECKING:",
]
