Repository navigation
Description
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*"frompackages.findinclude inpyproject.toml(keepname = "pyautoheart"— distribution name, not import name) - Verify: no importers workspace-wide, PyAutoHeart tests pass,
bin/pyauto-heart statusruns
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
git rm -r pyautoheart/— removes the shim (pyautoheart/__init__.py, docstring "The implementation lives in :mod:heart", bodyfrom heart import *).- In
pyproject.toml, change[tool.setuptools.packages.find] include = ["heart*", "pyautoheart*"]→include = ["heart*"]. Leave[project] name = "pyautoheart"untouched. - Verify:
grep -rn "import pyautoheart\|from pyautoheart" .across the workspace → no hits (pre-verified in census; re-check at implementation time).pytest tests/ -qin PyAutoHeart.bin/pyauto-heart statusstill runs.
Key Files
pyautoheart/__init__.py— the dead shim (delete)pyproject.toml—packages.findinclude 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").
Activity
Jammy2211 commentedon Jul 16, 2026
Shipped — PR #81 open with
pending-release.pyautoheart/deleted;packages.findnow["heart*"]only (distribution name unchanged).bin/pyauto-heart statusruns.Merge awaits human sign-off.