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.
|
mattsb42-aws
commented
Jan 29, 2019
Checking in, @mpdavis. Looking to wrap this up; is there anything you need on my end for this? |
| # Remove the python-rsa and python-ecdsa backends | ||
| only: pip uninstall -y ecdsa rsa | ||
| # Remove just the python-rsa backend | ||
| nosra: pip uninstall -y rsa |
There was a problem hiding this comment.
It says nosra here when it should be norsa.
There was a problem hiding this comment.
Doh. So it does. Thanks for the catch; looks like I also missed a few points where the pycrypto path is importing rsa.
mattsb42-aws
commented
Apr 2, 2019
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.7Python 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 |
mattsb42-aws
commented
Apr 2, 2019
zejn
commented
Apr 3, 2019
If flake8 works then I agree it makes sense to actually run it. |
mattsb42-aws
commented
Apr 3, 2019
Ok, I went ahead and enabled |
zejn
commented
Apr 5, 2019
This looks ok. Just to confirm, the "compatibility" tox environment installs every extra as an emulation of previous, non-split backend tests, right? |
mattsb42-aws
commented
Apr 5, 2019
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/domebackend on thepython-rsabackend by moving ASN1 parsing to translate between PKCS1 and PKCS8 to a separate module that is now used by bothpycrypto/domeandpython-rsabackends.This makes
pyasn1a direct dependency of thepycrypto/domebackend (previously transient throughpython-rsa), but removes its dependency onpython-rsa.CI also now tests the
pycryto/domebackends after uninstallingpython-rsato make sure that this dependency is actually severed.