Skip to content

Commit 40689b3

Browse files
[build] Upgrade rules_python to 0.1
1 parent fc5916a commit 40689b3

File tree

2 files changed

+127
-136
lines changed

2 files changed

+127
-136
lines changed

WORKSPACE

+17-23
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,9 @@ npm_install(
119119

120120
http_archive(
121121
name = "rules_python",
122-
patches = [
123-
"//py:rules_python_any_version_wheel.patch",
124-
"//py:rules_python_wheel_directory_check.patch",
125-
],
126-
sha256 = "ddb2e1298684defde2f5e466d96e572119f30f9e2a901a7a81474fd4fa9f6d52",
127-
strip_prefix = "rules_python-dd7f9c5f01bafbfea08c44092b6b0c8fc8fcb77f",
128-
urls = [
129-
"https://github.com/bazelbuild/rules_python/archive/dd7f9c5f01bafbfea08c44092b6b0c8fc8fcb77f.zip",
130-
],
122+
sha256 = "4d8ed66d5f57a0b6b90e495ca8e29e5c5fa353b93f093e7c31c595a4631ff293",
123+
strip_prefix = "rules_python-5c948dcfd4ca79c2ed3a87636c46abba9f5836e9",
124+
url = "https://github.com/bazelbuild/rules_python/archive/5c948dcfd4ca79c2ed3a87636c46abba9f5836e9.zip",
131125
)
132126

133127
# This call should always be present.
@@ -136,19 +130,13 @@ load("@rules_python//python:repositories.bzl", "py_repositories")
136130
py_repositories()
137131

138132
# This one is only needed if you're using the packaging rules.
139-
load("@rules_python//python:pip.bzl", "pip3_import", "pip_repositories")
133+
load("@rules_python//python:pip.bzl", "pip_install", "pip_repositories")
140134

141-
pip3_import(
135+
pip_install(
142136
name = "dev_requirements",
143137
requirements = "//py:requirements.txt",
144138
)
145139

146-
load("@dev_requirements//:requirements.bzl", "pip_install")
147-
148-
pip_repositories()
149-
150-
pip_install()
151-
152140
http_archive(
153141
name = "rules_pkg",
154142
sha256 = "aeca78988341a2ee1ba097641056d168320ecc51372ef7ff8e64b139516a4937",
@@ -157,9 +145,9 @@ http_archive(
157145

158146
http_archive(
159147
name = "io_bazel_rules_docker",
160-
sha256 = "4521794f0fba2e20f3bf15846ab5e01d5332e587e9ce81629c7f96c793bb7036",
161-
strip_prefix = "rules_docker-0.14.4",
162-
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.14.4/rules_docker-v0.14.4.tar.gz"],
148+
sha256 = "a5007da3a22ce4d53a44e2a8d1895cdd8e41e8d7d11fae66840a112c5f4c00b1",
149+
strip_prefix = "rules_docker-cc45596d140b3b8651eb7b51b561f1bf72d1eea9",
150+
urls = ["https://github.com/bazelbuild/rules_docker/archive/cc45596d140b3b8651eb7b51b561f1bf72d1eea9.zip"],
163151
)
164152

165153
load(
@@ -173,11 +161,17 @@ load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
173161

174162
container_deps()
175163

176-
load("@io_bazel_rules_docker//repositories:pip_repositories.bzl", "pip_deps")
164+
load(
165+
"@io_bazel_rules_docker//repositories:pip_repositories.bzl",
166+
"io_bazel_rules_docker_pip_deps",
167+
)
177168

178-
pip_deps()
169+
io_bazel_rules_docker_pip_deps()
179170

180-
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
171+
load(
172+
"@io_bazel_rules_docker//container:container.bzl",
173+
"container_pull",
174+
)
181175

182176
container_pull(
183177
name = "java_image_base",

0 commit comments

Comments
 (0)