Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c064f70

Browse filesBrowse files
Alex Eaglealexeagle
Alex Eagle
authored andcommitted
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
1 parent 66b61be commit c064f70
Copy full SHA for c064f70

File tree

3 files changed

+7
-3
lines changed
Filter options

3 files changed

+7
-3
lines changed

‎examples/legacy_pip_import/README.md

Copy file name to clipboardExpand all lines: examples/legacy_pip_import/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LEGACY pip example
22

3-
This feature has been replaced by the pip_install rule, please see the latest release notes to migrate.
3+
This feature has been replaced by the pip_install rule, please see the rules_python 0.1 release notes to migrate.
44

55
This shows how you can point Bazel at your requirements.txt file to get dependencies automatically installed.
66

‎python/legacy_pip_import/pip.bzl

Copy file name to clipboardExpand all lines: python/legacy_pip_import/pip.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ def pip3_import(**kwargs):
140140

141141
def pip_repositories():
142142
# buildifier: disable=print
143-
print("DEPRECATED: the pip_import rule has been replaced with pip_install, please see release notes")
143+
print("DEPRECATED: the pip_import rule has been replaced with pip_install, please see rules_python 0.1 release notes")

‎python/pip.bzl

Copy file name to clipboardExpand all lines: python/pip.bzl
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ def pip_install(requirements, name = "pip", **kwargs):
5656
**kwargs
5757
)
5858

59+
def pip_repositories():
60+
# buildifier: disable=print
61+
print("DEPRECATED: the pip_repositories rule has been replaced with pip_install, please see rules_python 0.1 release notes")
62+
5963
def pip_import(**kwargs):
6064
fail("=" * 79 + """\n
61-
pip_import has been replaced with pip_install, please see the release notes.
65+
pip_import has been replaced with pip_install, please see the rules_python 0.1 release notes.
6266
To continue using it, you can load from "@rules_python//python/legacy_pip_import:pip.bzl"
6367
""")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.