Laerte Pereira
09c63a178b
Remove the deprecated spider parameter from the engine ( #5998 )
2023-08-04 07:53:04 +02:00
Laerte Pereira
b9c32a0cfd
Remove functions deprecated in 2.6.0 ( #5996 )
2023-08-03 17:06:55 +02:00
Andrey Rakhmatullin
9f9a2292e0
Deprecate the custom attribute of build_component_list(). ( #5993 )
2023-08-02 14:21:06 +02:00
Andrey Rakhmatullin
06ebdee35d
Merge pull request #5950 from wRAR/addons
...
Add-ons
2023-08-01 22:18:57 +04:00
Andrey Rakhmatullin
e58b8078f0
Improve NotConfigured handling when clspath is a class.
2023-08-01 20:20:15 +04:00
Andrey Rakhmatullin
41a4a163e3
Handle NotConfigured in add-ons.
2023-07-31 21:09:18 +04:00
Andrey Rakhmatullin
d8c5b41559
Add more addon tests.
2023-07-31 19:09:21 +04:00
Andrey Rakhmatullin
bddbbc522a
Merge pull request #5979 from BurnzZ/closespider-timeout-no-item
2023-07-28 12:56:44 +04:00
freddiewanah
c4f0aa4fdf
Refactor test cases to improve unit test quality ( #5986 )
2023-07-26 13:09:03 +02:00
Andrey Rakhmatullin
6e3e3c2172
Merge pull request #5977 from scrapy/typing-settings
...
Typing for scrapy.settings.BaseSettings
2023-07-24 21:40:52 +04:00
Kevin Lloyd Bernal
9a1bf40c2f
expose AWS_REGION_NAME in S3FeedStorage
2023-07-24 16:37:52 +08:00
Laerte Pereira
7522aeed35
fix: -O/-o option does not work with absolute paths on Windows ( #5971 )
2023-07-24 09:53:41 +02:00
Mikhail Korobov
af2aa4b421
Merge pull request #5847 from namelessGonbai/feat/FixFeedExport
...
Fix FeedExporter not to export empty file
2023-07-22 23:18:36 +05:00
Adnan Awan
5d91ea12d6
Fix JsonItemExporter puts lone comma in the output if encoder fails ( #5952 )
...
* Partial fix for #3090 - only addresses JSON feeds.
* Adding test case for #3090 to Json Exporter
* Changing the deliberate-fail JSON example to a complex
* Further tightening JsonItemExporter behaviour to prevent corruption.
Based on Mikhail's observation that to_bytes can fail also, leading
to the same dangling comma as the failure to encode to JSON.
Added a new test case to avoid reversion.
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Add initial changes from cathal's PR
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Handle exception not to add empty item.
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Add comment for handling the exception
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Remove unused import
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Fix invalid json issue
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Perform CR changes
- https://github.com/scrapy/scrapy/issues/3090
---------
Co-authored-by: Cathal Garvey <cathalgarvey@cathalgarvey.me>
2023-07-22 23:13:40 +05:00
Andrey Rakhmatullin
e058a05763
Skip tests that don't work on Python 3.12.
2023-07-22 17:51:13 +04:00
Andrey Rakhmatullin
583df9f7d0
Simplify skipping uvloop tests.
2023-07-22 17:44:37 +04:00
Andrey Rakhmatullin
5c34f34ecb
Make AddonManager.add() private.
2023-07-18 19:50:08 +04:00
Kevin Lloyd Bernal
368ab29ffc
improve tests by having SlowSpider
2023-07-18 22:29:15 +08:00
Kevin Lloyd Bernal
3f5bbe3a8f
introduce CLOSESPIDER_TIMEOUT_NO_ITEM in CloseSpider
2023-07-18 18:30:21 +08:00
Andrey Rakhmatullin
043a24410b
Disable pylint for broken code.
2023-07-17 00:13:49 +04:00
Andrey Rakhmatullin
187e8f9a2d
Typing for scrapy/settings/__init__.py.
2023-07-17 00:01:36 +04:00
Andrey Rakhmatullin
c92c9af075
Add create_instance support to addons.
2023-06-29 15:04:46 +04:00
Andrey Rakhmatullin
9612ae3e93
Remove more code.
2023-06-28 18:44:30 +04:00
Laerte Pereira
b6196309cb
fix: Return value instead of `SettingsAttribute` object when using `pop` method ( #5963 )
2023-06-28 08:28:49 +02:00
Andrey Rakhmatullin
e7124447f7
Remove unneeded code.
2023-06-26 16:57:46 +04:00
Andrey Rakhmatullin
4e21e3e59d
Merge remote-tracking branch 'origin/master' into addons
2023-06-26 14:25:35 +04:00
Andrey Rakhmatullin
712ee98848
Merge branch 'master' into typing-utils
2023-06-24 18:31:56 +04:00
Laerte Pereira
a3f8912d69
chore: Rename test
2023-06-23 00:15:32 -03:00
Laerte Pereira
876feaf339
chore: Use dunder to delete item instead of del keyword to handle immutable settings
2023-06-23 00:14:31 -03:00
Laerte Pereira
080b9bd0b8
chore: Implement `pop` method on `BaseSettings` class
2023-06-22 23:58:03 -03:00
Alex
04ee3303e4
Adding support for Windows of absolute pathlib.Path objects in FeedExporter ( #5939 )
2023-06-22 07:04:06 +02:00
Andrey Rakhmatullin
1b78e48944
Merge pull request #5146 from elacuesta/case-insensitive-dict
...
CaseInsensitiveDict (deprecate CaselessDict)
2023-06-21 23:48:40 +04:00
Andrey Rakhmatullin
39282d7bd0
Merge branch 'master' into case-insensitive-dict
2023-06-21 22:12:44 +04:00
Marc Hernández
5360ba34bc
IOError and other cleanup ( #4716 )
2023-06-21 20:08:53 +02:00
Laerte Pereira
a93a63c208
fix: move import to inside function
2023-06-20 17:05:49 -03:00
Laerte Pereira
6afb31b82b
chore: Add `packaging` to tests deps
2023-06-20 16:48:07 -03:00
Laerte Pereira
0097b4c0bb
cleanup: Remove `pkg_resources` usage
2023-06-20 16:40:38 -03:00
Serhii A
777a6ea412
Make the retry middleware exception list configurable ( #5929 )
2023-06-16 15:46:06 +02:00
Andrey Rakhmatullin
79bf8b1f2e
Test cleanup.
2023-06-15 19:28:14 +04:00
Andrey Rakhmatullin
2f9ebb66c3
Remove some dead code/docs.
2023-06-15 17:00:38 +04:00
Andrey Rakhmatullin
58300e066f
Merge pull request #5949 from wRAR/tests-as-installed
...
Allow running tests against the installed version
2023-06-14 23:15:04 +04:00
Andrey Rakhmatullin
c7f78a8305
Revert "Remove load_module_or_object."
...
This reverts commit 815af43120 .
2023-06-14 20:43:18 +04:00
Andrey Rakhmatullin
7cfdca8f9b
Actually run test_set_asyncio_event_loop().
2023-06-14 18:23:29 +04:00
Andrey Rakhmatullin
815af43120
Remove load_module_or_object.
2023-06-14 18:11:14 +04:00
Andrey Rakhmatullin
7ebb8256f0
Some cleanup.
2023-06-14 17:52:11 +04:00
Andrey Rakhmatullin
fdbc141b23
Replace pkg_resources with packaging.
2023-06-14 17:23:50 +04:00
Andrey Rakhmatullin
55ac26228b
Remove builtin addons.
2023-06-14 16:50:43 +04:00
Andrey Rakhmatullin
075ad6f196
Test, linter etc. fixes.
2023-06-14 16:34:18 +04:00
Andrey Rakhmatullin
898e3045a1
Merge branch 'master' into addons
2023-06-14 15:37:08 +04:00
Andrey Rakhmatullin
85fe88f80f
Merge pull request #5833 from GodelTech/issue_960_s3_feed_export
...
Fix #960 : S3 Feed Export throws boto error
2023-06-13 18:44:06 +04:00