| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cc4f36f commit bd31a8c
92 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-maps-addressvalidation" | |
| 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.address_validation import ( | |
| 33 | 27 | AddressValidationAsyncClient, | |
@@ -55,28 +49,17 @@ | |||
| 55 | 49 | # An older version of api_core is installed which does not define the | |
| 56 | 50 | # functions above. We do equivalent checks manually. | |
| 57 | 51 | try: | |
| 58 | - import sys | ||
| 59 | 52 | import warnings | |
| 60 | 53 | ||
| 61 | 54 | _py_version_str = sys.version.split()[0] | |
| 62 | 55 | _package_label = "google.maps.addressvalidation_v1" | |
| 63 | - if sys.version_info < (3, 9): | ||
| 56 | + if sys.version_info < (3, 10): | ||
| 64 | 57 | warnings.warn( | |
| 65 | 58 | "You are using a non-supported Python version " | |
| 66 | 59 | + f"({_py_version_str}). Google will not post any further " | |
| 67 | 60 | + f"updates to {_package_label} supporting this Python version. " | |
| 68 | 61 | + "Please upgrade to the latest Python version, or at " | |
| 69 | - + f"least to Python 3.9, and then update {_package_label}.", | ||
| 70 | - FutureWarning, | ||
| 71 | - ) | ||
| 72 | - if sys.version_info[:2] == (3, 9): | ||
| 73 | - warnings.warn( | ||
| 74 | - f"You are using a Python version ({_py_version_str}) " | ||
| 75 | - + f"which Google will stop supporting in {_package_label} in " | ||
| 76 | - + "January 2026. Please " | ||
| 77 | - + "upgrade to the latest Python version, or at " | ||
| 78 | - + "least to Python 3.10, before then, and " | ||
| 79 | - + f"then update {_package_label}.", | ||
| 62 | + + f"least to Python 3.10, and then update {_package_label}.", | ||
| 80 | 63 | FutureWarning, | |
| 81 | 64 | ) | |
| 82 | 65 | ||
| 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'", | |
@@ -74,15 +74,14 @@ | |||
| 74 | 74 | long_description=readme, | |
| 75 | 75 | author="Google LLC", | |
| 76 | 76 | author_email="googleapis-packages@google.com", | |
| 77 | - license="Apache 2.0", | ||
| 77 | + license="Apache-2.0", | ||
| 78 | 78 | url=url, | |
| 79 | 79 | classifiers=[ | |
| 80 | 80 | release_status, | |
| 81 | 81 | "Intended Audience :: Developers", | |
| 82 | 82 | "License :: OSI Approved :: Apache Software License", | |
| 83 | 83 | "Programming Language :: Python", | |
| 84 | 84 | "Programming Language :: Python :: 3", | |
| 85 | - "Programming Language :: Python :: 3.9", | ||
| 86 | 85 | "Programming Language :: Python :: 3.10", | |
| 87 | 86 | "Programming Language :: Python :: 3.11", | |
| 88 | 87 | "Programming Language :: Python :: 3.12", | |
@@ -93,7 +92,7 @@ | |||
| 93 | 92 | ], | |
| 94 | 93 | platforms="Posix; MacOS X; Windows", | |
| 95 | 94 | packages=packages, | |
| 96 | - python_requires=">=3.9", | ||
| 95 | + python_requires=">=3.10", | ||
| 97 | 96 | install_requires=dependencies, | |
| 98 | 97 | extras_require=extras, | |
| 99 | 98 | include_package_data=True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,12 @@ | |||
| 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 | ||
| 11 | - google-geo-type | ||
| 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 | ||
| 12 | + google-geo-type==0.1.0 | ||
| 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 | |
@@ -1836,7 +1830,7 @@ def test_validate_address_rest_required_fields( | |||
| 1836 | 1830 | ||
| 1837 | 1831 | expected_params = [("$alt", "json;enum-encoding=int")] | |
| 1838 | 1832 | actual_params = req.call_args.kwargs["params"] | |
| 1839 | - assert expected_params == actual_params | ||
| 1833 | + assert sorted(expected_params) == sorted(actual_params) | ||
| 1840 | 1834 | ||
| 1841 | 1835 | ||
| 1842 | 1836 | def test_validate_address_rest_unset_required_fields(): | |
@@ -1966,7 +1960,7 @@ def test_provide_validation_feedback_rest_required_fields( | |||
| 1966 | 1960 | ||
| 1967 | 1961 | expected_params = [("$alt", "json;enum-encoding=int")] | |
| 1968 | 1962 | actual_params = req.call_args.kwargs["params"] | |
| 1969 | - assert expected_params == actual_params | ||
| 1963 | + assert sorted(expected_params) == sorted(actual_params) | ||
| 1970 | 1964 | ||
| 1971 | 1965 | ||
| 1972 | 1966 | def test_provide_validation_feedback_rest_unset_required_fields(): | |
| 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-maps-areainsights" | |
| 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.area_insights import AreaInsightsAsyncClient, AreaInsightsClient | |
| 33 | 27 | from .types.area_insights_service import ( | |
@@ -52,28 +46,17 @@ | |||
| 52 | 46 | # An older version of api_core is installed which does not define the | |
| 53 | 47 | # functions above. We do equivalent checks manually. | |
| 54 | 48 | try: | |
| 55 | - import sys | ||
| 56 | 49 | import warnings | |
| 57 | 50 | ||
| 58 | 51 | _py_version_str = sys.version.split()[0] | |
| 59 | 52 | _package_label = "google.maps.areainsights_v1" | |
| 60 | - if sys.version_info < (3, 9): | ||
| 53 | + if sys.version_info < (3, 10): | ||
| 61 | 54 | warnings.warn( | |
| 62 | 55 | "You are using a non-supported Python version " | |
| 63 | 56 | + f"({_py_version_str}). Google will not post any further " | |
| 64 | 57 | + f"updates to {_package_label} supporting this Python version. " | |
| 65 | 58 | + "Please upgrade to the latest Python version, or at " | |
| 66 | - + f"least to Python 3.9, and then update {_package_label}.", | ||
| 67 | - FutureWarning, | ||
| 68 | - ) | ||
| 69 | - if sys.version_info[:2] == (3, 9): | ||
| 70 | - warnings.warn( | ||
| 71 | - f"You are using a Python version ({_py_version_str}) " | ||
| 72 | - + f"which Google will stop supporting in {_package_label} in " | ||
| 73 | - + "January 2026. Please " | ||
| 74 | - + "upgrade to the latest Python version, or at " | ||
| 75 | - + "least to Python 3.10, before then, and " | ||
| 76 | - + f"then update {_package_label}.", | ||
| 59 | + + f"least to Python 3.10, and then update {_package_label}.", | ||
| 77 | 60 | FutureWarning, | |
| 78 | 61 | ) | |
| 79 | 62 | ||
| 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