Skip to content

Commit 2777c5e

Browse files
authored
Fix CI issues related to Python upgrade (#33)
## What is the goal of this PR? Recent upgrade to Python 3 broke our CI. ## What are the changes implemented in this PR? - Use updated imports from `@rules_python`
1 parent d64a4f3 commit 2777c5e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

WORKSPACE

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ checkstyle_dependencies()
5151
load("@graknlabs_build_tools//bazel:dependencies.bzl", "bazel_rules_python")
5252
bazel_rules_python()
5353

54-
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
54+
load("@rules_python//python:repositories.bzl", "py_repositories")
55+
py_repositories()
56+
57+
load("@rules_python//python:pip.bzl", "pip_repositories", "pip3_import")
5558
pip_repositories()
5659

57-
pip_import(
60+
pip3_import(
5861
name = "graknlabs_build_tools_ci_pip",
5962
requirements = "@graknlabs_build_tools//ci:requirements.txt",
6063
)
@@ -64,7 +67,7 @@ graknlabs_build_tools_ci_pip_install = "pip_install")
6467
graknlabs_build_tools_ci_pip_install()
6568

6669

67-
pip_import(
70+
pip3_import(
6871
name = "graknlabs_bazel_distribution_pip",
6972
requirements = "@graknlabs_bazel_distribution//pip:requirements.txt",
7073
)

0 commit comments

Comments
 (0)