From 9d2dc188c442d085156bd149878979dcd2212a2f Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 8 Nov 2021 11:07:51 -0500 Subject: [PATCH] chore: delete owlbot.py (#230) 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 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google-cloud-documentai/docs/index.rst | 24 ++++++-- packages/google-cloud-documentai/noxfile.py | 2 +- packages/google-cloud-documentai/owlbot.py | 57 ------------------- 3 files changed, 21 insertions(+), 62 deletions(-) delete mode 100644 packages/google-cloud-documentai/owlbot.py diff --git a/packages/google-cloud-documentai/docs/index.rst b/packages/google-cloud-documentai/docs/index.rst index fd5e27544401..8488489a37f1 100644 --- a/packages/google-cloud-documentai/docs/index.rst +++ b/packages/google-cloud-documentai/docs/index.rst @@ -2,6 +2,10 @@ .. include:: multiprocessing.rst +This package includes clients for multiple versions of Cloud Document Understanding API. +By default, you will get version ``documentai_v1``. + + API Reference ------------- .. toctree:: @@ -9,11 +13,23 @@ API Reference documentai_v1/services documentai_v1/types - documentai_v1beta3/services - documentai_v1beta3/types + +API Reference +------------- +.. toctree:: + :maxdepth: 2 + documentai_v1beta2/services documentai_v1beta2/types +API Reference +------------- +.. toctree:: + :maxdepth: 2 + + documentai_v1beta3/services + documentai_v1beta3/types + Changelog --------- @@ -21,6 +37,6 @@ Changelog For a list of all ``google-cloud-documentai`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/packages/google-cloud-documentai/noxfile.py b/packages/google-cloud-documentai/noxfile.py index de41c6bf9af5..2a2001c49998 100644 --- a/packages/google-cloud-documentai/noxfile.py +++ b/packages/google-cloud-documentai/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=99") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-cloud-documentai/owlbot.py b/packages/google-cloud-documentai/owlbot.py deleted file mode 100644 index ac14bcd2c43f..000000000000 --- a/packages/google-cloud-documentai/owlbot.py +++ /dev/null @@ -1,57 +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 re - -from synthtool.languages import python - -import synthtool as s -import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - excludes = [ - "README.rst", - "docs/index.rst", - "setup.py", - "scripts/fixup_documentai_v*", # this library was always generated with the microgenerator - ] - - s.move(library, excludes=excludes) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - cov_level=99, microgenerator=True, samples=False, # set to true if there are samples -) - -s.move( - templated_files, - excludes=[".coveragerc"], # microgenerator has a good .coveragerc file -) - -python.py_samples(skip_readmes=True) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) -