-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 api_core package #4210
Add api_core package #4210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursory LGTM
command: | | ||
if [[ -n $(grep api_core ~/target_packages) ]]; then | ||
nox -f api_core/nox.py | ||
fi |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -0,0 +1,76 @@ | |||
# Copyright 2016 Google Inc. |
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.
REQUIREMENTS = [ | ||
'googleapis-common-protos >= 1.5.3, < 2.0dev', | ||
'protobuf >= 3.0.0', | ||
'google-auth >= 0.4.0, < 2.0.0dev', |
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.
api_core/.coveragerc
Outdated
def __repr__ | ||
# Ignore abstract methods | ||
raise NotImplementedError | ||
raise NotImplementedError() |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a couple minor nits.
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright [yyyy] [name of copyright owner] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
return '{}, last exception: {}'.format(self.message, self.cause) | ||
|
||
|
||
class _GoogleAPICallErrorMeta(type): |
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.
Sequence[Tuple(str, str)]: The gRPC-friendly metadata keys and values. | ||
""" | ||
client_metadata = 'api-core/{} gl-python/{} grpc/{}'.format( | ||
_API_CORE_VERSION, _PY_VERSION, _API_CORE_VERSION) |
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.
Note:
protobuf_helpers
to break co-dependency oncore
. (This was going to be added anyway as I move helpers from gax)