From ca75b8f43d5300e4b7ec73623b63fb570db9b49b Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Mon, 1 Jul 2019 09:39:08 -0700 Subject: [PATCH] Add protobuf dep and install instructions [(#2250)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2250) --- samples/snippets/README.md | 12 ++++++++++++ samples/snippets/requirements.txt | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/samples/snippets/README.md b/samples/snippets/README.md index 2af8ecee..b83eae65 100644 --- a/samples/snippets/README.md +++ b/samples/snippets/README.md @@ -23,6 +23,18 @@ Please refer to [Setting Up a Python Development Environment](https://cloud.goog To set up authentication, please refer to our [authentication getting started guide](https://cloud.google.com/docs/authentication/getting-started). +## Install Dependencies + +To install the dependencies for this sample, use the following command: + +``` +pip install -r requirements.txt +``` + +This sample uses the common protos in the [googleapis](https://github.com/googleapis/googleapis) +repository. For more info, see +[Protocol Buffer Basics](https://developers.google.com/protocol-buffers/docs/pythontutorial). + ## Creating a queue To create a queue (named `my-queue`) using the Cloud SDK, use the following diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index fe50a5aa..29d55c81 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,3 +1,4 @@ Flask==1.0.2 gunicorn==19.9.0 -google-cloud-tasks==0.7.0 +google-cloud-tasks==1.1.0 +googleapis-common-protos==1.6.0