Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Match pyOpenSSL and service_identity to Twisted

Gábor Lipták385acd5598fb
diff --git a/setup.py b/setup.py
index ed197273f..fcc902c62 100644
--- a/setup.py
+++ b/setup.py
@@ -20,13 +20,13 @@ def has_environment_marker_platform_impl_support():
install_requires = [
'Twisted>=18.9.0',
- 'cryptography>=2.8',
+ 'cryptography>=3.3',
'cssselect>=0.9.1',
'itemloaders>=1.0.1',
'parsel>=1.5.0',
- 'pyOpenSSL>=19.1.0',
+ 'pyOpenSSL>=21.0.0',
'queuelib>=1.4.2',
- 'service_identity>=16.0.0',
+ 'service_identity>=18.1.0',
'w3lib>=1.17.0',
'zope.interface>=5.1.0',
'protego>=0.1.15',
diff --git a/tests/test_crawler.py b/tests/test_crawler.py
index e2a14be55..cf15ba9b9 100644
--- a/tests/test_crawler.py
+++ b/tests/test_crawler.py
@@ -327,7 +327,7 @@ class CrawlerProcessSubprocess(ScriptRunnerMixin, unittest.TestCase):
def test_reactor_default_twisted_reactor_select(self):
log = self.run_script('reactor_default_twisted_reactor_select.py')
- if platform.system() == 'Windows':
+ if platform.system() in ['Windows', 'Darwin']:
# The goal of this test function is to test that, when a reactor is
# installed (the default one here) and a different reactor is
# configured (select here), an error raises.
diff --git a/tox.ini b/tox.ini
index 2110e1020..2bf9454d0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -73,15 +73,15 @@ commands =
[pinned]
deps =
- cryptography==2.8
+ cryptography==3.3
cssselect==0.9.1
h2==3.0
itemadapter==0.1.0
parsel==1.5.0
Protego==0.1.15
- pyOpenSSL==19.1.0
+ pyOpenSSL==21.0.0
queuelib==1.4.2
- service_identity==16.0.0
+ service_identity==18.1.0
Twisted[http2]==18.9.0
w3lib==1.17.0
zope.interface==5.1.0