@@ -2,6 +2,24 @@ workspace(name = "gapic_generator_python")
22
33load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
44
5+
6+ _rules_python_version = "0.30.0"
7+
8+ _rules_python_sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c"
9+
10+ http_archive (
11+ name = "rules_python" ,
12+ sha256 = _rules_python_sha256 ,
13+ strip_prefix = "rules_python-{}" .format (_rules_python_version ),
14+ url = "https://github.com/bazelbuild/rules_python/archive/{}.tar.gz" .format (_rules_python_version ),
15+ )
16+
17+ load ("@rules_python//python:repositories.bzl" , "py_repositories" )
18+
19+ py_repositories ()
20+
21+ load ("@rules_python//python:pip.bzl" , "pip_parse" )
22+
523_bazel_skylib_version = "1.4.0"
624
725_bazel_skylib_sha256 = "f24ab666394232f834f74d19e2ff142b0af17466ea0c69a3f4c276ee75f6efce"
@@ -22,24 +40,6 @@ http_archive(
2240 ],
2341)
2442
25- _rules_python_version = "0.30.0"
26-
27- _rules_python_sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c"
28-
29- http_archive (
30- name = "rules_python" ,
31- sha256 = _rules_python_sha256 ,
32- strip_prefix = "rules_python-{}" .format (_rules_python_version ),
33- url = "https://github.com/bazelbuild/rules_python/archive/{}.tar.gz" .format (_rules_python_version ),
34- )
35-
36- load ("@rules_python//python:repositories.bzl" , "py_repositories" )
37-
38- py_repositories ()
39-
40- load ("@rules_python//python:pip.bzl" , "pip_parse" )
41-
42-
4343pip_parse (
4444 name = "gapic_generator_python_pip_deps" ,
4545 requirements_lock = "//:requirements.txt" ,
0 commit comments