Skip to content

Commit

Permalink
fix(deps): drop pkg_resources (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Mar 30, 2022
1 parent ad39116 commit e963f33
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions google/cloud/storage/_http.py
Expand Up @@ -15,20 +15,11 @@
"""Create / interact with Google Cloud Storage connections."""

import functools
import os
import pkg_resources

from google.cloud import _http

from google.cloud.storage import __version__


if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE") == "true": # pragma: NO COVER
release = pkg_resources.get_distribution("google-cloud-core").parsed_version
if release < pkg_resources.parse_version("1.6.0"):
raise ImportError("google-cloud-core >= 1.6.0 is required to use mTLS feature")


class Connection(_http.JSONConnection):
"""A connection to Google Cloud Storage via the JSON REST API. Mutual TLS feature will be
enabled if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is set to "true".
Expand Down

0 comments on commit e963f33

Please sign in to comment.