Skip to content

Commit

Permalink
Stopped depending on the google-api-python-client package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Feb 3, 2022
1 parent 1e1cbfe commit 4ecef80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google/cloud/aiplatform/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def project(self) -> str:
.execute()["projectId"]
)
self._project = project_id
except ImportError:
logging.debug(f"Need google-api-python-client to convert project number to project ID.")
except Exception as e:
logging.warning(f"Error converting project number to project ID: {e}")
return self._project
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"packaging >= 14.3",
"google-cloud-storage >= 1.32.0, < 2.0.0dev",
"google-cloud-bigquery >= 1.15.0, < 3.0.0dev",
"google-api-python-client >= 2.29", # for API discovery
),
extras_require={
"full": full_extra_require,
Expand Down

0 comments on commit 4ecef80

Please sign in to comment.