Skip to content

Commit d406a4f

Browse files
committed
feat: setup.py: require cryptography instead of rsa
The rsa library is slower and not as well-maintained as the cryptography library. Require the cryptography library instead of rsa. On Python 2.7, Pip users will install cryptography-3.3.2, because that is the latest cryptography version that advertises support for Python 2.7.
1 parent 87cd245 commit d406a4f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
DEPENDENCIES = (
2323
"cachetools>=2.0.0,<5.0",
2424
"pyasn1-modules>=0.2.1",
25-
# rsa==4.5 is the last version to support 2.7
26-
# https://github.com/sybrenstuvel/python-rsa/issues/152#issuecomment-643470233
27-
'rsa<4.6; python_version < "3.6"',
28-
'rsa>=3.1.4,<5; python_version >= "3.6"',
25+
# cryptography==3.3.X is the last version to support 2.7
26+
'cryptography',
2927
# install enum34 to support 2.7. enum34 only works up to python version 3.3.
3028
'enum34>=1.1.10; python_version < "3.4"',
3129
"six>=1.9.0",

0 commit comments

Comments
 (0)