-
-
Notifications
You must be signed in to change notification settings - Fork 57
feat: py_* rules in Starlark #10
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
Conversation
| <!-- Generated with Stardoc: http://skydoc.bazel.build --> | ||
|
|
||
| Public API re-exports | ||
|
|
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.
nit: you can copy the .gitattributes file from rules_js so these generated markdowns don't show in the delta
| py_library( | ||
| name = "foo", | ||
| srcs = ["__init__.py"], | ||
| imports = [".."], |
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.
one of our design goals is to be similar to rules_python right? Just don't want to start bike-shedding about semantics if that's out of scope.
|
|
||
| {{BASH_RLOCATION_FN}} | ||
|
|
||
| runfiles_export_envvars |
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 bare string is a bit confusing, is it templated?
| return struct( | ||
| toolchain = py3_toolchain, | ||
| path = interpreter_path, | ||
| flags = ["-B", "-s", "-I"], |
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.
is there a long form for these flags? if not, can we document their meanings here?
| flags = ["-B", "-s", "-I"], | ||
| ) | ||
|
|
||
| def _py_binary_rule_imp(ctx): |
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.
imp -> impl?
It's just a golden file with the content stabilized
No description provided.