-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add Python 3 support to fedmsg #449
Conversation
Nice and clean, looks fine to me! :) |
I believe this also depends on #448 since with nose the tests hang on Python 3. I was working off that branch and rebased before I made this PR. I don't know why nose causes the tests to hang on Python 3, though :( |
Codecov Report
@@ Coverage Diff @@
## develop #449 +/- ##
==========================================
+ Coverage 55.36% 55.9% +0.53%
==========================================
Files 30 30
Lines 1853 1853
Branches 285 306 +21
==========================================
+ Hits 1026 1036 +10
+ Misses 739 732 -7
+ Partials 88 85 -3
Continue to review full report at Codecov.
|
Signed-off-by: Jeremy Cline <[email protected]>
pyzmq requires bytes, not text. Signed-off-by: Jeremy Cline <[email protected]>
This function is intended to modify the signature and certificate to match m2crypto's format just before sending the message. As such, it works on the encoded version of both. Signed-off-by: Jeremy Cline <[email protected]>
Signed-off-by: Jeremy Cline <[email protected]>
Calling decode('base64') is not supported on Python 3 strings. Signed-off-by: Jeremy Cline <[email protected]>
Signed-off-by: Jeremy Cline <[email protected]>
Signed-off-by: Jeremy Cline <[email protected]>
Signed-off-by: Jeremy Cline <[email protected]>
Amusingly, these tests have always passed in CI because it's been quietly downloading the CA which didn't sign the certificate either. We shouldn't rely on the network, though. Signed-off-by: Jeremy Cline <[email protected]>
Okay, I had to tweak a few more things to get CI passing, so it probably wouldn't hurt for this to get a second look. |
Still looking good to me 👍 |
This adds Python 3 support to fedmsg. Tests are run against 3.4+.