-
Notifications
You must be signed in to change notification settings - Fork 28
Supporting to_return in web-poet rules
#88
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
Merged
Merged
Changes from 45 commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
a638aec
initial integration of to_return from web_poet
BurnzZ ee30808
fix tests regarding expectations for param in rule
BurnzZ 0452173
warn the user when the same URL pattern is present in the rule
BurnzZ e51a63d
add test case for when 'instead_of' and 'to_return' are both present
BurnzZ 6c55de0
simplify tests and assert injected dependencies in the callback
BurnzZ 3117530
add test case focusing on URL presence in the rules
BurnzZ 3a69c83
properly test UndeclaredProvidedTypeError
BurnzZ a38cb06
refactor solution to resolve item dependencies using providers
BurnzZ 4134457
fix typing for callback_for()
BurnzZ 213549a
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 9a00b63
move test utilies into scrapy_poet/utils/
BurnzZ 49136cb
create recursive dependency resolution
BurnzZ a2260d7
add more test cases
BurnzZ 9816f42
update ItemProvider to dynamically handle its dependency signature
BurnzZ 86b7a97
code cleanup and fix some tests
BurnzZ 7b8c7f2
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 20f51a6
detect and raise errors on deadlocks
BurnzZ 4b60fa9
fix failing injector test
BurnzZ caa1be6
ensure that provider dependencies are cached
BurnzZ ae05e90
modify deadlock detection to a simple try-except
BurnzZ d6a33a4
fix failing test_injection.py tests
BurnzZ a4cff73
ensure that .to_item() methods are only called once
BurnzZ 6bc839f
add a test with a deeper dependency tree
BurnzZ 4aedf16
test duplicate dependencies
BurnzZ 56028d7
fix missing tests and imports
BurnzZ 41ff13e
deprecate passing tuples in SCRAPY_POET_OVERRIDES and the Registry wi…
BurnzZ 2ec6414
refactor Injector to simplify recursive dependency resolution of items
BurnzZ f3fb32d
polish code and tests
BurnzZ 544236f
fix failing mypy and polish code
BurnzZ 29f40ab
update CHANGELOG with new item class support
BurnzZ 66f0c90
fix typo in CHANGELOG
BurnzZ 2697ab0
improve test_web_poet_rules.py
BurnzZ 35b0c8d
polishing comments and typing
BurnzZ d2beaf8
mention backward incompatible changes in CHANGELOG
BurnzZ d046903
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 8f1450a
deprecate some settings, modules, and parameters to be overrides-agno…
BurnzZ 6f0d36e
update documentation in line with the new Item Return functionality
BurnzZ 77cf77c
update tutorial with more explanation on how Item Return works
BurnzZ efbdb66
update CHANGELOG to mention other backward incompatible changes
BurnzZ 9b4cd48
add and improve docstrings, typing, and warning msgs
BurnzZ 5d2f0f9
move some functions to new scrapy_poet.utils.testing module
BurnzZ 58577a8
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ afc04e9
Apply improvements from code review
BurnzZ 4141239
prioritize newer settings than deprecated ones
BurnzZ dae69d8
simplify to_return doc example
BurnzZ ccfa9ea
fix and improve docs
BurnzZ e9bb33d
use DummyResponse on some examples
BurnzZ 3667cc3
remove obsolete test
BurnzZ 22c959d
Polish CHANGELOG from review
BurnzZ 545e8f1
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 83e0e84
fix missing imports in tests
BurnzZ 47f213c
rename 'item type' → 'item class'
BurnzZ 914a334
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 6af1061
Fix conflicts; Merge branch 'new-web-poet' of ssh://github.com/scrapi…
BurnzZ 190e3a6
use web-poet's _create_deprecated_class
BurnzZ 2611199
remove incorrect line in CHANGELOG
BurnzZ 7bd6783
remove scrapy-poet registry in lieu of web-poet's registry
BurnzZ 3c6fdae
avoid using RulesRegistry.search() since it's slow
BurnzZ ef01f11
add test to check higher priority of PO subclass
BurnzZ f41b5c2
Merge pull request #103 from scrapinghub/to-return-override-docs
BurnzZ c658317
use RulesRegistry.search() again after optimizing it
BurnzZ 3e852d7
fix doc grammar
BurnzZ 4d25d8c
mark tests as xfail if it raises UndeclaredProvidedTypeError
BurnzZ e184c6f
better tests for clashing rules due to independent page objects with …
BurnzZ bf9b7bf
fix misleading class names
BurnzZ 33a0391
add more tests on deadlock detection
BurnzZ 141c495
use new web-poet==0.7.0
BurnzZ 3d464e6
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 8c410fe
fixed merge conflicts in CHANGELOG
BurnzZ 00d5dd6
improve docs on settings
BurnzZ fd31c93
Merge branch 'master' into new-web-poet
BurnzZ 199c46b
fix conflict in code
BurnzZ 7c1f5f1
add test for checking deprecated SCRAPY_POET_OVERRIDES
BurnzZ 44c6e60
add test when requesting an item but no page object
BurnzZ 4791576
issue a warning when can't provide a page object or item for a given URL
BurnzZ e3b7a8e
remove support for custom registry via SCRAPY_POET_OVERRIDES_REGISTRY
BurnzZ 0915b00
re-organize CHANGELOG
BurnzZ a46b1e2
fix some docs and comments for clarity
BurnzZ 774619c
Merge branch 'master' of ssh://github.com/scrapinghub/scrapy-poet int…
BurnzZ 140239a
bump tool versions to fix CI failure
kmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.