Skip to content

Commit e08946e

Browse files
authored
Merge pull request github#15586 from github/criemen/bazel-python-language-pack
Python: Update BUILD.bazel files.
2 parents 062f16e + 27ebebc commit e08946e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

python/BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_pkg//:mappings.bzl", "pkg_filegroup", "pkg_files")
2+
13
package(default_visibility = ["//visibility:public"])
24

35
alias(
@@ -9,3 +11,20 @@ alias(
911
name = "dbscheme-stats",
1012
actual = "//python/ql/lib:dbscheme-stats",
1113
)
14+
15+
pkg_files(
16+
name = "dbscheme-group",
17+
srcs = [
18+
":dbscheme",
19+
":dbscheme-stats",
20+
],
21+
strip_prefix = None,
22+
)
23+
24+
pkg_filegroup(
25+
name = "db-files",
26+
srcs = [
27+
":dbscheme-group",
28+
"//python/downgrades",
29+
],
30+
)

python/downgrades/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
2+
3+
pkg_files(
4+
name = "downgrades",
5+
srcs = glob(
6+
["**"],
7+
exclude = ["BUILD.bazel"],
8+
),
9+
prefix = "downgrades",
10+
strip_prefix = strip_prefix.from_pkg(),
11+
visibility = ["//python:__pkg__"],
12+
)

0 commit comments

Comments
 (0)