| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ceacb14 commit 39c9882
310 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -83,7 +83,7 @@ | |||
| 83 | 83 | ||
| 84 | 84 | # General information about the project. | |
| 85 | 85 | project = "google-cloud-access-approval" | |
| 86 | - copyright = "2025, Google, LLC" | ||
| 86 | + copyright = "2026, Google, LLC" | ||
| 87 | 87 | author = "Google APIs" | |
| 88 | 88 | ||
| 89 | 89 | # The version info for the project you're documenting, acts as replacement for | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -21,13 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | __version__ = package_version.__version__ | |
| 23 | 23 | ||
| 24 | - if sys.version_info >= (3, 8): # pragma: NO COVER | ||
| 25 | - from importlib import metadata | ||
| 26 | - else: # pragma: NO COVER | ||
| 27 | - # TODO(https://github.com/googleapis/python-api-core/issues/835): Remove | ||
| 28 | - # this code path once we drop support for Python 3.7 | ||
| 29 | - import importlib_metadata as metadata | ||
| 30 | - | ||
| 24 | + from importlib import metadata | ||
| 31 | 25 | ||
| 32 | 26 | from .services.access_approval import AccessApprovalAsyncClient, AccessApprovalClient | |
| 33 | 27 | from .types.accessapproval import ( | |
@@ -63,28 +57,17 @@ | |||
| 63 | 57 | # An older version of api_core is installed which does not define the | |
| 64 | 58 | # functions above. We do equivalent checks manually. | |
| 65 | 59 | try: | |
| 66 | - import sys | ||
| 67 | 60 | import warnings | |
| 68 | 61 | ||
| 69 | 62 | _py_version_str = sys.version.split()[0] | |
| 70 | 63 | _package_label = "google.cloud.accessapproval_v1" | |
| 71 | - if sys.version_info < (3, 9): | ||
| 64 | + if sys.version_info < (3, 10): | ||
| 72 | 65 | warnings.warn( | |
| 73 | 66 | "You are using a non-supported Python version " | |
| 74 | 67 | + f"({_py_version_str}). Google will not post any further " | |
| 75 | 68 | + f"updates to {_package_label} supporting this Python version. " | |
| 76 | 69 | + "Please upgrade to the latest Python version, or at " | |
| 77 | - + f"least to Python 3.9, and then update {_package_label}.", | ||
| 78 | - FutureWarning, | ||
| 79 | - ) | ||
| 80 | - if sys.version_info[:2] == (3, 9): | ||
| 81 | - warnings.warn( | ||
| 82 | - f"You are using a Python version ({_py_version_str}) " | ||
| 83 | - + f"which Google will stop supporting in {_package_label} in " | ||
| 84 | - + "January 2026. Please " | ||
| 85 | - + "upgrade to the latest Python version, or at " | ||
| 86 | - + "least to Python 3.10, before then, and " | ||
| 87 | - + f"then update {_package_label}.", | ||
| 70 | + + f"least to Python 3.10, and then update {_package_label}.", | ||
| 88 | 71 | FutureWarning, | |
| 89 | 72 | ) | |
| 90 | 73 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -31,7 +31,6 @@ | |||
| 31 | 31 | LINT_PATHS.append("samples") | |
| 32 | 32 | ||
| 33 | 33 | ALL_PYTHON = [ | |
| 34 | - "3.9", | ||
| 35 | 34 | "3.10", | |
| 36 | 35 | "3.11", | |
| 37 | 36 | "3.12", | |
@@ -390,7 +389,6 @@ def docs(session): | |||
| 390 | 389 | shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) | |
| 391 | 390 | session.run( | |
| 392 | 391 | "sphinx-build", | |
| 393 | - "-W", # warnings as errors | ||
| 394 | 392 | "-T", # show full traceback on exception | |
| 395 | 393 | "-N", # no colors | |
| 396 | 394 | "-b", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -41,11 +41,11 @@ | |||
| 41 | 41 | release_status = "Development Status :: 5 - Production/Stable" | |
| 42 | 42 | ||
| 43 | 43 | dependencies = [ | |
| 44 | - "google-api-core[grpc] >= 2.11.0, <3.0.0", | ||
| 44 | + "google-api-core[grpc] >= 2.17.1, <3.0.0", | ||
| 45 | 45 | # Exclude incompatible versions of `google-auth` | |
| 46 | 46 | # See https://github.com/googleapis/google-cloud-python/issues/12364 | |
| 47 | 47 | "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", | |
| 48 | - "grpcio >= 1.33.2, < 2.0.0", | ||
| 48 | + "grpcio >= 1.44.0, < 2.0.0", | ||
| 49 | 49 | "grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'", | |
| 50 | 50 | "proto-plus >= 1.22.3, <2.0.0", | |
| 51 | 51 | "proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'", | |
@@ -73,15 +73,14 @@ | |||
| 73 | 73 | long_description=readme, | |
| 74 | 74 | author="Google LLC", | |
| 75 | 75 | author_email="googleapis-packages@google.com", | |
| 76 | - license="Apache 2.0", | ||
| 76 | + license="Apache-2.0", | ||
| 77 | 77 | url=url, | |
| 78 | 78 | classifiers=[ | |
| 79 | 79 | release_status, | |
| 80 | 80 | "Intended Audience :: Developers", | |
| 81 | 81 | "License :: OSI Approved :: Apache Software License", | |
| 82 | 82 | "Programming Language :: Python", | |
| 83 | 83 | "Programming Language :: Python :: 3", | |
| 84 | - "Programming Language :: Python :: 3.9", | ||
| 85 | 84 | "Programming Language :: Python :: 3.10", | |
| 86 | 85 | "Programming Language :: Python :: 3.11", | |
| 87 | 86 | "Programming Language :: Python :: 3.12", | |
@@ -92,7 +91,7 @@ | |||
| 92 | 91 | ], | |
| 93 | 92 | platforms="Posix; MacOS X; Windows", | |
| 94 | 93 | packages=packages, | |
| 95 | - python_requires=">=3.9", | ||
| 94 | + python_requires=">=3.10", | ||
| 96 | 95 | install_requires=dependencies, | |
| 97 | 96 | extras_require=extras, | |
| 98 | 97 | include_package_data=True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,11 @@ | |||
| 1 | - # -*- coding: utf-8 -*- | ||
| 2 | - # This constraints file is required for unit tests. | ||
| 3 | - # List all library dependencies and extras in this file. | ||
| 4 | - google-api-core | ||
| 5 | - google-auth | ||
| 6 | - grpcio | ||
| 7 | - proto-plus | ||
| 8 | - protobuf | ||
| 9 | - # cryptography is a direct dependency of google-auth | ||
| 10 | - cryptography | ||
| 1 | + # This constraints file is used to check that lower bounds | ||
| 2 | + # are correct in setup.py | ||
| 3 | + # List all library dependencies and extras in this file, | ||
| 4 | + # pinning their versions to their lower bounds. | ||
| 5 | + # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| 6 | + # then this file should have google-cloud-foo==1.14.0 | ||
| 7 | + google-api-core==2.17.1 | ||
| 8 | + google-auth==2.14.1 | ||
| 9 | + grpcio==1.44.0 | ||
| 10 | + proto-plus==1.22.3 | ||
| 11 | + protobuf==4.25.8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -13,18 +13,12 @@ | |||
| 13 | 13 | # See the License for the specific language governing permissions and | |
| 14 | 14 | # limitations under the License. | |
| 15 | 15 | # | |
| 16 | - import os | ||
| 17 | - | ||
| 18 | - # try/except added for compatibility with python < 3.8 | ||
| 19 | - try: | ||
| 20 | - from unittest import mock | ||
| 21 | - from unittest.mock import AsyncMock # pragma: NO COVER | ||
| 22 | - except ImportError: # pragma: NO COVER | ||
| 23 | - import mock | ||
| 24 | - | ||
| 25 | 16 | import json | |
| 26 | 17 | import math | |
| 18 | + import os | ||
| 27 | 19 | from collections.abc import AsyncIterable, Iterable, Mapping, Sequence | |
| 20 | + from unittest import mock | ||
| 21 | + from unittest.mock import AsyncMock | ||
| 28 | 22 | ||
| 29 | 23 | import grpc | |
| 30 | 24 | import pytest | |
@@ -1854,11 +1848,7 @@ async def test_list_approval_requests_async_pages(): | |||
| 1854 | 1848 | RuntimeError, | |
| 1855 | 1849 | ) | |
| 1856 | 1850 | pages = [] | |
| 1857 | - # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` | ||
| 1858 | - # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 | ||
| 1859 | - async for page_ in ( # pragma: no branch | ||
| 1860 | - await client.list_approval_requests(request={}) | ||
| 1861 | - ).pages: | ||
| 1851 | + async for page_ in (await client.list_approval_requests(request={})).pages: | ||
| 1862 | 1852 | pages.append(page_) | |
| 1863 | 1853 | for page_, token in zip(pages, ["abc", "def", "ghi", ""]): | |
| 1864 | 1854 | assert page_.raw_page.next_page_token == token | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -83,7 +83,7 @@ | |||
| 83 | 83 | ||
| 84 | 84 | # General information about the project. | |
| 85 | 85 | project = "google-cloud-advisorynotifications" | |
| 86 | - copyright = "2025, Google, LLC" | ||
| 86 | + copyright = "2026, Google, LLC" | ||
| 87 | 87 | author = "Google APIs" | |
| 88 | 88 | ||
| 89 | 89 | # The version info for the project you're documenting, acts as replacement for | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -21,13 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | __version__ = package_version.__version__ | |
| 23 | 23 | ||
| 24 | - if sys.version_info >= (3, 8): # pragma: NO COVER | ||
| 25 | - from importlib import metadata | ||
| 26 | - else: # pragma: NO COVER | ||
| 27 | - # TODO(https://github.com/googleapis/python-api-core/issues/835): Remove | ||
| 28 | - # this code path once we drop support for Python 3.7 | ||
| 29 | - import importlib_metadata as metadata | ||
| 30 | - | ||
| 24 | + from importlib import metadata | ||
| 31 | 25 | ||
| 32 | 26 | from .services.advisory_notifications_service import ( | |
| 33 | 27 | AdvisoryNotificationsServiceAsyncClient, | |
@@ -61,28 +55,17 @@ | |||
| 61 | 55 | # An older version of api_core is installed which does not define the | |
| 62 | 56 | # functions above. We do equivalent checks manually. | |
| 63 | 57 | try: | |
| 64 | - import sys | ||
| 65 | 58 | import warnings | |
| 66 | 59 | ||
| 67 | 60 | _py_version_str = sys.version.split()[0] | |
| 68 | 61 | _package_label = "google.cloud.advisorynotifications_v1" | |
| 69 | - if sys.version_info < (3, 9): | ||
| 62 | + if sys.version_info < (3, 10): | ||
| 70 | 63 | warnings.warn( | |
| 71 | 64 | "You are using a non-supported Python version " | |
| 72 | 65 | + f"({_py_version_str}). Google will not post any further " | |
| 73 | 66 | + f"updates to {_package_label} supporting this Python version. " | |
| 74 | 67 | + "Please upgrade to the latest Python version, or at " | |
| 75 | - + f"least to Python 3.9, and then update {_package_label}.", | ||
| 76 | - FutureWarning, | ||
| 77 | - ) | ||
| 78 | - if sys.version_info[:2] == (3, 9): | ||
| 79 | - warnings.warn( | ||
| 80 | - f"You are using a Python version ({_py_version_str}) " | ||
| 81 | - + f"which Google will stop supporting in {_package_label} in " | ||
| 82 | - + "January 2026. Please " | ||
| 83 | - + "upgrade to the latest Python version, or at " | ||
| 84 | - + "least to Python 3.10, before then, and " | ||
| 85 | - + f"then update {_package_label}.", | ||
| 68 | + + f"least to Python 3.10, and then update {_package_label}.", | ||
| 86 | 69 | FutureWarning, | |
| 87 | 70 | ) | |
| 88 | 71 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -31,7 +31,6 @@ | |||
| 31 | 31 | LINT_PATHS.append("samples") | |
| 32 | 32 | ||
| 33 | 33 | ALL_PYTHON = [ | |
| 34 | - "3.9", | ||
| 35 | 34 | "3.10", | |
| 36 | 35 | "3.11", | |
| 37 | 36 | "3.12", | |
@@ -390,7 +389,6 @@ def docs(session): | |||
| 390 | 389 | shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) | |
| 391 | 390 | session.run( | |
| 392 | 391 | "sphinx-build", | |
| 393 | - "-W", # warnings as errors | ||
| 394 | 392 | "-T", # show full traceback on exception | |
| 395 | 393 | "-N", # no colors | |
| 396 | 394 | "-b", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments