Files
openbot 96d1e0ccef chore: bump 0.1.1(arrow 落盘修复 + README 全量补全随版发布)
pyproject/__init__/uv.lock 三处版本对齐 0.1.1;README 当前版本与
安装示例同步,设计文档实现状态补 0.1.1 记录。255 passed / 100%。
2026-09-29 08:40:06 +08:00

91 lines
2.9 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
name = "pyquantdata"
version = "0.1.1"
description = "quantdata: 单目录自包含的量化数据中台 CLI(A股/美股/港股),init 建库回填,serve 常驻更新 + FastAPI 对外服务"
readme = "README.md"
# 排除 3.14:该版本 Windows 上 asyncio ProactorEventLoop 的 socket.socketpair()
# 回退分支会死锁(asyncio.run 建 loop 即挂),serve 常驻与全部异步测试不可用。
requires-python = ">=3.11,<3.14"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "openbot-coder" }]
keywords = ["quant", "market-data", "duckdb", "stock", "kline", "backtest-data"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Database :: Front-Ends",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
]
dependencies = [
"duckdb>=1.1",
"fastapi>=0.115",
"uvicorn>=0.30",
"pyarrow>=17",
"sqlglot>=25",
"typer>=0.12",
"rich>=13",
"pydantic>=2.8",
"pytdxdata>=0.6",
"psutil>=6",
# duckdb 读写 TIMESTAMPTZ 列需要 pytz;zoneinfo 需要 tzdata(Windows 无系统 tz 库)
"pytz>=2024.1",
"tzdata>=2024.1",
]
[project.scripts]
quantdata = "pyquantdata.cli:main"
[project.urls]
Homepage = "https://github.com/openbot-coder/pyquantdata"
Repository = "https://github.com/openbot-coder/pyquantdata"
Documentation = "https://github.com/openbot-coder/pyquantdata/blob/main/docs/quantdata-design.md"
Issues = "https://github.com/openbot-coder/pyquantdata/issues"
[dependency-groups]
dev = [
"pytest>=8",
"pytest-asyncio>=0.24",
"pytest-cov>=5",
"pytest-timeout>=2.3",
"httpx>=0.27",
# [CI] 验收链需验证 arrow → DataFrame 生态解码路径(§9 附录 A)
"pandas>=2.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pyquantdata"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "strict"
filterwarnings = [
"ignore::DeprecationWarning:duckdb",
]
# 本机 safe-delete 钩子会拦 pytest 的 tmp 清理(报 SAFE_DELETE_BULK_CONFIRM_REQUIRED),
# 导致覆盖率检查被跳过。默认把 base temp 指到项目外即可绕开(CI 上无影响)。
addopts = ["--timeout=90", "--timeout-method=thread"]
[tool.coverage.run]
branch = false
source = ["pyquantdata"]
[tool.coverage.report]
show_missing = true
# §14 覆盖率排除白名单(评审 P0,验收前拍板):
# 1) uvicorn 真起服 / socket 层 —— 平台相关,CI 不稳;替代验证 = 每周 smoke workflow(真端口 curl /healthz)
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]