-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove pycrypto/dome dependency on python-rsa #121
Conversation
…g on the backend used
Codecov Report
@@ Coverage Diff @@
## backend-explicit-tests #121 +/- ##
==========================================================
- Coverage 96.86% 96.53% -0.33%
==========================================================
Files 13 14 +1
Lines 1051 1068 +17
==========================================================
+ Hits 1018 1031 +13
- Misses 33 37 +4
Continue to review full report at Codecov.
|
Checking in, @mpdavis. Looking to wrap this up; is there anything you need on my end for this? |
tox.ini
Outdated
only: pip uninstall -y ecdsa rsa | ||
# Remove just the python-rsa backend | ||
nosra: pip uninstall -y rsa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It says nosra
here when it should be norsa
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh. So it does. Thanks for the catch; looks like I also missed a few points where the pycrypto path is importing rsa.
Ok, this is weird...digging through this, it looks like the This actually means that the Looking through the Aside from a desire to kill off a library that hasn't been supported for six years ( @mpdavis @zejn Any opinion on which direction this should take? [1] https://github.com/dlitz/pycrypto/tree/master/lib/Crypto/IO Python 2.7
Python 3.7
|
...nvm, looks like I added that DER-to-PEM function it is! |
Added Travis testing for pypy-5.7.1 to make sure we're covering both sides of the pypy |
If flake8 works then I agree it makes sense to actually run it. |
…lling dependencies directly
Ok, I went ahead and enabled |
This looks ok. Just to confirm, the "compatibility" tox environment installs every extra as an emulation of previous, non-split backend tests, right? |
Correct. Those are to verify that a) the correct backend is selected when all are present, and b) that the various backends do not conflict with each other. |
This removes the cross-dependency of the
pycrypto/dome
backend on thepython-rsa
backend by moving ASN1 parsing to translate between PKCS1 and PKCS8 to a separate module that is now used by bothpycrypto/dome
andpython-rsa
backends.This makes
pyasn1
a direct dependency of thepycrypto/dome
backend (previously transient throughpython-rsa
), but removes its dependency onpython-rsa
.CI also now tests the
pycryto/dome
backends after uninstallingpython-rsa
to make sure that this dependency is actually severed.