Skip to content

Commit

Permalink
Make the example work
Browse files Browse the repository at this point in the history
- workaround bazelbuild/rules_python#14 in rules_python
- workaround bazelbuild/rules_python#30 by installing `futures`
- update deps to fix an incompatibility in google.cloud.exceptions
  • Loading branch information
drigz committed Nov 3, 2017
1 parent 92e3e0e commit 9644328
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ py_binary(
deps = [
requirement("google-cloud-bigquery"),
requirement("google-cloud-storage"),

# Work around https://github.com/bazelbuild/rules_python/issues/30
requirement("futures"),
],
)
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Helpful macros to support requirements/pip integration.
git_repository(
name = "io_bazel_rules_python",
commit = "40d44a7258a9016925969e2ff41c93881ddd7155",
remote = "https://github.com/bazelbuild/rules_python.git",
commit = "5f78b4a04a50d660ec346df1a1ab76b02130c304",
remote = "https://github.com/drigz/rules_python.git",
)

load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
google-cloud-bigquery==0.27.0
google-cloud-storage==1.1.1
futures==3.1.1
google-cloud-bigquery==0.28.0
google-cloud-storage==1.6.0

0 comments on commit 9644328

Please sign in to comment.