Scrapy, a fast high-level web crawling & scraping framework for Python.
Merge branch 'master' into http2
Eugenio Lacuestad698b5147bc6
diff --cc setup.pyindex e9dd30162,b5c42a3c2..a95014c98--- a/setup.py+++ b/setup.py@@@ -32,14 -31,14 +31,15 @@@ install_requires ='zope.interface>=4.1.3','protego>=0.1.15','itemadapter>=0.1.0',+ 'h2>=3.2.0',]extras_require = {}-+ cpython_dependencies = [+ 'lxml>=3.5.0',+ 'PyDispatcher>=2.0.5',+ ]if has_environment_marker_platform_impl_support():- extras_require[':platform_python_implementation == "CPython"'] = [- 'lxml>=3.5.0',- ]+ extras_require[':platform_python_implementation == "CPython"'] = cpython_dependenciesextras_require[':platform_python_implementation == "PyPy"'] = [# Earlier lxml versions are affected by# https://foss.heptapod.net/pypy/pypy/-/issues/2498,diff --cc tests/test_downloader_handlers.pyindex abbb262f9,f51a6cd3c..86d72772c--- a/tests/test_downloader_handlers.py+++ b/tests/test_downloader_handlers.py@@@ -366,8 -359,15 +367,15 @@@ class HttpTestCase(unittest.TestCase)class Http10TestCase(HttpTestCase):"""HTTP 1.0 test case"""- download_handler_cls = HTTP10DownloadHandler+ download_handler_cls: Type = HTTP10DownloadHandler+ def test_protocol(self):+ request = Request(self.getURL("host"), method="GET")+ d = self.download_request(request, Spider("foo"))+ d.addCallback(lambda r: r.protocol)+ d.addCallback(self.assertEqual, "HTTP/1.0")+ return d+class Https10TestCase(Http10TestCase):scheme = 'https'