Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions distro/BUILD
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package(
default_visibility = ["//visibility:private"],
)

load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//releasing:defs.bzl", "print_rel_notes")
load("@rules_python//:version.bzl", "version")

package(
default_visibility = ["//visibility:private"],
)

# Build the artifact to put on the github release page.
pkg_tar(
name = "rules_python-%s" % version,
Expand Down
6 changes: 3 additions & 3 deletions docs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
# To regenerate documentation, run the top-level update_docs.sh script. #
###############################################################################

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@io_bazel_skydoc//stardoc:stardoc.bzl", "stardoc")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@io_bazel_skydoc//stardoc:stardoc.bzl", "stardoc")

# We define these bzl_library targets here rather than in the //python package
# because they're only used for doc generation. This way, we avoid requiring
# our users to depend on Skylib.
Expand Down
7 changes: 4 additions & 3 deletions examples/boto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@examples_boto//:requirements.bzl", "requirement")
load("//python:defs.bzl", "py_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

py_test(
name = "boto_test",
srcs = ["boto_test.py"],
Expand Down
7 changes: 4 additions & 3 deletions examples/extras/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@examples_extras//:requirements.bzl", "requirement")
load("//python:defs.bzl", "py_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

py_test(
name = "extras_test",
srcs = ["extras_test.py"],
Expand Down
7 changes: 4 additions & 3 deletions examples/helloworld/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@examples_helloworld//:requirements.bzl", "requirement")
load("//python:defs.bzl", "py_library", "py_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

py_library(
name = "helloworld",
srcs = ["helloworld.py"],
Expand Down
7 changes: 4 additions & 3 deletions examples/version/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@examples_version//:requirements.bzl", "requirement")
load("//python:defs.bzl", "py_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

py_test(
name = "version_test",
srcs = ["version_test.py"],
Expand Down
7 changes: 4 additions & 3 deletions experimental/examples/wheel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("//experimental/python:wheel.bzl", "py_package", "py_wheel")
load("//python:defs.bzl", "py_library", "py_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

py_library(
name = "main",
srcs = ["main.py"],
Expand Down
5 changes: 3 additions & 2 deletions experimental/examples/wheel/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("//python:defs.bzl", "py_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("//python:defs.bzl", "py_library")

py_library(
name = "simple_module",
srcs = ["simple_module.py"],
Expand Down
2 changes: 1 addition & 1 deletion experimental/python/wheel.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ belong to given set of Python packages.
This rule is intended to be used as data dependency to py_wheel rule
""",
attrs = {
"deps": attr.label_list(),
"packages": attr.string_list(
mandatory = False,
allow_empty = True,
Expand All @@ -77,7 +78,6 @@ List of Python packages to include in the distribution.
Sub-packages are automatically included.
""",
),
"deps": attr.label_list(),
},
)

Expand Down
4 changes: 2 additions & 2 deletions packaging/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

licenses(["notice"]) # Apache 2.0

load("@piptool_deps//:requirements.bzl", "requirement")
load("@subpar//:subpar.bzl", "par_binary")
load("//python:defs.bzl", "py_library", "py_test")

licenses(["notice"]) # Apache 2.0

py_library(
name = "whl",
srcs = ["whl.py"],
Expand Down