Plugin: drop auth.py and the PyJWT dependency #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Plugin rework (see #18). The plugin currently has a full Apple auth stack
(
auth.py: ES256 signing + localhost MusicKit OAuth + credential cache).After the gateway exists, none of it belongs on the beets host.
Task
In
/opt/data/git/git.sams.wtf/coop/beets-appleplaylists(already cloned):beetsplug/appleplaylists/auth.py.PyJWTfrompyproject.tomldependencies (and from the lockfilevia
uv lock).beetsplug/appleplaylists/__init__.py— but note
_sync/_backfillstill callAppleAuthManager; completethis only together with #13/#14 (they are one logical change; do them in
the same working session).
auth.pyis needed by the gateway —it is preserved in git history and referenced by gateway issue #5; no
copy needs to live in the plugin.
Acceptance criteria
auth.pygone;PyJWTabsent frompyproject.tomlanduv.lock.uv run pytestgreen after #13/#14 land.Implemented in
coop/beets-appleplaylistscommitb5a121c8c728bcf218e5e4561bed603e01e82b44:beetsplug/appleplaylists/auth.py;PyJWTfrompyproject.tomland regenerateduv.lock;Verification:
uv run pytest -q-> 21 passed;uv lock --checkpassed.