-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for
google.cloud.apigeeconnect.__version__
(#153)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add support for `google.cloud.apigeeconnect.__version__` fix: Add dict typing for client_options chore: use autogenerated setup.py chore: update to gapic-generator-python 1.5.0 fix(deps): require google-api-core >=1.33.2 END_COMMIT_OVERRIDE PiperOrigin-RevId: 484665853 Source-Link: https://togithub.com/googleapis/googleapis/commit/8eb249a19db926c2fbc4ecf1dc09c0e521a88b22 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9
- Loading branch information
1 parent
a2ab92b
commit e7416f3
Showing
15 changed files
with
169 additions
and
21 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/google-cloud-apigee-connect/.github/release-please.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/google-cloud-apigee-connect/.release-please-manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "1.4.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/google-cloud-apigee-connect/google/cloud/apigeeconnect/gapic_version.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
__version__ = "1.4.3" # {x-release-please-version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import json | ||
from pathlib import Path | ||
import shutil | ||
|
||
import synthtool as s | ||
import synthtool.gcp as gcp | ||
from synthtool.languages import python | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Copy the generated client from the owl-bot staging directory | ||
# ---------------------------------------------------------------------------- | ||
|
||
clean_up_generated_samples = True | ||
|
||
# Load the default version defined in .repo-metadata.json. | ||
default_version = json.load(open(".repo-metadata.json", "rt")).get( | ||
"default_version" | ||
) | ||
|
||
for library in s.get_staging_dirs(default_version): | ||
if clean_up_generated_samples: | ||
shutil.rmtree("samples/generated_samples", ignore_errors=True) | ||
clean_up_generated_samples = False | ||
s.move([library], excludes=["**/gapic_version.py"]) | ||
s.remove_staging_dirs() | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Add templated files | ||
# ---------------------------------------------------------------------------- | ||
|
||
templated_files = gcp.CommonTemplates().py_library( | ||
cov_level=100, | ||
microgenerator=True, | ||
versions=gcp.common.detect_versions(path="./google", default_first=True), | ||
) | ||
s.move(templated_files, excludes=[".coveragerc", ".github/release-please.yml"]) | ||
|
||
python.py_samples(skip_readmes=True) | ||
|
||
# run format session for all directories which have a noxfile | ||
for noxfile in Path(".").glob("**/noxfile.py"): | ||
s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False) |
23 changes: 23 additions & 0 deletions
23
packages/google-cloud-apigee-connect/release-please-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"packages": { | ||
".": { | ||
"release-type": "python", | ||
"extra-files": [ | ||
"google/cloud/apigeeconnect/gapic_version.py", | ||
{ | ||
"type": "json", | ||
"path": "samples/generated_samples/snippet_metadata_apigeeconnect_v1.json", | ||
"jsonpath": "$.clientLibrary.version" | ||
} | ||
] | ||
} | ||
}, | ||
"release-type": "python", | ||
"plugins": [ | ||
{ | ||
"type": "sentence-case" | ||
} | ||
], | ||
"initial-version": "0.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# This constraints file is required for unit tests. | ||
# List all library dependencies and extras in this file. | ||
google-api-core | ||
proto-plus | ||
protobuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# This constraints file is required for unit tests. | ||
# List all library dependencies and extras in this file. | ||
google-api-core | ||
proto-plus | ||
protobuf |
11 changes: 6 additions & 5 deletions
11
packages/google-cloud-apigee-connect/testing/constraints-3.7.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# This constraints file is used to check that lower bounds | ||
# are correct in setup.py | ||
# List *all* library dependencies and extras in this file. | ||
# List all library dependencies and extras in this file. | ||
# Pin the version to the lower bound. | ||
# | ||
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", | ||
# Then this file should have foo==1.14.0 | ||
google-api-core==1.32.0 | ||
# 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 | ||
# This file is intentionally left empty to test the | ||
# latest versions of dependencies. | ||
google-api-core==1.33.2 | ||
proto-plus==1.22.0 | ||
protobuf==3.19.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# This constraints file is required for unit tests. | ||
# List all library dependencies and extras in this file. | ||
google-api-core | ||
proto-plus | ||
protobuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# This constraints file is required for unit tests. | ||
# List all library dependencies and extras in this file. | ||
google-api-core | ||
proto-plus | ||
protobuf |