Skip to content

chore: delete dead pyautoheart/ compat shim (Pulse retirement leftover) #80

Description

@Jammy2211

Overview

pyautoheart/ is a 6-line compatibility shim (from heart import *) created by the PyAutoPulse→PyAutoHeart rename (#18, a2543d0) alongside the pulse//pyautopulse/ wrappers. The Phase-2 retirement of the Pulse compat surface (#28, a6f9083) deleted the pulse-era wrappers but missed this one. A census confirmed zero importers of pyautoheart anywhere in the workspace (PyAutoBrain mentions are repo-name routing strings, not imports) and the package is never pip-installed — Heart runs repo-locally via bin/pyauto-heart. Delete the trap rather than document it.

Plan

  • Delete the pyautoheart/ shim directory (single __init__.py)
  • Drop "pyautoheart*" from packages.find include in pyproject.toml (keep name = "pyautoheart" — distribution name, not import name)
  • Verify: no importers workspace-wide, PyAutoHeart tests pass, bin/pyauto-heart status runs
Detailed implementation plan

Affected Repositories

  • PyAutoHeart (primary)

Branch Survey

Repository Current Branch Dirty?
./PyAutoHeart main clean

Note: PyAutoHeart is currently claimed by task heart-state-clobber (feature/heart-state-clobber, worktree ~/Code/PyAutoLabs-wt/heart-state-clobber, issue #78) — this task registers as planned/blocked until that claim releases. No file overlap (that task touches heart/checks/; this one touches pyautoheart/ + pyproject.toml).

Suggested branch: feature/delete-pyautoheart-shim

Implementation Steps

  1. git rm -r pyautoheart/ — removes the shim (pyautoheart/__init__.py, docstring "The implementation lives in :mod:heart", body from heart import *).
  2. In pyproject.toml, change [tool.setuptools.packages.find] include = ["heart*", "pyautoheart*"]include = ["heart*"]. Leave [project] name = "pyautoheart" untouched.
  3. Verify:
    • grep -rn "import pyautoheart\|from pyautoheart" . across the workspace → no hits (pre-verified in census; re-check at implementation time).
    • pytest tests/ -q in PyAutoHeart.
    • bin/pyauto-heart status still runs.

Key Files

  • pyautoheart/__init__.py — the dead shim (delete)
  • pyproject.tomlpackages.find include list (edit)

Out of scope

Renaming heart/autoheart to match the org convention (autofit/autoconf/autobuild). Heart is never installed into site-packages, so the rename is cosmetic churn today; revisit only if Heart ever ships as a package.

Original Prompt

Click to expand starting prompt

Filed 2026-07-16 from a repo census (PyAutoMind/draft/maintenance/pyautoheart/delete_pyautoheart_shim.md). Original request (verbatim): "PyAutoHeart, heart and pyautoheart folders, feel duplicated / redudant and hsouldnt it be autoheart if anything? i.e. do a quick census of PyAutoHeart" — census done in session, user approved the deletion recommendation ("ok go").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions