- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
29 lines
1002 B
Python
29 lines
1002 B
Python
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
|
|
load("@bazel_skylib//rules:write_file.bzl", "write_file")
|
|
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
|
|
load("//third-party/bazel/toolchains:defs.bzl", "CROSS_PYTHON_INCOMPATIBLE")
|
|
|
|
write_file(
|
|
name = "gen_update",
|
|
out = "update.sh",
|
|
content = [
|
|
"#!/usr/bin/env bash",
|
|
"cd $BUILD_WORKSPACE_DIRECTORY",
|
|
"cp -fv bazel-everest-core/external/rules_python++pip+everest-testing_pip_deps/requirements.bzl applications/utils/requirements.bzl",
|
|
],
|
|
)
|
|
|
|
sh_binary(
|
|
name = "vendor_requirements",
|
|
srcs = ["update.sh"],
|
|
data = ["@everest-testing_pip_deps//:requirements.bzl"],
|
|
)
|
|
|
|
diff_test(
|
|
name = "vendored_requirements_diff",
|
|
failure_message = "Please run `bazel run //:vendor_requirements` to update the vendored requirements.bzl file.",
|
|
file1 = "@everest-testing_pip_deps//:requirements.bzl",
|
|
file2 = ":requirements.bzl",
|
|
target_compatible_with = CROSS_PYTHON_INCOMPATIBLE,
|
|
)
|