From 66d35df1a90743656f032a61b69d7f7661ec66fa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 20:46:05 -0400 Subject: [PATCH 1/4] chore: fix formatting in docs/index.rst (#42) Source-Link: https://github.com/googleapis/synthtool/commit/949c010e1cd99da4a85b07f06abe19200cc535ed Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:17723e4df0cdd8d4508547ee517df2287af52c9d3f26a91e897bc618f73ec293 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- docs/index.rst | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index ba7b2f7..1ca6ab4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:3728d8fd14daa46a96d04ce61c6451a3ac864dc48fb71eecbb4411f4a95618d4 + digest: sha256:17723e4df0cdd8d4508547ee517df2287af52c9d3f26a91e897bc618f73ec293 diff --git a/docs/index.rst b/docs/index.rst index 6a3ecc3..d017529 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,12 +11,13 @@ API Reference source_context_v1/services source_context_v1/types + Changelog --------- For a list of all ``google-cloud-source-context`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog From 6e8655efcf8583e6e317fad44831b6c2c516f011 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 20:15:37 -0400 Subject: [PATCH 2/4] chore(python): push cloud library docs to staging bucket for Cloud RAD (#43) Source-Link: https://github.com/googleapis/synthtool/commit/7fd61f8efae782a7cfcecc599faf52f9737fe584 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:4ee57a76a176ede9087c14330c625a71553cf9c72828b2c0ca12f5338171ba60 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/docs/common.cfg | 1 + noxfile.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1ca6ab4..108063d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:17723e4df0cdd8d4508547ee517df2287af52c9d3f26a91e897bc618f73ec293 + digest: sha256:4ee57a76a176ede9087c14330c625a71553cf9c72828b2c0ca12f5338171ba60 diff --git a/.kokoro/docs/common.cfg b/.kokoro/docs/common.cfg index 2cadd8d..312160b 100644 --- a/.kokoro/docs/common.cfg +++ b/.kokoro/docs/common.cfg @@ -30,6 +30,7 @@ env_vars: { env_vars: { key: "V2_STAGING_BUCKET" + # Push google cloud library docs to the Cloud RAD bucket `docs-staging-v2` value: "docs-staging-v2" } diff --git a/noxfile.py b/noxfile.py index 2bb4cf7..2a2001c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -101,7 +101,7 @@ def default(session): "py.test", "--quiet", f"--junitxml=unit_{session.python}_sponge_log.xml", - "--cov=google/cloud", + "--cov=google", "--cov=tests/unit", "--cov-append", "--cov-config=.coveragerc", From 5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:46:11 +0000 Subject: [PATCH 3/4] chore: use gapic-generator-python 0.53.4 (#44) - [ ] Regenerate this pull request now. docs: list oneofs in docstring fix(deps): require google-api-core >= 1.28.0 fix(deps): drop packaging dependency committer: busunkim96@ PiperOrigin-RevId: 406468269 Source-Link: https://github.com/googleapis/googleapis/commit/83d81b0c8fc22291a13398d6d77f02dc97a5b6f4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2ff001fbacb9e77e71d734de5f955c05fdae8526 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9 --- .../source_context_v1/types/source_context.py | 40 +++++++++++++++++++ setup.py | 3 +- testing/constraints-3.6.txt | 4 +- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/google/cloud/source_context_v1/types/source_context.py b/google/cloud/source_context_v1/types/source_context.py index 5bec072..7edbc9c 100644 --- a/google/cloud/source_context_v1/types/source_context.py +++ b/google/cloud/source_context_v1/types/source_context.py @@ -38,19 +38,30 @@ class SourceContext(proto.Message): SourceContext together with a path point to a unique revision of a single file or directory. + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: cloud_repo (google.cloud.source_context_v1.types.CloudRepoSourceContext): A SourceContext referring to a revision in a cloud repo. + This field is a member of `oneof`_ ``context``. cloud_workspace (google.cloud.source_context_v1.types.CloudWorkspaceSourceContext): A SourceContext referring to a snapshot in a cloud workspace. + This field is a member of `oneof`_ ``context``. gerrit (google.cloud.source_context_v1.types.GerritSourceContext): A SourceContext referring to a Gerrit project. + This field is a member of `oneof`_ ``context``. git (google.cloud.source_context_v1.types.GitSourceContext): A SourceContext referring to any third party Git repo (e.g. GitHub). + This field is a member of `oneof`_ ``context``. """ cloud_repo = proto.Field( @@ -107,15 +118,25 @@ class CloudRepoSourceContext(proto.Message): r"""A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform). + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: repo_id (google.cloud.source_context_v1.types.RepoId): The ID of the repo. revision_id (str): A revision ID. + This field is a member of `oneof`_ ``revision``. alias_name (str): The name of an alias (branch, tag, etc.). + This field is a member of `oneof`_ ``revision``. alias_context (google.cloud.source_context_v1.types.AliasContext): An alias, which may be a branch or tag. + This field is a member of `oneof`_ ``revision``. """ repo_id = proto.Field(proto.MESSAGE, number=1, message="RepoId",) @@ -145,6 +166,13 @@ class CloudWorkspaceSourceContext(proto.Message): class GerritSourceContext(proto.Message): r"""A SourceContext referring to a Gerrit project. + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: host_uri (str): The URI of a running Gerrit instance. @@ -155,10 +183,13 @@ class GerritSourceContext(proto.Message): hostURI/project. revision_id (str): A revision (commit) ID. + This field is a member of `oneof`_ ``revision``. alias_name (str): The name of an alias (branch, tag, etc.). + This field is a member of `oneof`_ ``revision``. alias_context (google.cloud.source_context_v1.types.AliasContext): An alias, which may be a branch or tag. + This field is a member of `oneof`_ ``revision``. """ host_uri = proto.Field(proto.STRING, number=1,) @@ -189,13 +220,22 @@ class GitSourceContext(proto.Message): class RepoId(proto.Message): r"""A unique identifier for a cloud repo. + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: project_repo_id (google.cloud.source_context_v1.types.ProjectRepoId): A combination of a project ID and a repo name. + This field is a member of `oneof`_ ``id``. uid (str): A server-assigned, globally unique identifier. + This field is a member of `oneof`_ ``id``. """ project_repo_id = proto.Field( diff --git a/setup.py b/setup.py index b5d3ac7..aea1421 100644 --- a/setup.py +++ b/setup.py @@ -29,9 +29,8 @@ # NOTE: Maintainers, please do not require google-api-core>=2.x.x # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 - "google-api-core[grpc] >= 1.26.0, <3.0.0dev", + "google-api-core[grpc] >= 1.28.0, <3.0.0dev", "proto-plus >= 1.15.0", - "packaging >= 14.3", ] package_root = os.path.abspath(os.path.dirname(__file__)) diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 3f7f11e..1e3ec8b 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -4,7 +4,5 @@ # Pin the version to the lower bound. # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev", # Then this file should have google-cloud-foo==1.14.0 -google-api-core==1.26.0 +google-api-core==1.28.0 proto-plus==1.15.0 -packaging==14.3 -google-auth==1.24.0 # TODO: remove when google-auth>=1.25.0 is transitively required through google-api-core \ No newline at end of file From d11b32da0372c30313dfd3a9c4a33a09f55e2e68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Nov 2021 16:04:15 +0000 Subject: [PATCH 4/4] chore: release 1.2.1 (#45) :robot: I have created a release \*beep\* \*boop\* --- ### [1.2.1](https://www.github.com/googleapis/python-source-context/compare/v1.2.0...v1.2.1) (2021-11-01) ### Bug Fixes * **deps:** drop packaging dependency ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) * **deps:** require google-api-core >= 1.28.0 ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) ### Documentation * list oneofs in docstring ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ setup.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2d8cb6..469b850 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.2.1](https://www.github.com/googleapis/python-source-context/compare/v1.2.0...v1.2.1) (2021-11-01) + + +### Bug Fixes + +* **deps:** drop packaging dependency ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) +* **deps:** require google-api-core >= 1.28.0 ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) + + +### Documentation + +* list oneofs in docstring ([5234b6b](https://www.github.com/googleapis/python-source-context/commit/5234b6bd2e42a1b7cd6bcb4a0055801a81c928ca)) + ## [1.2.0](https://www.github.com/googleapis/python-source-context/compare/v1.1.0...v1.2.0) (2021-10-18) diff --git a/setup.py b/setup.py index aea1421..51b14f8 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-source-context" description = "Python client for Source Context" -version = "1.2.0" +version = "1.2.1" release_status = "Development Status :: 5 - Production/Stable" url = "https://github.com/googleapis/python-source-context" dependencies = [