diff --git a/modules/rules_appimage/1.16.2/MODULE.bazel b/modules/rules_appimage/1.16.2/MODULE.bazel new file mode 100644 index 00000000000..e9f2c4d18d3 --- /dev/null +++ b/modules/rules_appimage/1.16.2/MODULE.bazel @@ -0,0 +1,69 @@ +"""AppImage rules for Bazel.""" + +module( + name = "rules_appimage", + version = "1.16.2", +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.1.0") +bazel_dep(name = "rules_python", version = "0.37.2") +bazel_dep(name = "squashfs-tools", version = "4.6.1") +bazel_dep(name = "zstd", version = "1.5.6") + +bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True) +bazel_dep(name = "with_cfg.bzl", version = "0.6.0", dev_dependency = True) + +rules_appimage = use_extension("//:extensions.bzl", "appimage_ext_dependencies") +use_repo( + rules_appimage, + "appimage_runtime_aarch64", + "appimage_runtime_armv7e-m", + "appimage_runtime_i386", + "appimage_runtime_x86_64", +) + +register_toolchains("//appimage:all") + +_DEFAULT_PYTHON = "3.13" + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain( + is_default = True, + python_version = _DEFAULT_PYTHON, +) +use_repo(python, "python_" + _DEFAULT_PYTHON.replace(".", "_"), "python_versions", "pythons_hub") + +register_toolchains("@pythons_hub//:all") + +dev_pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True) +dev_pip.parse( + hub_name = "rules_appimage_py_deps", + python_version = _DEFAULT_PYTHON, + requirements_lock = "//:requirements.txt", +) +use_repo(dev_pip, "rules_appimage_py_deps") + +bazel_dep(name = "container_structure_test", version = "1.19.1", dev_dependency = True) +bazel_dep(name = "rules_oci", version = "2.0.1", dev_dependency = True) +bazel_dep(name = "rules_pycross", version = "0.6.1", dev_dependency = True) +bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True) + +lock_import = use_extension("@rules_pycross//pycross/extensions:lock_import.bzl", "lock_import", dev_dependency = True) +lock_import.import_pdm( + lock_file = "//tests/rules_pycross:pdm.lock", + project_file = "//tests/rules_pycross:pyproject.toml", + repo = "pdm_deps", +) + +lock_repos = use_extension("@rules_pycross//pycross/extensions:lock_repos.bzl", "lock_repos", dev_dependency = True) +use_repo(lock_repos, "pdm_deps") + +oci = use_extension("@rules_oci//oci:extensions.bzl", "oci", dev_dependency = True) +oci.pull( + name = "python3-slim", + digest = "sha256:afc139a0a640942491ec481ad8dda10f2c5b753f5c969393b12480155fe15a63", # "3-slim" as of 2023-06-01 + image = "docker.io/library/python", + platforms = ["linux/amd64"], +) +use_repo(oci, "python3-slim", "python3-slim_linux_amd64") diff --git a/modules/rules_appimage/1.16.2/patches/module_dot_bazel_version.patch b/modules/rules_appimage/1.16.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..c99dec96280 --- /dev/null +++ b/modules/rules_appimage/1.16.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + """AppImage rules for Bazel.""" + + module( + name = "rules_appimage", +- version = "0.0.0", ++ version = "1.16.2", + ) + + bazel_dep(name = "platforms", version = "0.0.10") + bazel_dep(name = "rules_cc", version = "0.1.0") diff --git a/modules/rules_appimage/1.16.2/presubmit.yml b/modules/rules_appimage/1.16.2/presubmit.yml new file mode 100644 index 00000000000..aba973c7b49 --- /dev/null +++ b/modules/rules_appimage/1.16.2/presubmit.yml @@ -0,0 +1,14 @@ +--- +bcr_test_module: + module_path: '' + matrix: + bazel: [6.x, 7.x] + tasks: + run_tests_ubuntu2204: + platform: ubuntu2204 + bazel: ${{ bazel }} + test_targets: [//...] + run_tests_macos: + platform: macos + bazel: ${{ bazel }} + test_targets: [//..., -//tests/rules_pycross/...] diff --git a/modules/rules_appimage/1.16.2/source.json b/modules/rules_appimage/1.16.2/source.json new file mode 100644 index 00000000000..5a9a10ea4ff --- /dev/null +++ b/modules/rules_appimage/1.16.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-Nf92AAzGdX+5LUhddqzDF6aWVk3lV6yI3QvgQE/xjSI=", + "strip_prefix": "rules_appimage-1.16.2", + "url": "https://github.com/lalten/rules_appimage/releases/download/v1.16.2/rules_appimage-1.16.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-sgNNc/kzbRrIAS5nflu8y/p76HuOErDnNByNwsyp2hI=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_appimage/metadata.json b/modules/rules_appimage/metadata.json index 5edf75aecd9..cf54ebf2038 100644 --- a/modules/rules_appimage/metadata.json +++ b/modules/rules_appimage/metadata.json @@ -26,7 +26,8 @@ "1.15.1", "1.15.2", "1.16.0", - "1.16.1" + "1.16.1", + "1.16.2" ], "yanked_versions": {} }