Skip to content
Permalink
Browse files

Make apiclient.sample_tools optional (#525)

It depends heavily on oauth2client, which has been dropped as a required dependency
  • Loading branch information...
epall authored and theacodes committed Jun 4, 2018
1 parent a1da982 commit 980c30846110b39710c062722772c35381d7eab5
Showing with 6 additions and 1 deletion.
  1. +6 −1 apiclient/__init__.py
@@ -10,7 +10,12 @@
from googleapiclient import http
from googleapiclient import mimeparse
from googleapiclient import model
from googleapiclient import sample_tools
try:
from googleapiclient import sample_tools
except ImportError:
# Silently ignore, because the vast majority of consumers won't use it and
# it has deep dependence on oauth2client, an optional dependency.
sample_tools = None
from googleapiclient import schema

__version__ = googleapiclient.__version__

0 comments on commit 980c308

Please sign in to comment.
You can’t perform that action at this time.