-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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.7 compatibility #4862
Conversation
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
Thanks for your PR Is it the only thing that we need to fix for python3.7? Can you also help add python3.7 in tests.sh as well: |
To the best of my knowledge, yes.
I don't know enough about your build system to confidently do that, but it looks like you run this on Travis, and I do know that making Python 3.7 work on Travis is a little involved because they require a newer OpenSSL than is present in Ubuntu Trusty - see travis-ci/travis-ci#9069. |
Thanks, we can add the 3.7 tests in other RPs. |
CLA is still complain. Can you double check? |
Just checked at https://cla.developers.google.com/clas and it shows I have a Google Individual CLA signed Jul 03, 2018 09:57 PDT. |
Are you using a different email address on your commit? It shows you are using ben@salilab.org for the commit, are you using this email to sign CLA and this email is set on your github account? |
Right, ben@salilab.org is the commit email and is tied to my GitHub account. It is also an alternate email for my Google account, so all should be good there too. I just updated the CLA to add my GitHub username - maybe that will fix things at your end. |
CLAs look good, thanks! |
Hi protobufferians -- TY @benmwebb for getting this fix in! 🌟 Is there anywhere I see the roughly planned schedule for the next release (3.7.0 or 3.6.2?), so we can figure out if we should wait for it, or patch this into protobuf 3.6.1 after we download it, if we are trying to build against Python 3.7. Thanks! |
@handlerbot We don't have a set timeline for when our next release will be, but we will most likely do a 3.7.0 release before the end of the year (we probably won't be doing any more 3.6 patch releases). |
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
I look forward to python-3.7-compatible protobuf 3.6.x release, beause protobuf 3.6.1.1 or earlier is incompatible with it. |
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
Compilation of Python wrappers fails with Python 3.7 because
the Python folks changed their C API such that
PyUnicode_AsUTF8AndSize() now returns a const char* rather
than a char*. Add a patch to work around. Relates #4086.