27 lines
727 B
TOML
27 lines
727 B
TOML
# WOV SDK 项目配置:使用 uv 管理环境与依赖。
|
|
[project]
|
|
name = "wov-sdk"
|
|
version = "0.1.0"
|
|
description = "WOV node protocol and SDK"
|
|
requires-python = ">=3.11"
|
|
|
|
# 开发依赖放在 dev 组,由 uv sync 默认安装。
|
|
[dependency-groups]
|
|
dev = ["pytest", "pytest-cov"]
|
|
|
|
# pytest 配置:只扫描 tests 目录,并强制 100% 行覆盖率。
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "--cov=wov_sdk --cov-report=term-missing --cov-fail-under=100"
|
|
|
|
# 作为可发布包处理,便于节点仓库通过路径依赖引用。
|
|
[tool.uv]
|
|
package = true
|
|
|
|
# 使用 src 布局,源码位于 src/wov_sdk。
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src"}
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|