We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40e3b7 commit c256933Copy full SHA for c256933
1 file changed
setup.py
@@ -1,6 +1,8 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
import os
4
+import platform
5
+
6
import jose
7
8
from setuptools import setup
@@ -21,9 +23,18 @@ def get_packages(package):
21
23
]
22
24
25
26
+def _cryptography_version():
27
+ # pyca/cryptography dropped support for PyPy < 5.4 in 2.5
28
+ # https://cryptography.io/en/latest/changelog/#v2-5
29
+ if platform.python_implementation() == 'PyPy' and platform.python_version() < '5.4':
30
+ return 'cryptography < 2.5'
31
32
+ return 'cryptography'
33
34
35
pyasn1 = ['pyasn1']
36
extras_require = {
- 'cryptography': ['cryptography'],
37
+ 'cryptography': [_cryptography_version()],
38
'pycrypto': ['pycrypto >=2.6.0, <2.7.0'] + pyasn1,
39
'pycryptodome': ['pycryptodome >=3.3.1, <4.0.0'] + pyasn1,
40
}
0 commit comments