Skip to content

Commit

Permalink
Auto-update dependencies. (#735)
Browse files Browse the repository at this point in the history
* Auto-update dependencies.
* Fix language OCR sample
* Remove unused import
  • Loading branch information
dpebot authored and Jon Wayne Parrott committed Jan 12, 2017
1 parent 9ff75ea commit f39d09b
Show file tree
Hide file tree
Showing 61 changed files with 69 additions and 79 deletions.
2 changes: 1 addition & 1 deletion appengine/flexible/analytics/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests[security]==2.12.4
2 changes: 1 addition & 1 deletion appengine/flexible/cloudsql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
Flask-SQLAlchemy==2.1
gunicorn==19.6.0
PyMySQL==0.7.9
4 changes: 2 additions & 2 deletions appengine/flexible/datastore/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
google-cloud-datastore==0.22.0
Flask==0.12
google-cloud-datastore==0.22.1
gunicorn==19.6.0
oauth2client==4.0.0
2 changes: 1 addition & 1 deletion appengine/flexible/disk/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/django_cloudsql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==1.10.4
Django==1.10.5
mysqlclient==1.3.9
wheel==0.30.0a0
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/endpoints/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
flask-cors==3.0.2
gunicorn==19.6.0
six==1.10.0
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/extending_runtime/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/hello_world/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/hello_world_django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django==1.10.4
Django==1.10.5
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/kinto/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gunicorn==19.6.0
oauth2client==4.0.0
kinto==4.3.4
kinto==5.2.0
2 changes: 1 addition & 1 deletion appengine/flexible/mailgun/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests[security]==2.12.4
2 changes: 1 addition & 1 deletion appengine/flexible/mailjet/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests[security]==2.12.4
mailjet-rest==v1.2.2
2 changes: 1 addition & 1 deletion appengine/flexible/memcache/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
pylibmc==1.5.1
2 changes: 1 addition & 1 deletion appengine/flexible/metadata/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests[security]==2.12.4
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests==2.12.4
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
requests==2.12.4
4 changes: 2 additions & 2 deletions appengine/flexible/numpy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
numpy==1.12.0rc1
numpy==1.12.0rc2
2 changes: 1 addition & 1 deletion appengine/flexible/pubsub/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
google-cloud-pubsub==0.22.0
gunicorn==19.6.0
oauth2client==4.0.0
2 changes: 1 addition & 1 deletion appengine/flexible/redis/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
redis==2.10.5
6 changes: 3 additions & 3 deletions appengine/flexible/scipy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
numpy==1.12.0rc1
numpy==1.12.0rc2
scipy==0.18.1
Pillow==3.4.2
Pillow==4.0.0
2 changes: 1 addition & 1 deletion appengine/flexible/sendgrid/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
sendgrid==3.6.3
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/static_files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/storage/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
google-cloud-storage==0.22.0
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion appengine/flexible/twilio/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
gunicorn==19.6.0
twilio==6.3.dev0
2 changes: 1 addition & 1 deletion appengine/standard/analytics/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
requests==2.12.4
requests-toolbelt==0.7.0
2 changes: 1 addition & 1 deletion appengine/standard/bigquery/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion appengine/standard/django/requirements-vendor.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Django==1.10.4
Django==1.10.5
2 changes: 1 addition & 1 deletion appengine/standard/django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MySQL-python==1.2.5
Django==1.10.4
Django==1.10.5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
pyjwt==1.4.2
flask-cors==3.0.2
google-auth==0.5.0
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard/firebase/firetactoe/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flask==0.11.1
flask==0.12
requests==2.12.4
requests_toolbelt==0.7.0
oauth2client==4.0.0
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard/flask/hello_world/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Flask==0.11.1
Flask==0.12
2 changes: 1 addition & 1 deletion appengine/standard/flask/tutorial/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Flask==0.11.1
Flask==0.12
2 changes: 1 addition & 1 deletion appengine/standard/mailjet/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
requests==2.12.4
requests-toolbelt==0.7.0
mailjet-rest==v1.2.2
2 changes: 1 addition & 1 deletion appengine/standard/ndb/transactions/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Flask==0.11.1
Flask==0.12
2 changes: 1 addition & 1 deletion appengine/standard/storage/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion appengine/standard/urlfetch/requests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==0.11.1
Flask==0.12
requests==2.12.4
requests-toolbelt==0.7.0
2 changes: 1 addition & 1 deletion bigquery/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-datastore==0.22.0
google-cloud-datastore==0.22.1
2 changes: 1 addition & 1 deletion compute/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion compute/auth/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests==2.12.4
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion compute/xmpp_wikibot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
requests==2.12.4
sleekxmpp==1.3.1
six==1.10.0
2 changes: 1 addition & 1 deletion container_engine/django_tutorial/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==1.10.4
Django==1.10.5
mysqlclient==1.3.9
wheel==0.30.0a0
gunicorn==19.6.0
2 changes: 1 addition & 1 deletion dataproc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
google-cloud==0.22.0
2 changes: 1 addition & 1 deletion datastore/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-datastore==0.22.0
google-cloud-datastore==0.22.1
2 changes: 1 addition & 1 deletion endpoints/getting-started/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==0.11.1
Flask==0.12
flask-cors==3.0.2
gunicorn==19.6.0
six==1.10.0
Expand Down
2 changes: 1 addition & 1 deletion kms/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.6.0
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion language/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion language/movie_nl/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
requests==2.12.4
14 changes: 2 additions & 12 deletions language/ocr_nl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

from googleapiclient import discovery
from googleapiclient import errors
import httplib2
from oauth2client.client import GoogleCredentials

BATCH_SIZE = 10

Expand All @@ -54,8 +52,7 @@ class VisionApi(object):
"""Construct and use the Cloud Vision API service."""

def __init__(self):
credentials = GoogleCredentials.get_application_default()
self.service = discovery.build('vision', 'v1', credentials=credentials)
self.service = discovery.build('vision', 'v1')

def detect_text(self, input_filenames, num_retries=3, max_results=6):
"""Uses the Vision API to detect text in the given file."""
Expand Down Expand Up @@ -113,14 +110,7 @@ class TextAnalyzer(object):
"""Construct and use the Google Natural Language API service."""

def __init__(self, db_filename=None):
credentials = GoogleCredentials.get_application_default()
scoped_credentials = credentials.create_scoped(
['https://www.googleapis.com/auth/cloud-platform'])
http = httplib2.Http()
scoped_credentials.authorize(http)
self.service = discovery.build('language', 'v1',
http=http,
credentials=credentials)
self.service = discovery.build('language', 'v1')

# This list will store the entity information gleaned from the
# image files.
Expand Down
2 changes: 1 addition & 1 deletion language/ocr_nl/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion language/syntax_triples/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion language/tutorial/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion logging/api-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion monitoring/api/v2/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion monitoring/api/v3/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
httplib2==0.9.2
oauth2client==4.0.0
pyasn1==0.1.9
Expand Down
2 changes: 1 addition & 1 deletion speech/api-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion storage/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
2 changes: 1 addition & 1 deletion storage/transfer_service/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1
6 changes: 3 additions & 3 deletions testing/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
beautifulsoup4==4.5.1
coverage==4.2
beautifulsoup4==4.5.3
coverage==4.3.1
flaky==3.3.0
funcsigs==1.0.2
mock==2.0.0
Expand All @@ -11,5 +11,5 @@ pyyaml==3.12
responses==0.5.1
WebTest==2.0.24
webapp2==3.0.0b1
google-api-python-client==1.5.5
google-api-python-client==1.6.1
google-cloud-core==0.22.1
4 changes: 2 additions & 2 deletions vision/api/face_detection/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-api-python-client==1.5.5
Pillow==3.4.2
google-api-python-client==1.6.1
Pillow==4.0.0
2 changes: 1 addition & 1 deletion vision/api/label/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-api-python-client==1.5.5
google-api-python-client==1.6.1

0 comments on commit f39d09b

Please sign in to comment.