Skip to content

Commit

Permalink
Merge pull request #15586 from github/criemen/bazel-python-language-pack
Browse files Browse the repository at this point in the history
Python: Update BUILD.bazel files.
  • Loading branch information
criemen authored Feb 13, 2024
2 parents 062f16e + 27ebebc commit e08946e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions python/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_pkg//:mappings.bzl", "pkg_filegroup", "pkg_files")

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

alias(
Expand All @@ -9,3 +11,20 @@ alias(
name = "dbscheme-stats",
actual = "//python/ql/lib:dbscheme-stats",
)

pkg_files(
name = "dbscheme-group",
srcs = [
":dbscheme",
":dbscheme-stats",
],
strip_prefix = None,
)

pkg_filegroup(
name = "db-files",
srcs = [
":dbscheme-group",
"//python/downgrades",
],
)
12 changes: 12 additions & 0 deletions python/downgrades/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")

pkg_files(
name = "downgrades",
srcs = glob(
["**"],
exclude = ["BUILD.bazel"],
),
prefix = "downgrades",
strip_prefix = strip_prefix.from_pkg(),
visibility = ["//python:__pkg__"],
)

0 comments on commit e08946e

Please sign in to comment.