Restore the python/pip.bzl#pip_repositories function It is called from rules_docker so we have to leave a placeholder until rules_docker is fixed and all users update
diff --git a/examples/legacy_pip_import/README.md b/examples/legacy_pip_import/README.md index 8ce8438..a474a01 100644 --- a/examples/legacy_pip_import/README.md +++ b/examples/legacy_pip_import/README.md
@@ -1,6 +1,6 @@ # LEGACY pip example -This feature has been replaced by the pip_install rule, please see the latest release notes to migrate. +This feature has been replaced by the pip_install rule, please see the rules_python 0.1 release notes to migrate. This shows how you can point Bazel at your requirements.txt file to get dependencies automatically installed.
diff --git a/python/legacy_pip_import/pip.bzl b/python/legacy_pip_import/pip.bzl index ff7977b..bc493b8 100644 --- a/python/legacy_pip_import/pip.bzl +++ b/python/legacy_pip_import/pip.bzl
@@ -140,4 +140,4 @@ def pip_repositories(): # buildifier: disable=print - print("DEPRECATED: the pip_import rule has been replaced with pip_install, please see release notes") + print("DEPRECATED: the pip_import rule has been replaced with pip_install, please see rules_python 0.1 release notes")
diff --git a/python/pip.bzl b/python/pip.bzl index 6a0bcb9..44e4167 100644 --- a/python/pip.bzl +++ b/python/pip.bzl
@@ -56,8 +56,12 @@ **kwargs ) +def pip_repositories(): + # buildifier: disable=print + print("DEPRECATED: the pip_repositories rule has been replaced with pip_install, please see rules_python 0.1 release notes") + def pip_import(**kwargs): fail("=" * 79 + """\n - pip_import has been replaced with pip_install, please see the release notes. + pip_import has been replaced with pip_install, please see the rules_python 0.1 release notes. To continue using it, you can load from "@rules_python//python/legacy_pip_import:pip.bzl" """)