From bde9eb872cad4ccace9d55fbb332f583405c099f Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 26 Oct 2021 12:51:33 -0400 Subject: [PATCH] chore: delete owlbot.py (#163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- docs/index.rst | 15 ++++++----- noxfile.py | 4 +-- owlbot.py | 52 ------------------------------------- testing/constraints-3.6.txt | 3 +++ 4 files changed, 14 insertions(+), 60 deletions(-) delete mode 100644 owlbot.py diff --git a/docs/index.rst b/docs/index.rst index 8e23d1a..c919d43 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,7 +2,8 @@ .. include:: multiprocessing.rst -Api Reference + +API Reference ------------- .. toctree:: :maxdepth: 2 @@ -10,22 +11,24 @@ Api Reference datalabeling_v1beta1/services datalabeling_v1beta1/types + Migration Guide --------------- -See the guide below for instructions on migrating to the 1.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING - +  UPGRADING + + Changelog --------- For a list of all ``google-cloud-datalabeling`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/noxfile.py b/noxfile.py index bcb9de3..2a2001c 100644 --- a/noxfile.py +++ b/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") @@ -190,7 +190,7 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", - # "-W", # warnings as errors + "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index fe97d37..0000000 --- a/owlbot.py +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2019 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 -from synthtool import gcp -from synthtool.languages import python - -common = gcp.CommonTemplates() - -default_version = "v1beta1" - -for library in s.get_staging_dirs(default_version): - s.move(library, excludes=["docs/index.rst", "nox.py", "README.rst", "setup.py"]) - -s.remove_staging_dirs() - -# TODO(busunkim): Use latest sphinx after microgenerator transition -s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - samples=True, # set to True only if there are samples - microgenerator=True, - cov_level=98, -) -s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file - - -# ---------------------------------------------------------------------------- -# Samples templates -# ---------------------------------------------------------------------------- -python.py_samples(skip_readmes=True) - -s.replace("noxfile.py", '[\"\']-W[\"\']', '# "-W"') - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) - diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 0e4ac1d..b018f85 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -9,3 +9,6 @@ google-api-core==1.26.0 libcst==0.2.5 proto-plus==1.4.0 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