Skip to content
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

Merged
merged 9 commits into from
Jul 17, 2017
Merged

Conversation

jeremycline
Copy link
Member

This adds Python 3 support to fedmsg. Tests are run against 3.4+.

@pypingou
Copy link
Member

Nice and clean, looks fine to me! :)

@jeremycline
Copy link
Member Author

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-io
Copy link

codecov-io commented Jul 13, 2017

Codecov Report

Merging #449 into develop will increase coverage by 0.53%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
fedmsg/crypto/utils.py 61.53% <ø> (ø) ⬆️
fedmsg/crypto/x509_ng.py 100% <100%> (ø) ⬆️
fedmsg/core.py 45.6% <0%> (+1.09%) ⬆️
fedmsg/meta/__init__.py 72.3% <0%> (+1.53%) ⬆️
fedmsg/crypto/gpg.py 55.43% <0%> (+2.17%) ⬆️
fedmsg/crypto/x509.py 85.05% <0%> (+4.59%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fe9558...c446108. Read the comment docs.

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]>
Calling decode('base64') is not supported on Python 3 strings.

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]>
@jeremycline
Copy link
Member Author

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.

@pypingou
Copy link
Member

Still looking good to me 👍

@jeremycline jeremycline merged commit 9b78260 into fedora-infra:develop Jul 17, 2017
@jeremycline jeremycline deleted the py3 branch July 17, 2017 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants