From 24e5aec77e4c3440f4aa4724b539caa1616fa580 Mon Sep 17 00:00:00 2001 From: Haili Zhang Date: Fri, 21 Aug 2026 02:34:00 +0800 Subject: [PATCH] build: exclude private release artifacts --- pyproject.toml | 3 +++ tests/unit/test_release_artifacts.py | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/unit/test_release_artifacts.py diff --git a/pyproject.toml b/pyproject.toml index 9579044..c6be7f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,9 @@ dev = [ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build] +exclude = ["/.superpowers"] + [tool.hatch.build.targets.wheel] packages = ["src/agentseek_api"] diff --git a/tests/unit/test_release_artifacts.py b/tests/unit/test_release_artifacts.py new file mode 100644 index 0000000..080257c --- /dev/null +++ b/tests/unit/test_release_artifacts.py @@ -0,0 +1,14 @@ +from __future__ import annotations + +import tomllib +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[2] + + +def test_release_build_excludes_private_superpowers_artifacts() -> None: + with (ROOT / "pyproject.toml").open("rb") as handle: + project = tomllib.load(handle) + + assert "/.superpowers" in project["tool"]["hatch"]["build"]["exclude"]