-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove build_from_settings() and deprecate from_settings() code #6540
Conversation
Most changes here are simple: if a class had Summary of changes:
|
Regarding the media pipelines. The current initialization order is as follows:
What we want is to move the initialization out of Now, it is possible to subclass either |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6540 +/- ##
===========================================
- Coverage 87.83% 32.98% -54.86%
===========================================
Files 162 162
Lines 12011 12085 +74
Branches 1544 1557 +13
===========================================
- Hits 10550 3986 -6564
- Misses 1163 7972 +6809
+ Partials 298 127 -171
|
Fixes #6534
from_settings()
inbuild_from_crawler()
andMiddlewareManager._build_from_settings()
from_crawler()
/from_settings()
inMiddlewareManager
DeprecateIt looks likeISpiderLoader.from_settings()
and addISpiderLoader.from_crawler()
without breakingverifyClass
SpiderLoader
cannot take a crawler and it's created withoutbuild_from_crawler()
anyway.from_crawler()
/from_settings()
inMediaPipeline
and its subclasses in a backwards-compatible way