Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 6b3aa8e

Browse files
committed
Merge branch 'development' into add_proxy_support
2 parents d156855 + a12ebb4 commit 6b3aa8e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ dev
8282
simple ``.headers`` and ``.trailers`` properties that contain
8383
``HTTPHeaderMap`` structures.
8484
- 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
8686
iterating over data in units of individual data frames.
8787
- Changed the name of ``getresponse()`` to ``get_response()``, because
8888
``getresponse()`` was a terrible name forced upon me by httplib.

setup.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,23 @@
2929
py_version = sys.version_info[:2]
3030
py_long_version = sys.version_info[:3]
3131

32+
try:
33+
pypy_version = sys.pypy_version_info[:2]
34+
except AttributeError:
35+
pypy_version = None
36+
37+
3238
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):
3640
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
3749
return []
3850

3951
packages = [

0 commit comments

Comments
 (0)