google-maps-routeoptimization 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {google-maps-routeoptimization-0.1.0/google_maps_routeoptimization.egg-info → google_maps_routeoptimization-0.1.2}/PKG-INFO +2 -2
  2. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization/gapic_version.py +1 -1
  3. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/gapic_version.py +1 -1
  4. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/transports/base.py +3 -1
  5. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/transports/grpc.py +2 -1
  6. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/transports/grpc_asyncio.py +2 -1
  7. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2/google_maps_routeoptimization.egg-info}/PKG-INFO +2 -2
  8. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google_maps_routeoptimization.egg-info/requires.txt +1 -1
  9. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/setup.py +1 -1
  10. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/tests/unit/gapic/routeoptimization_v1/test_route_optimization.py +3 -12
  11. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/LICENSE +0 -0
  12. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/MANIFEST.in +0 -0
  13. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/README.rst +0 -0
  14. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization/__init__.py +0 -0
  15. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization/py.typed +0 -0
  16. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/__init__.py +0 -0
  17. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/gapic_metadata.json +0 -0
  18. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/py.typed +0 -0
  19. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/__init__.py +0 -0
  20. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/__init__.py +0 -0
  21. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/async_client.py +0 -0
  22. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/client.py +0 -0
  23. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/transports/__init__.py +0 -0
  24. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/services/route_optimization/transports/rest.py +0 -0
  25. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/types/__init__.py +0 -0
  26. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google/maps/routeoptimization_v1/types/route_optimization_service.py +0 -0
  27. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google_maps_routeoptimization.egg-info/SOURCES.txt +0 -0
  28. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google_maps_routeoptimization.egg-info/dependency_links.txt +0 -0
  29. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google_maps_routeoptimization.egg-info/not-zip-safe +0 -0
  30. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/google_maps_routeoptimization.egg-info/top_level.txt +0 -0
  31. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/setup.cfg +0 -0
  32. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/tests/__init__.py +0 -0
  33. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/tests/unit/__init__.py +0 -0
  34. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/tests/unit/gapic/__init__.py +0 -0
  35. {google-maps-routeoptimization-0.1.0 → google_maps_routeoptimization-0.1.2}/tests/unit/gapic/routeoptimization_v1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-maps-routeoptimization
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Google Maps Routeoptimization API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-routeoptimization
6
6
  Author: Google LLC
@@ -25,7 +25,7 @@ License-File: LICENSE
25
25
  Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
26
26
  Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
27
27
  Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
28
- Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
28
+ Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
29
29
 
30
30
  Python Client for Route Optimization API
31
31
  ========================================
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.1.0" # {x-release-please-version}
16
+ __version__ = "0.1.2" # {x-release-please-version}
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.1.0" # {x-release-please-version}
16
+ __version__ = "0.1.2" # {x-release-please-version}
@@ -82,6 +82,8 @@ class RouteOptimizationTransport(abc.ABC):
82
82
 
83
83
  # Save the scopes.
84
84
  self._scopes = scopes
85
+ if not hasattr(self, "_ignore_credentials"):
86
+ self._ignore_credentials: bool = False
85
87
 
86
88
  # If no credentials are provided, then determine the appropriate
87
89
  # defaults.
@@ -94,7 +96,7 @@ class RouteOptimizationTransport(abc.ABC):
94
96
  credentials, _ = google.auth.load_credentials_from_file(
95
97
  credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
96
98
  )
97
- elif credentials is None:
99
+ elif credentials is None and not self._ignore_credentials:
98
100
  credentials, _ = google.auth.default(
99
101
  **scopes_kwargs, quota_project_id=quota_project_id
100
102
  )
@@ -145,7 +145,8 @@ class RouteOptimizationGrpcTransport(RouteOptimizationTransport):
145
145
 
146
146
  if isinstance(channel, grpc.Channel):
147
147
  # Ignore credentials if a channel was passed.
148
- credentials = False
148
+ credentials = None
149
+ self._ignore_credentials = True
149
150
  # If a channel was explicitly provided, set it.
150
151
  self._grpc_channel = channel
151
152
  self._ssl_channel_credentials = None
@@ -192,7 +192,8 @@ class RouteOptimizationGrpcAsyncIOTransport(RouteOptimizationTransport):
192
192
 
193
193
  if isinstance(channel, aio.Channel):
194
194
  # Ignore credentials if a channel was passed.
195
- credentials = False
195
+ credentials = None
196
+ self._ignore_credentials = True
196
197
  # If a channel was explicitly provided, set it.
197
198
  self._grpc_channel = channel
198
199
  self._ssl_channel_credentials = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-maps-routeoptimization
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Google Maps Routeoptimization API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-routeoptimization
6
6
  Author: Google LLC
@@ -25,7 +25,7 @@ License-File: LICENSE
25
25
  Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
26
26
  Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
27
27
  Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
28
- Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
28
+ Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
29
29
 
30
30
  Python Client for Route Optimization API
31
31
  ========================================
@@ -1,4 +1,4 @@
1
1
  google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
2
2
  google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
3
3
  proto-plus<2.0.0dev,>=1.22.3
4
- protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
4
+ protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
@@ -46,7 +46,7 @@ dependencies = [
46
46
  # See https://github.com/googleapis/google-cloud-python/issues/12364
47
47
  "google-auth >= 2.14.1, <3.0.0dev,!=2.24.0,!=2.25.0",
48
48
  "proto-plus >= 1.22.3, <2.0.0dev",
49
- "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
49
+ "protobuf>=3.20.2,<6.0.0dev,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
50
50
  ]
51
51
  url = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-routeoptimization"
52
52
 
@@ -38,6 +38,7 @@ from google.api_core import (
38
38
  from google.api_core import api_core_version, client_options
39
39
  from google.api_core import exceptions as core_exceptions
40
40
  from google.api_core import operation_async # type: ignore
41
+ from google.api_core import retry as retries
41
42
  import google.auth
42
43
  from google.auth import credentials as ga_credentials
43
44
  from google.auth.exceptions import MutualTLSChannelError
@@ -1332,12 +1333,7 @@ async def test_optimize_tours_async_use_cached_wrapped_rpc(
1332
1333
  )
1333
1334
 
1334
1335
  # Replace cached wrapped function with mock
1335
- class AwaitableMock(mock.AsyncMock):
1336
- def __await__(self):
1337
- self.await_count += 1
1338
- return iter([])
1339
-
1340
- mock_object = AwaitableMock()
1336
+ mock_object = mock.AsyncMock()
1341
1337
  client._client._transport._wrapped_methods[
1342
1338
  client._client._transport.optimize_tours
1343
1339
  ] = mock_object
@@ -1631,12 +1627,7 @@ async def test_batch_optimize_tours_async_use_cached_wrapped_rpc(
1631
1627
  )
1632
1628
 
1633
1629
  # Replace cached wrapped function with mock
1634
- class AwaitableMock(mock.AsyncMock):
1635
- def __await__(self):
1636
- self.await_count += 1
1637
- return iter([])
1638
-
1639
- mock_object = AwaitableMock()
1630
+ mock_object = mock.AsyncMock()
1640
1631
  client._client._transport._wrapped_methods[
1641
1632
  client._client._transport.batch_optimize_tours
1642
1633
  ] = mock_object