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 api_core package #4210

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Conversation

theacodes
Copy link
Contributor

Note:

  • Added new module protobuf_helpers to break co-dependency on core. (This was going to be added anyway as I move helpers from gax)
  • This isn't in the docs yet but I'll do that a a separate PR.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2017
Copy link
Contributor

@dhermes dhermes left a 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.

@@ -0,0 +1,76 @@
# Copyright 2016 Google Inc.

This comment was marked as spam.

This comment was marked as spam.

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.

def __repr__
# Ignore abstract methods
raise NotImplementedError
raise NotImplementedError()

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor

@lukesneeringer lukesneeringer left a 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.

return '{}, last exception: {}'.format(self.message, self.cause)


class _GoogleAPICallErrorMeta(type):

This comment was marked as spam.

This comment was marked as spam.

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.

@theacodes theacodes merged commit b3197f0 into googleapis:master Oct 18, 2017
@theacodes theacodes deleted the api-core-package-round-2 branch October 18, 2017 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants