From db5e003ab2ef48d20361c52d8c30f1f5e391ec00 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Wed, 25 Dec 2024 22:30:19 +0100 Subject: [PATCH] Add ofiuco@0.4.0 --- modules/ofiuco/0.4.0/MODULE.bazel | 16 ++++++++++ .../patches/module_dot_bazel_version.patch | 13 ++++++++ modules/ofiuco/0.4.0/presubmit.yml | 30 +++++++++++++++++++ modules/ofiuco/0.4.0/source.json | 9 ++++++ modules/ofiuco/metadata.json | 3 +- 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 modules/ofiuco/0.4.0/MODULE.bazel create mode 100644 modules/ofiuco/0.4.0/patches/module_dot_bazel_version.patch create mode 100644 modules/ofiuco/0.4.0/presubmit.yml create mode 100644 modules/ofiuco/0.4.0/source.json diff --git a/modules/ofiuco/0.4.0/MODULE.bazel b/modules/ofiuco/0.4.0/MODULE.bazel new file mode 100644 index 00000000000..366dcb2e5c7 --- /dev/null +++ b/modules/ofiuco/0.4.0/MODULE.bazel @@ -0,0 +1,16 @@ +module( + name = "ofiuco", + version = "0.4.0", + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_python", version = "1.0.0") + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +use_repo(python, "python_3_11_host") + +internal_deps = use_extension("@ofiuco//python:internal_deps.bzl", "internal_deps") +use_repo(internal_deps, "ofiuco_defs", "ofiuco_pip", "ofiuco_poetry_deps") diff --git a/modules/ofiuco/0.4.0/patches/module_dot_bazel_version.patch b/modules/ofiuco/0.4.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..9ac610356da --- /dev/null +++ b/modules/ofiuco/0.4.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,13 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,6 +1,6 @@ + module( + name = "ofiuco", +- version = "0", ++ version = "0.4.0", + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.7.1") diff --git a/modules/ofiuco/0.4.0/presubmit.yml b/modules/ofiuco/0.4.0/presubmit.yml new file mode 100644 index 00000000000..7cbd6d3959f --- /dev/null +++ b/modules/ofiuco/0.4.0/presubmit.yml @@ -0,0 +1,30 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + bazel: [7.x, 8.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@ofiuco//python/...' + - '@ofiuco//lib/...' +bcr_test_module: + module_path: "examples/transitions" + matrix: + platform: + - debian11 + - macos + - ubuntu2004 + bazel: [7.x, 8.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - //... diff --git a/modules/ofiuco/0.4.0/source.json b/modules/ofiuco/0.4.0/source.json new file mode 100644 index 00000000000..502820d24d7 --- /dev/null +++ b/modules/ofiuco/0.4.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-qflwtddk3GHbNY3ayTBqbi1DQY31HMiuNAgjF70jNWY=", + "strip_prefix": "ofiuco-0.4.0", + "url": "https://github.com/oxidase/ofiuco/releases/download/v0.4.0/ofiuco-0.4.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-XEcf1fPK+gijHp0hCBacuUOFLFu8D8ZZiHInP8grnyM=" + }, + "patch_strip": 1 +} diff --git a/modules/ofiuco/metadata.json b/modules/ofiuco/metadata.json index 765ee89aec8..1eb9c68c54a 100644 --- a/modules/ofiuco/metadata.json +++ b/modules/ofiuco/metadata.json @@ -11,7 +11,8 @@ "github:oxidase/ofiuco" ], "versions": [ - "0.3.7" + "0.3.7", + "0.4.0" ], "yanked_versions": {} }