Skip to content

Commit 419b7d0

Browse files
committed
rsa_backend uses pyasn1 directly so it needs to be a direct dependency
1 parent 404ddc9 commit 419b7d0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ six
33
future
44
rsa
55
ecdsa
6+
pyasn1

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def get_packages(package):
2626
'pycrypto': ['pycrypto >=2.6.0, <2.7.0'],
2727
'pycryptodome': ['pycryptodome >=3.3.1, <4.0.0'],
2828
}
29+
legacy_backend_requires = ['ecdsa <1.0', 'rsa', 'pyasn1']
30+
install_requires = ['six <2.0', 'future <1.0']
31+
32+
# TODO: work this into the extras selection instead.
33+
install_requires += legacy_backend_requires
2934

3035

3136
setup(
@@ -64,5 +69,5 @@ def get_packages(package):
6469
'pytest-cov',
6570
'pytest-runner',
6671
],
67-
install_requires=['six <2.0', 'ecdsa <1.0', 'rsa', 'future <1.0']
72+
install_requires=install_requires
6873
)

0 commit comments

Comments
 (0)