Files
pyquantdata/pyproject.toml
T
openbot 45711be1ef 补全 PyPI 发布元数据 + 修 README 相对链接死链
- pyproject:PEP 639 license 表达式 + license-files、keywords、classifiers、[project.urls]
- README:设计文档链接改 GitHub 绝对地址(PyPI 页面无相对链接死链)
- 踩坑记录:[project.urls] 段头插在 dependencies 前会把 deps 吞进 urls 表
  (uv lock 静默砍掉 20 个依赖),已修并以 tomllib 结构自证(deps=12, urls=4)
2026-09-24 09:15:43 +08:00

91 lines
2.9 KiB
TOML
Raw 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.0"
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",
]