-
-
Notifications
You must be signed in to change notification settings - Fork 633
rules_python_external: fill missing docstrings #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,15 +45,18 @@ py_library( | |
all_requirements = [name for (name, _, _) in _RULE_DEPS] | ||
|
||
def requirement(pkg): | ||
return "@pypi__"+ pkg + "//:lib" | ||
return "@pypi__" + pkg + "//:lib" | ||
|
||
def rules_python_external_dependencies(): | ||
""" | ||
Fetch dependencies these rules depend on. Workspaces that use the rules_python_external should call this. | ||
""" | ||
for (name, url, sha256) in _RULE_DEPS: | ||
maybe( | ||
http_archive, | ||
name, | ||
url=url, | ||
sha256=sha256, | ||
type="zip", | ||
build_file_content=_GENERIC_WHEEL, | ||
url = url, | ||
sha256 = sha256, | ||
type = "zip", | ||
build_file_content = _GENERIC_WHEEL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should add a task to make that automated (I like to do it as a git pre-commit hook so you don't need to think about it) |
||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really thin macro. Not doing much at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah in my PR to promote to public API, I use this as a spot to add the fetch of external repos like
pypi__pip