add .bazelignore
diff --git a/.bazelignore b/.bazelignore
new file mode 100644
index 0000000..90c978b
--- /dev/null
+++ b/.bazelignore
@@ -0,0 +1 @@
+example/
diff --git a/README.md b/README.md
index a8bac90..71ea62c 100644
--- a/README.md
+++ b/README.md
@@ -22,10 +22,13 @@
url = "https://github.com/dillon-giacoppo/rules_python_external/archive/{version}.zip".format(version = rules_python_external_version),
)
-load("@rules_python_external//:defs.bzl", "pip_repository")
+# Install the rule dependencies
+load("@rules_python_external//:repositories.bzl", "rules_python_external_dependencies")
+rules_python_external_dependencies()
-pip_repository(
- name = "py_deps",
+load("@rules_python_external//:defs.bzl", "pip_install")
+pip_install(
+ name = "py_deps"
requirements = "//:requirements.txt",
)
```
diff --git a/example/WORKSPACE b/example/WORKSPACE
index ac543a5..01be120 100644
--- a/example/WORKSPACE
+++ b/example/WORKSPACE
@@ -20,5 +20,6 @@
load("@rules_python_external//:defs.bzl", "pip_install")
pip_install(
+ # Uses the default repository name "pip"
requirements = "//:requirements.txt",
)