From 4e24b3c360adef8d7761573d789867857586337d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:02:28 +0100 Subject: [PATCH 1/7] chore(deps): update dependency google-cloud-logging to v2 (#95) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index dbb4176a1..379ac65b1 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-logging==1.15.1 +google-cloud-logging==2.0.0 From 6a46b46a6bbc154c9b5b737859f108021ab5b201 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Fri, 20 Nov 2020 08:43:02 -0700 Subject: [PATCH 2/7] docs: fix logger documentation (#100) * docs: fix documentation for logger * chore: blacken --- docs/conf.py | 6 +++--- google/cloud/logging_v2/logger.py | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 296607b79..6da1e2e79 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -345,10 +345,10 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - "python": ("http://python.readthedocs.org/en/latest/", None), - "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), + "python": ("https://python.readthedocs.org/en/latest/", None), + "google-auth": ("https://googleapis.dev/python/google-auth/latest/", None), "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,), - "grpc": ("https://grpc.io/grpc/python/", None), + "grpc": ("https://grpc.github.io/grpc/python/", None), "proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None), } diff --git a/google/cloud/logging_v2/logger.py b/google/cloud/logging_v2/logger.py index 89202bcbd..6e9c5f00d 100644 --- a/google/cloud/logging_v2/logger.py +++ b/google/cloud/logging_v2/logger.py @@ -43,12 +43,13 @@ class Logger(object): - def __init__(self, name, client, *, labels=None): - """Loggers represent named targets for log entries. + """Loggers represent named targets for log entries. - See - https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.logs + See https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.logs + """ + def __init__(self, name, client, *, labels=None): + """ Args: name (str): The name of the logger. client (~logging_v2.client.Client): @@ -57,7 +58,6 @@ def __init__(self, name, client, *, labels=None): labels (Optional[dict]): Mapping of default labels for entries written via this logger. - """ self.name = name self._client = client @@ -247,6 +247,7 @@ def list_entries( "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + If not passed, defaults to the project bound to the client. filter_ (Optional[str]): a filter expression. See https://cloud.google.com/logging/docs/view/advanced_filters From 85242c00655424672616ed1e5b6e3cdcb6e8990a Mon Sep 17 00:00:00 2001 From: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> Date: Mon, 23 Nov 2020 15:00:50 -0800 Subject: [PATCH 3/7] tests: skip some system tests for mtls testing (#105) --- tests/system/test_system.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/system/test_system.py b/tests/system/test_system.py index 10896adf7..f9cb96e18 100644 --- a/tests/system/test_system.py +++ b/tests/system/test_system.py @@ -14,6 +14,8 @@ import datetime import logging +import os +import pytest import unittest from google.api_core.exceptions import BadGateway @@ -81,12 +83,21 @@ class Config(object): """ CLIENT = None + use_mtls = os.environ.get("GOOGLE_API_USE_MTLS_ENDPOINT", "never") def setUpModule(): Config.CLIENT = client.Client() +# Skip the test cases using bigquery, storage and pubsub clients for mTLS testing. +# Bigquery and storage uses http which doesn't have mTLS support, pubsub doesn't +# have mTLS fix released yet. +skip_for_mtls = pytest.mark.skipif( + Config.use_mtls == "always", reason="Skip the test case for mTLS testing" +) + + class TestLogging(unittest.TestCase): JSON_PAYLOAD = { @@ -408,6 +419,7 @@ def _init_storage_bucket(self): return BUCKET_URI + @skip_for_mtls def test_create_sink_storage_bucket(self): uri = self._init_storage_bucket() SINK_NAME = "test-create-sink-bucket%s" % (_RESOURCE_ID,) @@ -421,6 +433,7 @@ def test_create_sink_storage_bucket(self): self.to_delete.append(sink) self.assertTrue(sink.exists()) + @skip_for_mtls def test_create_sink_pubsub_topic(self): from google.cloud import pubsub_v1 @@ -474,6 +487,7 @@ def _init_bigquery_dataset(self): bigquery_client.update_dataset(dataset, ["access_entries"]) return dataset_uri + @skip_for_mtls def test_create_sink_bigquery_dataset(self): SINK_NAME = "test-create-sink-dataset%s" % (_RESOURCE_ID,) retry = RetryErrors((Conflict, ServiceUnavailable), max_tries=10) @@ -486,6 +500,7 @@ def test_create_sink_bigquery_dataset(self): self.to_delete.append(sink) self.assertTrue(sink.exists()) + @skip_for_mtls def test_list_sinks(self): SINK_NAME = "test-list-sinks%s" % (_RESOURCE_ID,) uri = self._init_storage_bucket() @@ -504,6 +519,7 @@ def test_list_sinks(self): after_names = set(after.name for after in after_sinks) self.assertTrue(sink.name in after_names) + @skip_for_mtls def test_reload_sink(self): SINK_NAME = "test-reload-sink%s" % (_RESOURCE_ID,) retry = RetryErrors((Conflict, ServiceUnavailable), max_tries=10) @@ -520,6 +536,7 @@ def test_reload_sink(self): self.assertEqual(sink.filter_, DEFAULT_FILTER) self.assertEqual(sink.destination, uri) + @skip_for_mtls def test_update_sink(self): SINK_NAME = "test-update-sink%s" % (_RESOURCE_ID,) retry = RetryErrors((Conflict, ServiceUnavailable), max_tries=10) From 8aa78650bd4e6bef9033a324619d94e8b9f28045 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 1 Dec 2020 16:40:46 -0700 Subject: [PATCH 4/7] chore: require samples checks (#108) --- .github/sync-repo-settings.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/sync-repo-settings.yaml diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml new file mode 100644 index 000000000..af5993532 --- /dev/null +++ b/.github/sync-repo-settings.yaml @@ -0,0 +1,13 @@ +# https://github.com/googleapis/repo-automation-bots/tree/master/packages/sync-repo-settings +# Rules for master branch protection +branchProtectionRules: +# Identifies the protection rule pattern. Name of the branch to be protected. +# Defaults to `master` +- pattern: master + requiredStatusCheckContexts: + - 'Kokoro' + - 'cla/google' + - 'Samples - Lint' + - 'Samples - Python 3.6' + - 'Samples - Python 3.7' + - 'Samples - Python 3.8' From eb5cf407129fb76124d6a405c0805b70f2689cc4 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 1 Dec 2020 16:11:16 -0800 Subject: [PATCH 5/7] fix: remove duplicate stream handler (#106) --- google/cloud/logging_v2/handlers/handlers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/google/cloud/logging_v2/handlers/handlers.py b/google/cloud/logging_v2/handlers/handlers.py index 2d79c7f8a..d45c7b61b 100644 --- a/google/cloud/logging_v2/handlers/handlers.py +++ b/google/cloud/logging_v2/handlers/handlers.py @@ -139,7 +139,6 @@ def setup_logging( logger = logging.getLogger() logger.setLevel(log_level) logger.addHandler(handler) - logger.addHandler(logging.StreamHandler()) for logger_name in all_excluded_loggers: logger = logging.getLogger(logger_name) logger.propagate = False From b28ea19a7cb22bb0009c45762d6a94fa164607df Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 2 Dec 2020 10:56:12 -0800 Subject: [PATCH 6/7] chore: Re-generated to pick up changes from synthtool. (#98) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * fix: address lint issues Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Source-Date: Thu Nov 12 11:30:49 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: e89175cf074dccc4babb4eca66ae913696e47a71 Source-Link: https://github.com/googleapis/synthtool/commit/e89175cf074dccc4babb4eca66ae913696e47a71 * docs(python): update intersphinx for grpc and auth * docs(python): update intersphinx for grpc and auth * use https for python intersphinx Co-authored-by: Tim Swast Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Nov 18 14:37:25 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9 Source-Link: https://github.com/googleapis/synthtool/commit/9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9 * docs(python): fix intersphinx link for google-auth Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu Nov 19 10:16:05 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: a073c873f3928c561bdf87fdfbf1d081d1998984 Source-Link: https://github.com/googleapis/synthtool/commit/a073c873f3928c561bdf87fdfbf1d081d1998984 --- google/cloud/logging_v2/types/__init__.py | 35 ++++--- noxfile.py | 2 +- samples/snippets/README.rst | 21 +++- samples/snippets/noxfile.py | 34 +++---- synth.metadata | 117 +++++++++++++++++++++- 5 files changed, 166 insertions(+), 43 deletions(-) diff --git a/google/cloud/logging_v2/types/__init__.py b/google/cloud/logging_v2/types/__init__.py index 55161ba5f..ab5f9c8c1 100644 --- a/google/cloud/logging_v2/types/__init__.py +++ b/google/cloud/logging_v2/types/__init__.py @@ -44,16 +44,6 @@ GetCmekSettingsRequest, UpdateCmekSettingsRequest, CmekSettings, - LifecycleState, -) -from .logging_metrics import ( - LogMetric, - ListLogMetricsRequest, - ListLogMetricsResponse, - GetLogMetricRequest, - CreateLogMetricRequest, - UpdateLogMetricRequest, - DeleteLogMetricRequest, ) from .logging import ( DeleteLogRequest, @@ -67,6 +57,16 @@ ListLogsRequest, ListLogsResponse, ) +from .logging_metrics import ( + LogMetric, + ListLogMetricsRequest, + ListLogMetricsResponse, + GetLogMetricRequest, + CreateLogMetricRequest, + UpdateLogMetricRequest, + DeleteLogMetricRequest, +) + __all__ = ( "LogEntry", @@ -95,14 +95,6 @@ "GetCmekSettingsRequest", "UpdateCmekSettingsRequest", "CmekSettings", - "LifecycleState", - "LogMetric", - "ListLogMetricsRequest", - "ListLogMetricsResponse", - "GetLogMetricRequest", - "CreateLogMetricRequest", - "UpdateLogMetricRequest", - "DeleteLogMetricRequest", "DeleteLogRequest", "WriteLogEntriesRequest", "WriteLogEntriesResponse", @@ -113,4 +105,11 @@ "ListMonitoredResourceDescriptorsResponse", "ListLogsRequest", "ListLogsResponse", + "LogMetric", + "ListLogMetricsRequest", + "ListLogMetricsResponse", + "GetLogMetricRequest", + "CreateLogMetricRequest", + "UpdateLogMetricRequest", + "DeleteLogMetricRequest", ) diff --git a/noxfile.py b/noxfile.py index ca45b2c40..1844aa62b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -28,7 +28,7 @@ DEFAULT_PYTHON_VERSION = "3.8" SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] -UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8"] +UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] @nox.session(python=DEFAULT_PYTHON_VERSION) diff --git a/samples/snippets/README.rst b/samples/snippets/README.rst index 1531d24ad..9a38dca7d 100644 --- a/samples/snippets/README.rst +++ b/samples/snippets/README.rst @@ -1,3 +1,4 @@ + .. This file is automatically generated. Do not edit this file directly. Cloud Logging Python Samples @@ -19,6 +20,7 @@ Setup ------------------------------------------------------------------------------- + Authentication ++++++++++++++ @@ -30,14 +32,16 @@ credentials for applications. https://cloud.google.com/docs/authentication/getting-started + + Install Dependencies ++++++++++++++++++++ -#. Clone python-logging and change directory to the sample directory you want to use. +#. Clone python-docs-samples and change directory to the sample directory you want to use. .. code-block:: bash - $ git clone https://github.com/googleapis/python-logging.git + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git #. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. @@ -61,6 +65,10 @@ Install Dependencies .. _virtualenv: https://virtualenv.pypa.io/ + + + + Samples ------------------------------------------------------------------------------- @@ -82,6 +90,7 @@ To run this sample: + Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -120,6 +129,7 @@ To run this sample: + Export +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -158,6 +168,10 @@ To run this sample: + + + + The client library ------------------------------------------------------------------------------- @@ -173,4 +187,5 @@ to `browse the source`_ and `report issues`_. https://github.com/GoogleCloudPlatform/google-cloud-python/issues -.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index ab2c49227..b90eef00f 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -37,25 +37,28 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + 'ignored_versions': ["2.7"], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them - "enforce_type_hints": False, + 'enforce_type_hints': False, + # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', + # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - "envs": {}, + 'envs': {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") + sys.path.append('.') from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -70,12 +73,12 @@ def get_pytest_env_vars(): ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] + env_key = TEST_CONFIG['gcloud_project_env'] # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) + ret.update(TEST_CONFIG['envs']) return ret @@ -84,7 +87,7 @@ def get_pytest_env_vars(): ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] +IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) @@ -133,7 +136,7 @@ def _determine_local_import_names(start_dir): @nox.session def lint(session): - if not TEST_CONFIG["enforce_type_hints"]: + if not TEST_CONFIG['enforce_type_hints']: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -142,11 +145,9 @@ def lint(session): args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - ".", + "." ] session.run("flake8", *args) - - # # Black # @@ -159,7 +160,6 @@ def blacken(session): session.run("black", *python_files) - # # Sample Tests # @@ -199,9 +199,9 @@ def py(session): if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) + session.skip("SKIPPED: {} tests are disabled for this sample.".format( + session.python + )) # diff --git a/synth.metadata b/synth.metadata index 493b1a2b5..05600e4ce 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-logging", - "sha": "8466c62f459af6c2d89b411297df06988e45b522" + "remote": "https://github.com/googleapis/python-logging.git", + "sha": "4e24b3c360adef8d7761573d789867857586337d" } }, { @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "a073c873f3928c561bdf87fdfbf1d081d1998984" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "a073c873f3928c561bdf87fdfbf1d081d1998984" } } ], @@ -40,5 +40,114 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".flake8", + ".github/CONTRIBUTING.md", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/release-please.yml", + ".github/snippet-bot.yml", + ".gitignore", + ".kokoro/build.sh", + ".kokoro/continuous/common.cfg", + ".kokoro/continuous/continuous.cfg", + ".kokoro/docker/docs/Dockerfile", + ".kokoro/docker/docs/fetch_gpg_keys.sh", + ".kokoro/docs/common.cfg", + ".kokoro/docs/docs-presubmit.cfg", + ".kokoro/docs/docs.cfg", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/common.cfg", + ".kokoro/presubmit/presubmit.cfg", + ".kokoro/publish-docs.sh", + ".kokoro/release.sh", + ".kokoro/release/common.cfg", + ".kokoro/release/release.cfg", + ".kokoro/samples/lint/common.cfg", + ".kokoro/samples/lint/continuous.cfg", + ".kokoro/samples/lint/periodic.cfg", + ".kokoro/samples/lint/presubmit.cfg", + ".kokoro/samples/python3.6/common.cfg", + ".kokoro/samples/python3.6/continuous.cfg", + ".kokoro/samples/python3.6/periodic.cfg", + ".kokoro/samples/python3.6/presubmit.cfg", + ".kokoro/samples/python3.7/common.cfg", + ".kokoro/samples/python3.7/continuous.cfg", + ".kokoro/samples/python3.7/periodic.cfg", + ".kokoro/samples/python3.7/presubmit.cfg", + ".kokoro/samples/python3.8/common.cfg", + ".kokoro/samples/python3.8/continuous.cfg", + ".kokoro/samples/python3.8/periodic.cfg", + ".kokoro/samples/python3.8/presubmit.cfg", + ".kokoro/test-samples.sh", + ".kokoro/trampoline.sh", + ".kokoro/trampoline_v2.sh", + ".trampolinerc", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.rst", + "LICENSE", + "MANIFEST.in", + "docs/_static/custom.css", + "docs/_templates/layout.html", + "docs/conf.py", + "google/cloud/logging/py.typed", + "google/cloud/logging_v2/proto/log_entry.proto", + "google/cloud/logging_v2/proto/logging.proto", + "google/cloud/logging_v2/proto/logging_config.proto", + "google/cloud/logging_v2/proto/logging_metrics.proto", + "google/cloud/logging_v2/py.typed", + "google/cloud/logging_v2/services/__init__.py", + "google/cloud/logging_v2/services/config_service_v2/__init__.py", + "google/cloud/logging_v2/services/config_service_v2/async_client.py", + "google/cloud/logging_v2/services/config_service_v2/client.py", + "google/cloud/logging_v2/services/config_service_v2/pagers.py", + "google/cloud/logging_v2/services/config_service_v2/transports/__init__.py", + "google/cloud/logging_v2/services/config_service_v2/transports/base.py", + "google/cloud/logging_v2/services/config_service_v2/transports/grpc.py", + "google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py", + "google/cloud/logging_v2/services/logging_service_v2/__init__.py", + "google/cloud/logging_v2/services/logging_service_v2/async_client.py", + "google/cloud/logging_v2/services/logging_service_v2/client.py", + "google/cloud/logging_v2/services/logging_service_v2/pagers.py", + "google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py", + "google/cloud/logging_v2/services/logging_service_v2/transports/base.py", + "google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py", + "google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py", + "google/cloud/logging_v2/services/metrics_service_v2/__init__.py", + "google/cloud/logging_v2/services/metrics_service_v2/async_client.py", + "google/cloud/logging_v2/services/metrics_service_v2/client.py", + "google/cloud/logging_v2/services/metrics_service_v2/pagers.py", + "google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py", + "google/cloud/logging_v2/services/metrics_service_v2/transports/base.py", + "google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py", + "google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py", + "google/cloud/logging_v2/types/__init__.py", + "google/cloud/logging_v2/types/log_entry.py", + "google/cloud/logging_v2/types/logging.py", + "google/cloud/logging_v2/types/logging_config.py", + "google/cloud/logging_v2/types/logging_metrics.py", + "mypy.ini", + "noxfile.py", + "renovate.json", + "samples/AUTHORING_GUIDE.md", + "samples/CONTRIBUTING.md", + "samples/snippets/README.rst", + "samples/snippets/noxfile.py", + "scripts/decrypt-secrets.sh", + "scripts/readme-gen/readme_gen.py", + "scripts/readme-gen/templates/README.tmpl.rst", + "scripts/readme-gen/templates/auth.tmpl.rst", + "scripts/readme-gen/templates/auth_api_key.tmpl.rst", + "scripts/readme-gen/templates/install_deps.tmpl.rst", + "scripts/readme-gen/templates/install_portaudio.tmpl.rst", + "setup.cfg", + "testing/.gitignore", + "tests/unit/gapic/logging_v2/__init__.py", + "tests/unit/gapic/logging_v2/test_config_service_v2.py", + "tests/unit/gapic/logging_v2/test_logging_service_v2.py", + "tests/unit/gapic/logging_v2/test_metrics_service_v2.py" ] } \ No newline at end of file From 7f75f599a39af1fe5de97694c690d628ae0f2d0c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 14:17:37 -0800 Subject: [PATCH 7/7] chore: release 2.0.1 (#101) --- CHANGELOG.md | 12 ++++++++++++ setup.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 811d691a0..a85cfb01e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://pypi.org/project/google-cloud-logging/#history +### [2.0.1](https://www.github.com/googleapis/python-logging/compare/v2.0.0...v2.0.1) (2020-12-02) + + +### Bug Fixes + +* remove duplicate stream handler ([#106](https://www.github.com/googleapis/python-logging/issues/106)) ([eb5cf40](https://www.github.com/googleapis/python-logging/commit/eb5cf407129fb76124d6a405c0805b70f2689cc4)) + + +### Documentation + +* fix logger documentation ([#100](https://www.github.com/googleapis/python-logging/issues/100)) ([6a46b46](https://www.github.com/googleapis/python-logging/commit/6a46b46a6bbc154c9b5b737859f108021ab5b201)) + ## [2.0.0](https://www.github.com/googleapis/python-logging/compare/v1.15.1...v2.0.0) (2020-11-19) diff --git a/setup.py b/setup.py index fff41ba80..635bd1a57 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-logging" description = "Stackdriver Logging API client library" -version = "2.0.0" +version = "2.0.1" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'