From ba1e76752061a8b3f262e7cfb452b627c0c789a0 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 29 Oct 2021 02:40:20 -0400 Subject: [PATCH] chore: delete owlbot.py (#238) 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 | 56 +++++++++++++++++++++++++------------------------- noxfile.py | 2 +- owlbot.py | 54 ------------------------------------------------ 3 files changed, 29 insertions(+), 83 deletions(-) delete mode 100644 owlbot.py diff --git a/docs/index.rst b/docs/index.rst index f4217267..02f8be87 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,60 +2,60 @@ .. include:: multiprocessing.rst -API Reference -------------- - +This package includes clients for multiple versions of Cloud Video Intelligence. +By default, you will get version ``videointelligence_v1``. -This package includes clients for multiple versions of the Video Intelligence -API. By default, you will get ``v1``, the latest stable version. +API Reference +------------- .. toctree:: :maxdepth: 2 videointelligence_v1/services videointelligence_v1/types -A beta release with additional features over the current stable version, -spelled ``v1p3beta1``, is also provided. -These are expected to move into the stable release; until then, the -usual beta admonishment (changes are possible, etc.) applies. - -An API and type reference is provided for this beta: - +API Reference +------------- .. toctree:: :maxdepth: 2 - videointelligence_v1p3beta1/services - videointelligence_v1p3beta1/types + videointelligence_v1beta2/services + videointelligence_v1beta2/types -The previous beta releases, spelled ``v1p2beta1``, ``v1p1beta1``, and -``v1beta2``, are provided to continue to support code previously written -against them. In order to use ththem, you will want to import from e.g. -``google.cloud.videointelligence_v1beta2`` in lieu of -``google.cloud.videointelligence_v1``. +API Reference +------------- +.. toctree:: + :maxdepth: 2 -An API and type reference is provided for these betas also: + videointelligence_v1p1beta1/services + videointelligence_v1p1beta1/types +API Reference +------------- .. toctree:: :maxdepth: 2 videointelligence_v1p2beta1/services videointelligence_v1p2beta1/types - videointelligence_v1p1beta1/services - videointelligence_v1p1beta1/types - videointelligence_v1beta2/services - videointelligence_v1beta2/types + +API Reference +------------- +.. toctree:: + :maxdepth: 2 + + videointelligence_v1p3beta1/services + videointelligence_v1p3beta1/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 @@ -64,6 +64,6 @@ Changelog For a list of all ``google-cloud-videointelligence`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/noxfile.py b/noxfile.py index 406a6ef1..2a2001c4 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=70") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index a676586e..00000000 --- a/owlbot.py +++ /dev/null @@ -1,54 +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 logging - -import synthtool as s - -from synthtool import gcp -from synthtool.languages import python - -logging.basicConfig(level=logging.DEBUG) - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - s.move( - library, - excludes=[ - "setup.py", - "README.rst", - "docs/index.rst", - ], - ) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library(cov_level=70, samples=True, microgenerator=True) - -# microgenerator has a good .coveragerc file -s.move(templated_files, excludes=[".coveragerc"]) - -# ---------------------------------------------------------------------------- -# Samples templates -# ---------------------------------------------------------------------------- -python.py_samples() - -s.shell.run(["nox", "-s", "blacken"], hide_output=False)