From 93f2ff0b3b20be6daecaeb2013182e1191e815ae Mon Sep 17 00:00:00 2001 From: Robert Bolender Date: Thu, 23 Apr 2026 09:53:36 -0700 Subject: [PATCH 1/2] fix: add explicit setuptools package discovery for Homebrew install Setuptools' automatic package discovery finds non-Python directories (site/, assets/, Formula/, experimental/) in the repo root and refuses to build, causing 'Getting requirements to build wheel' errors during `brew install agent-pulse`. Explicitly declare agent_pulse as the sole py-module so setuptools skips auto-discovery. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4141287..8e0de37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,10 @@ dependencies = [ "textual>=0.50.0", ] +[tool.setuptools] +py-modules = ["agent_pulse"] +packages = [] + [project.scripts] agent-pulse = "agent_pulse:main" From edf6d970b60667dde57bc621248f361e98a1f2f3 Mon Sep 17 00:00:00 2001 From: Robert Bolender Date: Thu, 23 Apr 2026 10:25:01 -0700 Subject: [PATCH 2/2] fix: load Textual CSS at runtime for pip/brew installs CSS_PATH fails when installed as a py_module since the .tcss file isn't copied to site-packages. Read the CSS inline via Path(__file__) with a graceful fallback when the file is absent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- agent_pulse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent_pulse.py b/agent_pulse.py index 473f27a..495f271 100755 --- a/agent_pulse.py +++ b/agent_pulse.py @@ -1666,7 +1666,8 @@ def render(self) -> Text: # ---------------------------- class AgentPulseApp(App): - CSS_PATH = "agent_pulse.tcss" + _css_file = Path(__file__).parent / "agent_pulse.tcss" + CSS = _css_file.read_text() if _css_file.exists() else "" ENABLE_COMMAND_PALETTE = False BINDINGS = [ ("q", "quit", "Quit"),