From 2fec41001064aac435bb52c70c3df4d16980882f Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 15 Oct 2021 01:27:13 +0000 Subject: [PATCH 1/2] chore: delete owlbot.py --- .github/.OwlBot.lock.yaml | 2 +- owlbot.py | 42 --------------------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 7d98291..4423944 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b + digest: sha256:979d9498e07c50097c1aeda937dcd32094ecc7440278a83e832b6a05602f62b6 diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 6c60db5..0000000 --- a/owlbot.py +++ /dev/null @@ -1,42 +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 -from synthtool import gcp -from synthtool.languages import python - -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=98, - samples=False, # set to True only if there are samples - microgenerator=True, -) - -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) From 8754ba17d57a2a532be6a8c72c2bbde7cc6cb9ba Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 22 Oct 2021 16:06:44 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- docs/index.rst | 32 +++++++++++++++----------------- noxfile.py | 4 ++-- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 096e842..1904389 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,52 +2,50 @@ .. include:: multiprocessing.rst +This package includes clients for multiple versions of Cloud Security Scanner. +By default, you will get version ``websecurityscanner_v1``. + + API Reference ------------- -This package includes clients for multiple versions of the Web Security Scanner API. By default, you will get ``v1``, the latest version. - .. toctree:: :maxdepth: 2 websecurityscanner_v1/services websecurityscanner_v1/types -The previous releases spelled ``v1beta`` and ``v1alpha`` are provided to continue to support code previously written against it. In order to use it, you will want to import from it e.g., ``google.cloud.websecurityscanner_v1alpha`` in lieu of ``google.cloud.websecurityscanner`` (or the equivalent ``google.cloud.websecurityscanner_v1``). - - -v1beta -~~~~~~~ +API Reference +------------- .. toctree:: :maxdepth: 2 - websecurityscanner_v1beta/services - websecurityscanner_v1beta/types - + websecurityscanner_v1alpha/services + websecurityscanner_v1alpha/types -v1alpha -~~~~~~~ +API Reference +------------- .. toctree:: :maxdepth: 2 - websecurityscanner_v1alpha/services - websecurityscanner_v1alpha/types + websecurityscanner_v1beta/services + websecurityscanner_v1beta/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-websecurityscanner`` releases. +For a list of all ``google-cloud-websecurityscanner`` releases: .. toctree:: :maxdepth: 2 diff --git a/noxfile.py b/noxfile.py index 672b28d..2a2001c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -101,7 +101,7 @@ def default(session): "py.test", "--quiet", f"--junitxml=unit_{session.python}_sponge_log.xml", - "--cov=google/cloud", + "--cov=google", "--cov=tests/unit", "--cov-append", "--cov-config=.coveragerc", @@ -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")