-
Notifications
You must be signed in to change notification settings - Fork 314
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 grpc transport #67
Conversation
composite_credentials = grpc.composite_channel_credentials( | ||
ssl_credentials, google_auth_credentials) | ||
|
||
channel = grpc.secure_channel(target, composite_credentials) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
import mock | ||
|
||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
google_auth_credentials = grpc.metadata_call_credentials( | ||
google_auth_credentials_metadata_plugin) | ||
|
||
if not ssl_credentials: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@nathanielmanistaatgoogle any idea why |
It might actually be that grpc isn't being installed. Do you know why this would be the case? |
@@ -373,3 +373,4 @@ | |||
# Autodoc config | |||
autoclass_content = 'both' | |||
autodoc_member_order = 'bysource' | |||
autodoc_mock_imports = ['grpc'] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
# DEFAULT: variable-rgx=[a-z_][a-z0-9_]{2,30}$ | ||
# RATIONALE: Prefer longer, more specific variable names to avoid ambiguity. | ||
# especially for methods that implement wordy rfcs or use wordy libraries. | ||
variable-rgx=[a-z_][a-z0-9_]{2,40}$ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No idea why that might be happening. |
Does gRPC support PyPy? Surely it must support 2.7, but it's failing there too. |
PyPy support isn't completely formalized, but if it's not working for you we definitely want to know. You shouldn't have to disable gRPC Python when running with PyPy. |
Do you have a tracking bug on gRPC for this? |
@bjwatson @geigerj seems I've satisfied @dhermes and @nathanielmanistaatgoogle, can you please take a look? |
@jonparrott: issue 4221 tracks formal PyPy support; if you've found something not working I'm sure @thunderboltsid will want to hear about it. |
|
||
import pytest | ||
|
||
try: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@nathanielmanistaatgoogle it just seems to not compile on Travis. I'll link over to the build on that issue. |
If I'm reading the Travis output correctly, this passes on 2.7 now, right? Did you find any reason why it was failing yesterday? PyPy is now the only known problematic environment? |
Correct.
Not sure, but I'm guessing it was the addition of
Correct. |
9b5ba65
to
c2f3731
Compare
@bjwatson @geigerj please review, as this will replace all of
gax.auth
and most ofgax.grpc
.@nathanielmanistaatgoogle PTAL to verify grpc usage.