Repository navigation
Phase 6b: public API and plugin packaging - #88
suraj-ranganath merged 4 commits into
Conversation
|
🤖 GUI evidence for Phase 6b plugin-management UX. EEGPrep implements a read-only bundled extension manager because external EEGLAB plugin install/update/remove workflows are out of scope for #81. EEGLAB |
|
Claude finished @suraj-ranganath's task in 5m 4s —— View job Code review
BlockingNone. ImportantNone. Nits
Test gapsNone — the new lazy exports, plugin metadata, session sync, dispatcher wiring, packaged resources, and example are all covered. EEGLAB parity notesNone. The read-only bundled inventory mirroring Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
|
|
||
|
|
||
| def test_public_api_and_plugins_example_runs() -> None: | ||
| example = Path("docs/source/examples/plot_public_api_and_plugins.py") |
There was a problem hiding this comment.
Severity: nit
This relative path is resolved against the current working directory, so the test only passes when pytest is invoked from the repo root. Running pytest from tests/ (or any subdirectory) makes runpy.run_path raise FileNotFoundError. Deriving the path from __file__ keeps the test cwd-independent.
| example = Path("docs/source/examples/plot_public_api_and_plugins.py") | |
| example = Path(__file__).resolve().parents[1] / "docs/source/examples/plot_public_api_and_plugins.py" |
Reference:
eegprep/tests/test_public_api_examples.py
Lines 9 to 14 in 7b85b9d
There was a problem hiding this comment.
Fixed in 21e5daa. The example path now resolves from __file__, and I verified tests/test_public_api_examples.py passes both from the repo root and from the tests/ directory.
|
Phase 6b scope re-audit complete. I rechecked issue #81 against this PR after addressing Claude's cwd-dependent test nit. The implementation covers the intended public API lazy exports, bundled plugin-management UX, package resources, docs/examples, and lightweight import tests. I added one extra fast regression layer for the package/install surface:
Additional verification run:
tests/test_public_api_examples.py .... [ 2%] ============================= 188 passed in 2.76s ============================== -> 188 passed
============================ no tests ran in 0.00s ============================= -> 4 passed
Pushed commit: . |
|
Phase 6b scope re-audit complete. I rechecked issue #81 against this PR after addressing Claude's cwd-dependent test nit. The implementation covers the intended public API lazy exports, bundled plugin-management UX, package resources, docs/examples, and lightweight import tests. I added one extra fast regression layer for the package/install surface:
Additional verification run:
Pushed commit: |
|
Merged the latest Conflict resolution:
Integration fix:
Verification:
Pushed merge commit: |

🤖 Phase 6b public API, plugin-management, package-data, and examples hardening.
Summary
eegprep.*public API without makingimport eegprepheavier.File > Manage EEGPrep extensionsto updateEEGPrepSession.PLUGINLIST.GUI evidence
The plugin manager is intentionally read-only because #81 excludes external plugin repositories. EEGLAB
plugin_menu.mwas used as the parity reference for list/status/description hierarchy; the online EEGLAB install/update manager is not a static visual parity case.Tests
uv run --no-sync ruff check .uv run --no-sync ruff format --check .uv run --no-sync ty check./pre-commit.pyuv run pytest tests/test_plugin_menu.pyuv run pytest tests/test_package_exports.pyuv run pytest tests/test_public_api_examples.pyuv run pytest tests/test_console_workspace.pyuv run --no-sync pytest tests/test_gui_main_window.pyEEGPREP_SKIP_MATLAB=1 uv run --no-sync pytest -m "not slow"uv run --group release python -m buildeegprep/eeglab/entries.QT_QPA_PLATFORM=offscreenplugin manager screenshot smoke passed.Closes #81