File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33import os
4+ import platform
5+
46import jose
57
68from setuptools import setup
@@ -21,9 +23,18 @@ def get_packages(package):
2123 ]
2224
2325
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+
2435pyasn1 = ['pyasn1' ]
2536extras_require = {
26- 'cryptography' : ['cryptography' ],
37+ 'cryptography' : [_cryptography_version () ],
2738 'pycrypto' : ['pycrypto >=2.6.0, <2.7.0' ] + pyasn1 ,
2839 'pycryptodome' : ['pycryptodome >=3.3.1, <4.0.0' ] + pyasn1 ,
2940}
You can’t perform that action at this time.
0 commit comments