11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+
14
15
workspace (name = "io_bazel_rules_python" )
15
16
16
- # Skydoc stuff
17
+ load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "git_repository" )
18
+ load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_file" )
19
+
20
+ ################################
21
+ # Skydoc and its dependencies. #
22
+ ################################
23
+
24
+ # Skydoc's sass dependency is not covered by skydoc_repositories(), so we have
25
+ # to redeclare it here. Watch that the version matches when updating Skydoc's
26
+ # version.
27
+
17
28
git_repository (
18
29
name = "io_bazel_rules_sass" ,
30
+ # Same commit as Skydoc uses in its own WORKSPACE.
31
+ commit = "8b61ad6953fde55031658e1731c335220f881369" , # 2018-10-26
19
32
remote = "https://github.com/bazelbuild/rules_sass.git" ,
20
- tag = "0.0.3" ,
21
33
)
22
34
23
- load ("@io_bazel_rules_sass//sass:sass.bzl" , "sass_repositories" )
35
+ load ("@io_bazel_rules_sass//:package.bzl" , "rules_sass_dependencies" )
36
+
37
+ rules_sass_dependencies ()
38
+
39
+ # Node is used by sass. This weird (anti-?)pattern of initializing a repo we
40
+ # didn't directly import is taken from Skydoc's WORKSPACE.
41
+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "node_repositories" )
42
+
43
+ node_repositories ()
44
+
45
+ load ("@io_bazel_rules_sass//:defs.bzl" , "sass_repositories" )
24
46
25
47
sass_repositories ()
26
48
49
+ # We implicitly depend on Skydoc importing Skylib under `@bazel_skylib`.
50
+ # We don't redeclare it here in order to avoid repeating a definition that
51
+ # could get out of sync with Skydoc.
52
+
27
53
git_repository (
28
54
name = "io_bazel_skydoc" ,
29
- commit = "e9be81cf5be41e4200749f5d8aa2db7955f8aacc" ,
55
+ commit = "77e5399258f6d91417d23634fce97d73b40cf337" , # 2018-10-29
30
56
remote = "https://github.com/bazelbuild/skydoc.git" ,
31
57
)
32
58
33
59
load ("@io_bazel_skydoc//skylark:skylark.bzl" , "skydoc_repositories" )
34
60
35
61
skydoc_repositories ()
36
62
37
- # Requirements for building our piptool.
63
+ ##########################################
64
+ # Requirements for building our piptool. #
65
+ ##########################################
66
+
38
67
load ("//python:pip.bzl" , "pip_import" )
39
68
40
69
pip_import (
@@ -51,58 +80,69 @@ _piptool_install()
51
80
52
81
git_repository (
53
82
name = "subpar" ,
54
- remote = "https://github.com/google/subpar" ,
55
83
# HEAD as of 2018/02/15
56
84
commit = "1f695ee5d42585a66d9dd9b71219eb8551e59c89" ,
85
+ remote = "https://github.com/google/subpar" ,
57
86
)
58
87
59
- # Test data for WHL tool testing.
88
+ ###################################
89
+ # Test data for WHL tool testing. #
90
+ ###################################
91
+
60
92
http_file (
61
93
name = "grpc_whl" ,
94
+ downloaded_file_path = "grpcio-1.6.0-cp27-cp27m-manylinux1_i686.whl" ,
62
95
sha256 = "c232d6d168cb582e5eba8e1c0da8d64b54b041dd5ea194895a2fe76050916561" ,
63
96
# From https://pypi.python.org/pypi/grpcio/1.6.0
64
- url = ("https://pypi.python.org/packages/c6/28/" +
65
- "67651b4eabe616b27472c5518f9b2aa3f63beab8f62100b26f05ac428639/" +
66
- "grpcio-1.6.0-cp27-cp27m-manylinux1_i686.whl" ),
97
+ urls = [ ("https://pypi.python.org/packages/c6/28/" +
98
+ "67651b4eabe616b27472c5518f9b2aa3f63beab8f62100b26f05ac428639/" +
99
+ "grpcio-1.6.0-cp27-cp27m-manylinux1_i686.whl" )] ,
67
100
)
68
101
69
102
http_file (
70
103
name = "futures_3_1_1_whl" ,
104
+ downloaded_file_path = "futures-3.1.1-py2-none-any.whl" ,
71
105
sha256 = "c4884a65654a7c45435063e14ae85280eb1f111d94e542396717ba9828c4337f" ,
72
106
# From https://pypi.python.org/pypi/futures
73
- url = ("https://pypi.python.org/packages/a6/1c/" +
74
- "72a18c8c7502ee1b38a604a5c5243aa8c2a64f4bba4e6631b1b8972235dd/" +
75
- "futures-3.1.1-py2-none-any.whl" ),
107
+ urls = [ ("https://pypi.python.org/packages/a6/1c/" +
108
+ "72a18c8c7502ee1b38a604a5c5243aa8c2a64f4bba4e6631b1b8972235dd/" +
109
+ "futures-3.1.1-py2-none-any.whl" )] ,
76
110
)
77
111
78
112
http_file (
79
113
name = "futures_2_2_0_whl" ,
114
+ downloaded_file_path = "futures-2.2.0-py2.py3-none-any.whl" ,
80
115
sha256 = "9fd22b354a4c4755ad8c7d161d93f5026aca4cfe999bd2e53168f14765c02cd6" ,
81
116
# From https://pypi.python.org/pypi/futures/2.2.0
82
- url = ("https://pypi.python.org/packages/d7/1d/" +
83
- "68874943aa37cf1c483fc61def813188473596043158faa6511c04a038b4/" +
84
- "futures-2.2.0-py2.py3-none-any.whl" ),
117
+ urls = [ ("https://pypi.python.org/packages/d7/1d/" +
118
+ "68874943aa37cf1c483fc61def813188473596043158faa6511c04a038b4/" +
119
+ "futures-2.2.0-py2.py3-none-any.whl" )] ,
85
120
)
86
121
87
122
http_file (
88
123
name = "mock_whl" ,
124
+ downloaded_file_path = "mock-2.0.0-py2.py3-none-any.whl" ,
89
125
sha256 = "5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1" ,
90
126
# From https://pypi.python.org/pypi/mock
91
- url = ("https://pypi.python.org/packages/e6/35/" +
92
- "f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/" +
93
- "mock-2.0.0-py2.py3-none-any.whl" ),
127
+ urls = [ ("https://pypi.python.org/packages/e6/35/" +
128
+ "f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/" +
129
+ "mock-2.0.0-py2.py3-none-any.whl" )] ,
94
130
)
95
131
96
132
http_file (
97
133
name = "google_cloud_language_whl" ,
134
+ downloaded_file_path = "google_cloud_language-0.29.0-py2.py3-none-any.whl" ,
98
135
sha256 = "a2dd34f0a0ebf5705dcbe34bd41199b1d0a55c4597d38ed045bd183361a561e9" ,
99
136
# From https://pypi.python.org/pypi/google-cloud-language
100
- url = ("https://pypi.python.org/packages/6e/86/" +
101
- "cae57e4802e72d9e626ee5828ed5a646cf4016b473a4a022f1038dba3460/" +
102
- "google_cloud_language-0.29.0-py2.py3-none-any.whl" ),
137
+ urls = [ ("https://pypi.python.org/packages/6e/86/" +
138
+ "cae57e4802e72d9e626ee5828ed5a646cf4016b473a4a022f1038dba3460/" +
139
+ "google_cloud_language-0.29.0-py2.py3-none-any.whl" )] ,
103
140
)
104
141
105
- # Imports for examples
142
+ #########################
143
+ # Imports for examples. #
144
+ #########################
145
+
106
146
pip_import (
107
147
name = "examples_helloworld" ,
108
148
requirements = "//examples/helloworld:requirements.txt" ,
0 commit comments