Skip to content
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

Simplify create_instance calls #6162

Closed

Conversation

jxlil
Copy link
Contributor

@jxlil jxlil commented Nov 30, 2023

Added build_from_crawler and build_from_settings functions

Fixes #5523, closes #5884, closes #6169.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #6162 (ad95d09) into master (fa690fb) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6162      +/-   ##
==========================================
+ Coverage   88.59%   88.61%   +0.01%     
==========================================
  Files         159      159              
  Lines       11582    11600      +18     
  Branches     1885     1889       +4     
==========================================
+ Hits        10261    10279      +18     
  Misses        994      994              
  Partials      327      327              
Files Coverage Δ
scrapy/utils/misc.py 98.64% <100.00%> (+0.18%) ⬆️

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good first step, but there is some more work to do, such as:

  • Logging a deprecation warning when create_instance is called.
  • Replacing all usages of create_instance in the code base by one of these new functions.

For the record, I’m reviewing #6169 at the moment and it seems closer to completion.

@jxlil
Copy link
Contributor Author

jxlil commented Dec 16, 2023

Hi @Gallaecio, thanks for responding, I'm going to close this PR.

@jxlil jxlil closed this Dec 16, 2023
@jxlil jxlil deleted the feat/simplify_create_instance_calls branch December 16, 2023 14:41
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.

Simplify create_instance calls
2 participants