mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-27 05:43:25 +00:00
3154dbbc41
* Add sets.is_set() to test whether an arbitrary object is a set. Since using sets requires special API, it can be useful to determine whether an object is a set so special handling can be used. For example, if a method wants to be able to take a list or a set.
93 lines
1.3 KiB
Python
93 lines
1.3 KiB
Python
load("//:bzl_library.bzl", "bzl_library")
|
|
|
|
licenses(["notice"])
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
bzl_library(
|
|
name = "collections",
|
|
srcs = ["collections.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "dicts",
|
|
srcs = ["dicts.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "partial",
|
|
srcs = ["partial.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "paths",
|
|
srcs = ["paths.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "selects",
|
|
srcs = ["selects.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "sets",
|
|
srcs = [
|
|
"old_sets.bzl",
|
|
"sets.bzl",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "new_sets",
|
|
srcs = ["new_sets.bzl"],
|
|
deps = [
|
|
":dicts",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "shell",
|
|
srcs = ["shell.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "structs",
|
|
srcs = ["structs.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "types",
|
|
srcs = ["types.bzl"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "unittest",
|
|
srcs = ["unittest.bzl"],
|
|
deps = [
|
|
":new_sets",
|
|
":sets",
|
|
":types",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "versions",
|
|
srcs = ["versions.bzl"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "test_deps",
|
|
testonly = True,
|
|
srcs = ["BUILD"] + glob(["*.bzl"]),
|
|
)
|
|
|
|
# The files needed for distribution
|
|
filegroup(
|
|
name = "distribution",
|
|
srcs = glob(["*"]),
|
|
visibility = [
|
|
"//:__pkg__",
|
|
"//distribution:__pkg__",
|
|
],
|
|
)
|