Skip to content

refactor: purge the autoconf-era legacy surface#138

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/purge-autoconf-era-legacy
Jul 23, 2026
Merged

refactor: purge the autoconf-era legacy surface#138
Jammy2211 merged 3 commits into
mainfrom
feature/purge-autoconf-era-legacy

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #137 (steps 1–3).

Three atomic commits, each independently revertable.

test: stop test_config littering bad/ in the repo root

test_path_empty ran os.makedirs("bad/path") relative to the CWD and never cleaned up, so every test run left a bad/ directory behind. Both path-validation tests move onto tmp_path. Fixes the producer rather than gitignoring the symptom.

refactor: remove the dead EDEN packaging tooling

scripts/edenise.py imports autofit.tools.edenise, which no longer exists in PyAutoFit — it raises ImportError on run. It also reads an eden.ini removed org-wide on 2026-07-13, so the eden.yaml sitting here was never even the file it consumed. Both deleted.

PyAutoFit/eden.yaml is a follow-up — PyAutoFit is currently claimed by the testmode-env-drift worktree.

refactor: remove the one-shot config-bootstrap tooling

scripts/ held four drivers used to set up the original configs years ago, wired into no CI and referenced from no workspace. Two no longer even import:

Script State
convert_config.py the .ini → YAML migration, long since run
convert_prior_configs.py imports oyamlnot a declared dependency
generate_priors.py CLI over json_prior/generate.py
edenise.py removed in the commit above

json_prior/generate.py had no consumer beyond that CLI and its own test, and is not exported from autonerves/__init__.py, so it goes with them. priors/subconfig.json was a stray output artifact of generate_priors.py. Both scripts/ and priors/ disappear; neither is referenced from pyproject.toml, setup.py or MANIFEST.in.

json_prior/config.py is deliberately untouched — the live half, imported by conf.py and re-exporting default_prior, make_config_for_class, path_for_class, JSONPriorConfig. All four verified still resolving after the deletion.

Not in this PR

The autoconf/, test_autoconf/, autoconf.egg-info/ and build/ directories that prompted this task turned out to be untracked working-copy leftovers — git grep -ril autoconf over tracked files returns nothing, so there is no diff to make. They were cleared locally. Worth recording that they were not inert: build/lib/autoconf/ held a full stale copy of the pre-rename source, and autoconf/ still resolved as a namespace package, shadowing imports.

Testing

151 passed before, 149 passed after — the two removed are test_generate.py's own. Confirmed no bad/ directory is created by a run.

Jammy2211 and others added 3 commits July 23, 2026 17:34
`test_path_empty` ran `os.makedirs("bad/path")` relative to the CWD and never
cleaned up, so every test run left a `bad/` directory behind in whatever
directory pytest was invoked from. Move both path-validation tests onto
pytest's `tmp_path` and drop the now-unused `BAD_PATH` constant and
`remove_path()` helper.

Fixes the producer rather than gitignoring the symptom.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Euclid EDEN packaging path has been dormant for years. Its driver,
`scripts/edenise.py`, imports `autofit.tools.edenise`, which no longer exists
in PyAutoFit — the script raises ImportError on run. It also reads an
`eden.ini` that was removed org-wide on 2026-07-13, so the `eden.yaml` left
here was never even the file it consumed.

Nothing else in the repo, the libraries, or any workspace references either
file. Wired into no CI and no build.

The PyAutoNerves leg of the eden-tooling removal; `PyAutoFit/eden.yaml` is a
follow-up (PyAutoFit is currently claimed by another task).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`scripts/` held four drivers used to set up the original configs years ago.
They are wired into no CI, referenced from no workspace, and two no longer
even import:

- `convert_config.py`      — the .ini -> YAML migration, long since run
- `convert_prior_configs.py` — imports `oyaml`, not a declared dependency
- `generate_priors.py`     — CLI over `json_prior/generate.py`

`json_prior/generate.py` had no consumer beyond that CLI and its own test, and
is not exported from `autonerves/__init__.py`, so it goes with them. The live
half of the package, `json_prior/config.py`, is untouched — it is imported by
`conf.py` and re-exports `default_prior`, `make_config_for_class`,
`path_for_class` and `JSONPriorConfig`, all verified still resolving.

`priors/subconfig.json` was a stray output artifact of `generate_priors.py`.
Both `scripts/` and `priors/` disappear; neither is referenced from
`pyproject.toml`, `setup.py` or `MANIFEST.in`.

149 passed (the 2 removed are `test_generate.py`'s own).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit e97e2bc into main Jul 23, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/purge-autoconf-era-legacy branch July 23, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: purge the autoconf-era legacy surface from PyAutoNerves

1 participant