Skip to content

Commit

Permalink
Update documentation for srcs_version in python rules
Browse files Browse the repository at this point in the history
* highlight this attribute is deprecated from 0.5.3  because of `py_runtime` rule.

PiperOrigin-RevId: 165945840
  • Loading branch information
erain authored and damienmg committed Aug 22, 2017
1 parent c03ca7c commit 529385c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ Absolute paths (paths that start with <code>/</code>) and paths that references
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
.add(attr("imports", STRING_LIST).value(ImmutableList.<String>of()))
/* <!-- #BLAZE_RULE($base_py).ATTRIBUTE(srcs_version) -->
The value set here is for documentation purpose, and it will NOT determine which version
of python interpreter to use. Starting with 0.5.3 this attribute has been deprecated and
no longer has effect.
A string specifying the Python major version(s) that the <code>.py</code> source
files listed in the <code>srcs</code> of this rule are compatible with.
Please reference to <a href="${link py_runtime}"><code>py_runtime</code></a> rules for
determining the python version.
Valid values are:<br/>
<code>"PY2ONLY"</code> -
Python 2 code that is <b>not</b> suitable for <code>2to3</code> conversion.<br/>
Expand Down

0 comments on commit 529385c

Please sign in to comment.