Files
2026-04-23 11:04:44 +08:00

27 lines
952 B
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.
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "jiangchang-desktop-sdk"
version = "0.5.0"
description = "匠厂桌面应用自动化测试 SDK + 共享 pytest plugin"
requires-python = ">=3.10"
dependencies = ["playwright>=1.42.0"]
[project.optional-dependencies]
testing = ["pytest>=7.0"]
# 注意:本 SDK **故意不注册 `[project.entry-points.pytest11]`**。
#
# plugin 的加载**单一入口**是每个 skill 的 `tests/desktop/conftest.py`
# 通过显式 `pytest_plugins = ["jiangchang_desktop_sdk.testing.plugin"]` 声明。
# 这样做的好处:
# - 保证不管 SDK 是 `pip install -e` 装的、还是仅通过 sys.path 注入的,
# plugin 的注册方式完全一致;
# - 避免 entry-point 与 `pytest_plugins` 同时生效导致 pluggy 抛
# `Plugin already registered under a different name`。
[tool.setuptools.packages.find]
where = ["src"]