Remove pycrypto/dome dependency on python-rsa#121
Remove pycrypto/dome dependency on python-rsa#121zejn merged 17 commits intompdavis:backend-explicit-testsfrom
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
| # 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.
|
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/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.