This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 82
82
simple ``.headers `` and ``.trailers `` properties that contain
83
83
``HTTPHeaderMap `` structures.
84
84
- Headers and trailers are now bytestrings, rather than unicode strings.
85
- - An ``iter_chunked() `` method was added to repsonse objects that allows
85
+ - An ``iter_chunked() `` method was added to response objects that allows
86
86
iterating over data in units of individual data frames.
87
87
- Changed the name of ``getresponse() `` to ``get_response() ``, because
88
88
``getresponse() `` was a terrible name forced upon me by httplib.
Original file line number Diff line number Diff line change 29
29
py_version = sys .version_info [:2 ]
30
30
py_long_version = sys .version_info [:3 ]
31
31
32
+ try :
33
+ pypy_version = sys .pypy_version_info [:2 ]
34
+ except AttributeError :
35
+ pypy_version = None
36
+
37
+
32
38
def resolve_install_requires ():
33
- if py_version == (3 ,3 ):
34
- return ['pyOpenSSL>=0.15' , 'service_identity>=14.0.0' ]
35
- elif py_version == (2 ,7 ) and py_long_version < (2 ,7 ,9 ):
39
+ if py_version == (3 , 3 ):
36
40
return ['pyOpenSSL>=0.15' , 'service_identity>=14.0.0' ]
41
+ elif py_version == (2 , 7 ) and py_long_version < (2 , 7 , 9 ):
42
+ deps = ['pyOpenSSL>=0.15' , 'service_identity>=14.0.0' ]
43
+
44
+ # PyPy earlier than 2.6.0 doesn't support cryptography 1.0
45
+ if pypy_version and pypy_version < (2 , 6 ):
46
+ deps .append ('cryptography<1.0' )
47
+
48
+ return deps
37
49
return []
38
50
39
51
packages = [
You can’t perform that action at this time.
0 commit comments