8000 Restoring missing requirements.txt files · cmclean/python-docs-samples@fcc7a74 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcc7a74

Browse files
author
Jon Wayne Parrott
committed
Restoring missing requirements.txt files
Originally, I had consolidated to one top-level requirements.txt because it was difficult to keep them all updated. I've remedied this with two new scripts in our repositories: * check_requirements.py which will return non-zero if any requirements are out * update_requirements.py which will automatically update all requirements in requirements.txt to the latest available version. Tox now runs check_requirements.py over all requirements.txt files in the repository during testing. There's also an additional, manually-run eviroment that does the same with update_requirements. Additionally, I updated readmes to reflect the new requirements.txt and also updated gcloud auth login -> gcloud init. Phew.
1 parent 475b43f commit fcc7a74

File tree

25 files changed

+177
-46
lines changed

25 files changed

+177
-46
lines changed

appengine/bigquery/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-api-python-client
1+
google-api-python-client==1.4.2

appengine/mailgun/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
httplib2
1+
httplib2==0.9.2
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
# This requirements file lists all third-party dependencies for this project.
2-
#
3-
# Run 'pip install -r requirements.txt -t lib/' to install these dependencies
4-
# in `lib/` subdirectory.
5-
#
6-
# Note: The `lib` directory is added to `sys.path` by `appengine_config.py`.
7-
Flask==0.10
1+
Flask==0.10.1

appengine/storage/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-api-python-client
1+
google-api-python-client==1.4.2

bigquery/README.md

Lines changed: 2 additions & 2 deletions

bigquery/api/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This section contains samples for [Google BigQuery](https://cloud.google.com/big
77
1. Your environment must be setup with [authentication
88
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). If you're running in your local development environment and you have the [Google Cloud SDK](https://cloud.google.com/sdk/) installed, you can do this easily by running:
99

10-
$ gcloud auth login
10+
$ gcloud init
1111

12-
2. Install dependencies from the top-level [`requirements.txt`](../requirements.txt):
12+
2. Install dependencies in `requirements.txt`:
1313

1414
$ pip install -r requirements.txt
1515

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-api-python-client==1.4.2

blog/introduction_to_data_models_in_cloud_datastore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ using [Google Cloud Datastore](https://cloud.google.com/datastore).
99

1010
2. [Enable the Datastore API](https://console.developers.google.com/project/_/apiui/apiview/datastore/overview).
1111

12-
3. Install the [Google Cloud SDK](https://cloud.google.com/sdk) and be sure to run ``gcloud auth``.
12+
3. Install the [Google Cloud SDK](https://cloud.google.com/sdk) and be sure to run ``gcloud init``.
1313

1414

1515
## Running the samples
1616

17-
Install dependencies from the top-level [`requirements.txt`](../../requirements.txt):
17+
Install dependencies from `requirements.txt`:
1818

1919
pip install -r requirements.txt
2020

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gcloud==0.8.0

cloud_logging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This section contains samples for [Google Cloud Logging](https://cloud.google.co
77
1. Your environment must be setup with [authentication
88
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). If you're running in your local development environment and you have the [Google Cloud SDK](https://cloud.google.com/sdk/) installed, you can do this easily by running:
99

10-
$ gcloud auth login
10+
$ gcloud init
1111

12-
2. Install dependencies from the top-level [`requirements.txt`](../requirements.txt):
12+
2. Install dependencies from `requirements.txt`:
1313

1414
$ pip install -r requirements.txt
1515

cloud_logging/api/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-api-python-client==1.4.2

0 commit comments

Comments
 (0)
0