a14eb6a1e8
- use a single script for all PyQt versions - add hashes - add a new ./run-qt5.14 script for testing with PyQt5.14
33 lines
581 B
Python
33 lines
581 B
Python
load("@rules_python//python:defs.bzl", "py_binary")
|
|
load("compile.bzl", "compile_all")
|
|
|
|
py_binary(
|
|
name = "build_ui",
|
|
srcs = ["build_ui.py"],
|
|
legacy_create_init = False,
|
|
deps = ["@pyqt6"],
|
|
)
|
|
|
|
compile_all(
|
|
name = "generated_forms",
|
|
srcs = glob(["*.ui"]),
|
|
builder = "build_ui",
|
|
)
|
|
|
|
filegroup(
|
|
name = "forms",
|
|
srcs = glob(
|
|
["*.py"],
|
|
exclude = [
|
|
"*_qt5.py",
|
|
"*_qt6.py",
|
|
"build_ui*.py",
|
|
],
|
|
) + [
|
|
":generated_forms",
|
|
],
|
|
visibility = [
|
|
"//qt/aqt:__pkg__",
|
|
],
|
|
)
|