beatport: Deprecate beatport and bpsync plugins#6426
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6426 +/- ##
=======================================
Coverage 69.42% 69.42%
=======================================
Files 141 141
Lines 18448 18452 +4
Branches 3020 3020
=======================================
+ Hits 12807 12811 +4
Misses 5004 5004
Partials 637 637
🚀 New features to boost your workflow:
|
|
Btw. I used |
snejus
left a comment
There was a problem hiding this comment.
Consider using beets.util.deprecation.deprecate_for_user function
|
Good catch, thanks! Switched both to |
Beatport has retired the API these plugins rely on, making them non-functional. Add deprecation warnings and update documentation to reflect the current state. Fixes beetbox#3862
dde1160 to
b008488
Compare
Description
As agreed in the comments: #4477 (comment)
Deprecation notices reference those for additional context:
Beatport retired the API (v3) that the built-in
beatportplugin relies on, making it non-functional. This PR soft-deprecates both thebeatportandbpsyncplugins following the same pattern used foracousticbrainz— adding deprecation warnings in__init__()while keeping all existing code intact.The
bpsyncplugin is deprecated alongsidebeatportsince it imports and depends onBeatportPlugindirectly.Changes
beetsplug/beatport.py: Add deprecation warning inBeatportPlugin.__init__()beetsplug/bpsync.py: Add deprecation warning inBPSyncPlugin.__init__()docs/plugins/beatport.rst: Add.. deprecated::directivedocs/plugins/bpsync.rst: Add.. deprecated::directivedocs/changelog.rst: Add changelog entry under Unreleased → Other changesWhat's NOT changed (and why)
pyproject.toml(beatport extra): Kept so the plugin loads and shows the deprecation warning instead of crashing with anImportErrortest/plugins/test_beatport.py: Tests cover data models which still exist — all 15 tests passdocs/plugins/index.rst:beatportstays in the toctree since the page still existsbeets/util/id_extractors.py: Core utility, not plugin-specificTo Do