File tree 10 files changed +33
-27
lines changed
10 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 1
- package (
2
- default_visibility = ["//visibility:private" ],
3
- )
4
-
5
1
load ("@rules_pkg//:pkg.bzl" , "pkg_tar" )
6
2
load ("@rules_pkg//releasing:defs.bzl" , "print_rel_notes" )
7
3
load ("@rules_python//:version.bzl" , "version" )
8
4
5
+ package (
6
+ default_visibility = ["//visibility:private" ],
7
+ )
8
+
9
9
# Build the artifact to put on the github release page.
10
10
pkg_tar (
11
11
name = "rules_python-%s" % version ,
Original file line number Diff line number Diff line change 16
16
# To regenerate documentation, run the top-level update_docs.sh script. #
17
17
###############################################################################
18
18
19
+ load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
20
+ load ("@io_bazel_skydoc//stardoc:stardoc.bzl" , "stardoc" )
21
+
19
22
package (default_visibility = ["//visibility:public" ])
20
23
21
24
licenses (["notice" ]) # Apache 2.0
22
25
23
- load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
24
- load ("@io_bazel_skydoc//stardoc:stardoc.bzl" , "stardoc" )
25
-
26
26
# We define these bzl_library targets here rather than in the //python package
27
27
# because they're only used for doc generation. This way, we avoid requiring
28
28
# our users to depend on Skylib.
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
-
16
- licenses (["notice" ]) # Apache 2.0
17
14
18
15
load ("@examples_boto//:requirements.bzl" , "requirement" )
19
16
load ("//python:defs.bzl" , "py_test" )
20
17
18
+ package (default_visibility = ["//visibility:public" ])
19
+
20
+ licenses (["notice" ]) # Apache 2.0
21
+
21
22
py_test (
22
23
name = "boto_test" ,
23
24
srcs = ["boto_test.py" ],
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
-
16
- licenses (["notice" ]) # Apache 2.0
17
14
18
15
load ("@examples_extras//:requirements.bzl" , "requirement" )
19
16
load ("//python:defs.bzl" , "py_test" )
20
17
18
+ package (default_visibility = ["//visibility:public" ])
19
+
20
+ licenses (["notice" ]) # Apache 2.0
21
+
21
22
py_test (
22
23
name = "extras_test" ,
23
24
srcs = ["extras_test.py" ],
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
-
16
- licenses (["notice" ]) # Apache 2.0
17
14
18
15
load ("@examples_helloworld//:requirements.bzl" , "requirement" )
19
16
load ("//python:defs.bzl" , "py_library" , "py_test" )
20
17
18
+ package (default_visibility = ["//visibility:public" ])
19
+
20
+ licenses (["notice" ]) # Apache 2.0
21
+
21
22
py_library (
22
23
name = "helloworld" ,
23
24
srcs = ["helloworld.py" ],
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
-
16
- licenses (["notice" ]) # Apache 2.0
17
14
18
15
load ("@examples_version//:requirements.bzl" , "requirement" )
19
16
load ("//python:defs.bzl" , "py_test" )
20
17
18
+ package (default_visibility = ["//visibility:public" ])
19
+
20
+ licenses (["notice" ]) # Apache 2.0
21
+
21
22
py_test (
22
23
name = "version_test" ,
23
24
srcs = ["version_test.py" ],
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
-
16
- licenses (["notice" ]) # Apache 2.0
17
14
18
15
load ("//experimental/python:wheel.bzl" , "py_package" , "py_wheel" )
19
16
load ("//python:defs.bzl" , "py_library" , "py_test" )
20
17
18
+ package (default_visibility = ["//visibility:public" ])
19
+
20
+ licenses (["notice" ]) # Apache 2.0
21
+
21
22
py_library (
22
23
name = "main" ,
23
24
srcs = ["main.py" ],
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+
15
+ load ("//python:defs.bzl" , "py_library" )
16
+
14
17
package (default_visibility = ["//visibility:public" ])
15
18
16
19
licenses (["notice" ]) # Apache 2.0
17
20
18
- load ("//python:defs.bzl" , "py_library" )
19
-
20
21
py_library (
21
22
name = "simple_module" ,
22
23
srcs = ["simple_module.py" ],
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ belong to given set of Python packages.
69
69
This rule is intended to be used as data dependency to py_wheel rule
70
70
""" ,
71
71
attrs = {
72
+ "deps" : attr .label_list (),
72
73
"packages" : attr .string_list (
73
74
mandatory = False ,
74
75
allow_empty = True ,
@@ -77,7 +78,6 @@ List of Python packages to include in the distribution.
77
78
Sub-packages are automatically included.
78
79
""" ,
79
80
),
80
- "deps" : attr .label_list (),
81
81
},
82
82
)
83
83
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- licenses (["notice" ]) # Apache 2.0
16
-
17
15
load ("@piptool_deps//:requirements.bzl" , "requirement" )
18
16
load ("@subpar//:subpar.bzl" , "par_binary" )
19
17
load ("//python:defs.bzl" , "py_library" , "py_test" )
20
18
19
+ licenses (["notice" ]) # Apache 2.0
20
+
21
21
py_library (
22
22
name = "whl" ,
23
23
srcs = ["whl.py" ],
You can’t perform that action at this time.
0 commit comments