diff --git a/packages/google-cloud-scheduler/docs/index.rst b/packages/google-cloud-scheduler/docs/index.rst index 2cf2d5afeaec..0c878041280a 100644 --- a/packages/google-cloud-scheduler/docs/index.rst +++ b/packages/google-cloud-scheduler/docs/index.rst @@ -2,10 +2,11 @@ .. include:: multiprocessing.rst -This package includes clients for multiple versions of the Cloud Scheduler -API. By default, you will get ``v1``, the latest stable version. +This package includes clients for multiple versions of Google Cloud Scheduler. +By default, you will get version ``scheduler_v1``. -v1 + +API Reference ------------- .. toctree:: :maxdepth: 2 @@ -13,10 +14,7 @@ v1 scheduler_v1/services scheduler_v1/types - -Previous beta release ``v1beta1`` is provided as well. - -v1beta1 +API Reference ------------- .. toctree:: :maxdepth: 2 @@ -25,16 +23,15 @@ v1beta1 scheduler_v1beta1/types - Migration Guide --------------- -See the guide below for instructions on migrating to the 2.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING +  UPGRADING Changelog @@ -43,6 +40,6 @@ Changelog For a list of all ``google-cloud-scheduler`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog \ No newline at end of file + changelog diff --git a/packages/google-cloud-scheduler/noxfile.py b/packages/google-cloud-scheduler/noxfile.py index f041f1f5a4ae..2a2001c49998 100644 --- a/packages/google-cloud-scheduler/noxfile.py +++ b/packages/google-cloud-scheduler/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=98") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-cloud-scheduler/owlbot.py b/packages/google-cloud-scheduler/owlbot.py deleted file mode 100644 index 1ec920431c5a..000000000000 --- a/packages/google-cloud-scheduler/owlbot.py +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 2018 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. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python -import logging - -logging.basicConfig(level=logging.DEBUG) - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - s.replace(library / f"google/cloud/scheduler_{library.name}/gapic/cloud_scheduler_client.py", - "google-cloud-cloudscheduler", - "google-cloud-scheduler", - ) - - excludes = ["README.rst", "nox.py", "setup.py", "docs/conf.py", - "docs/index.rst"] - s.move(library, excludes=excludes) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - samples=True, - microgenerator=True, - cov_level=98, -) -s.move(templated_files, excludes=[".coveragerc"]) - -# ---------------------------------------------------------------------------- -# Samples templates -# ---------------------------------------------------------------------------- - -python.py_samples(skip_readmes=True) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/packages/google-cloud-scheduler/testing/constraints-3.6.txt b/packages/google-cloud-scheduler/testing/constraints-3.6.txt index add8f1e952a2..475800063567 100644 --- a/packages/google-cloud-scheduler/testing/constraints-3.6.txt +++ b/packages/google-cloud-scheduler/testing/constraints-3.6.txt @@ -9,3 +9,6 @@ google-api-core==1.26.0 proto-plus==1.4.0 libcst==0.2.5 packaging==14.3 +# TODO: remove once google-auth>=1.25.0 is required transitively +# through google-api-core>=1.28.0 +google-auth==1.24.0