From c9f7e382744699603ebf1cfd2cac674ef99050eb Mon Sep 17 00:00:00 2001 From: Robin Alexander Plate Date: Sat, 16 Dec 2023 12:19:46 +0000 Subject: [PATCH] make ci happy --- MODULE.bazel | 11 ++ MODULE.bazel.lock | 283 ++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 246 insertions(+), 48 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 6dff85c..85b0b73 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -26,6 +26,17 @@ bazel_dep(name = "rules_cc", version = "0.0.9") bazel_dep(name = "rules_foreign_cc", version = "0.10.1") bazel_dep(name = "rules_python", version = "0.27.1") +# +# Python +# +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain( + configure_coverage_tool = True, + is_default = True, + python_version = "3.12", + ignore_root_user_error = True, +) + # # Testing # diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 6fe0cfc..c4df2b6 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 3, - "moduleFileHash": "5a396de2f8c87fb630b74de3a840c9e58ba0f394a8b54a49e94bccaf7d90ab00", + "moduleFileHash": "bd55055e1a00123e958e40b1b3936a81517270fc29d085146eec6a0ffc55c244", "flags": { "cmdRegistries": [ "https://bcr.bazel.build/" @@ -24,13 +24,44 @@ "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [ + { + "extensionBzlFile": "@rules_python//python/extensions:python.bzl", + "extensionName": "python", + "usingModule": "", + "location": { + "file": "@@//:MODULE.bazel", + "line": 32, + "column": 23 + }, + "imports": {}, + "devImports": [], + "tags": [ + { + "tagName": "toolchain", + "attributeValues": { + "configure_coverage_tool": true, + "is_default": true, + "python_version": "3.12", + "ignore_root_user_error": true + }, + "devDependency": false, + "location": { + "file": "@@//:MODULE.bazel", + "line": 33, + "column": 17 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, { "extensionBzlFile": "@bolt//:bazel/extensions.bzl", "extensionName": "non_module_dependencies", "usingModule": "", "location": { "file": "@@//:MODULE.bazel", - "line": 42, + "line": 53, "column": 40 }, "imports": { @@ -3567,24 +3598,6 @@ "ignore_root_user_error": false } }, - "python_3_11": { - "bzlFile": "@@rules_python~0.27.1//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "name": "rules_python~0.27.1~python~python_3_11", - "python_version": "3.11.6", - "user_repository_name": "python_3_11", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, "python_3_11_aarch64-unknown-linux-gnu": { "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", "ruleClassName": "python_repository", @@ -3623,6 +3636,199 @@ "ignore_root_user_error": false } }, + "pythons_hub": { + "bzlFile": "@@rules_python~0.27.1//python/private/bzlmod:pythons_hub.bzl", + "ruleClassName": "hub_repo", + "attributes": { + "name": "rules_python~0.27.1~python~pythons_hub", + "default_python_version": "3.12", + "toolchain_prefixes": [ + "_0000_python_3_11_", + "_0001_python_3_12_" + ], + "toolchain_python_versions": [ + "3.11", + "3.12" + ], + "toolchain_set_python_version_constraints": [ + "True", + "False" + ], + "toolchain_user_repository_names": [ + "python_3_11", + "python_3_12" + ] + } + }, + "python_3_12_x86_64-pc-windows-msvc": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_x86_64-pc-windows-msvc", + "sha256": "facfaa1fbc8653f95057f3c4a0f8aa833dab0e0b316e24ee8686bc761d4b4f8d", + "patches": [], + "platform": "x86_64-pc-windows-msvc", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_12_x86_64-unknown-linux-gnu": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_x86_64-unknown-linux-gnu", + "sha256": "e51a5293f214053ddb4645b2c9f84542e2ef86870b8655704367bd4b29d39fe9", + "patches": [], + "platform": "x86_64-unknown-linux-gnu", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_11_x86_64-pc-windows-msvc": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_11_x86_64-pc-windows-msvc", + "sha256": "3933545e6d41462dd6a47e44133ea40995bc6efeed8c2e4cbdf1a699303e95ea", + "patches": [], + "platform": "x86_64-pc-windows-msvc", + "python_version": "3.11.6", + "release_filename": "20231002/cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": false + } + }, + "python_3_12_aarch64-apple-darwin": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_aarch64-apple-darwin", + "sha256": "4734a2be2becb813830112c780c9879ac3aff111a0b0cd590e65ec7465774d02", + "patches": [], + "platform": "aarch64-apple-darwin", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-aarch64-apple-darwin-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-aarch64-apple-darwin-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_12": { + "bzlFile": "@@rules_python~0.27.1//python/private:toolchains_repo.bzl", + "ruleClassName": "toolchain_aliases", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12", + "python_version": "3.12.0", + "user_repository_name": "python_3_12", + "platforms": [ + "aarch64-apple-darwin", + "aarch64-unknown-linux-gnu", + "ppc64le-unknown-linux-gnu", + "s390x-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu" + ] + } + }, + "python_3_12_x86_64-apple-darwin": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_x86_64-apple-darwin", + "sha256": "5a9e88c8aa52b609d556777b52ebde464ae4b4f77e4aac4eb693af57395c9abf", + "patches": [], + "platform": "x86_64-apple-darwin", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-x86_64-apple-darwin-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-x86_64-apple-darwin-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_12_s390x-unknown-linux-gnu": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_s390x-unknown-linux-gnu", + "sha256": "5681621349dd85d9726d1b67c84a9686ce78f72e73a6f9e4cc4119911655759e", + "patches": [], + "platform": "s390x-unknown-linux-gnu", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-s390x-unknown-linux-gnu-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-s390x-unknown-linux-gnu-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_12_aarch64-unknown-linux-gnu": { + "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", + "ruleClassName": "python_repository", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_12_aarch64-unknown-linux-gnu", + "sha256": "bccfe67cf5465a3dfb0336f053966e2613a9bc85a6588c2fcf1366ef930c4f88", + "patches": [], + "platform": "aarch64-unknown-linux-gnu", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz", + "urls": [ + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz" + ], + "distutils_content": "", + "strip_prefix": "python", + "coverage_tool": "", + "ignore_root_user_error": true + } + }, + "python_3_11": { + "bzlFile": "@@rules_python~0.27.1//python/private:toolchains_repo.bzl", + "ruleClassName": "toolchain_aliases", + "attributes": { + "name": "rules_python~0.27.1~python~python_3_11", + "python_version": "3.11.6", + "user_repository_name": "python_3_11", + "platforms": [ + "aarch64-apple-darwin", + "aarch64-unknown-linux-gnu", + "ppc64le-unknown-linux-gnu", + "s390x-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu" + ] + } + }, "python_3_11_ppc64le-unknown-linux-gnu": { "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", "ruleClassName": "python_repository", @@ -3661,53 +3867,34 @@ "ignore_root_user_error": false } }, - "pythons_hub": { - "bzlFile": "@@rules_python~0.27.1//python/private/bzlmod:pythons_hub.bzl", - "ruleClassName": "hub_repo", - "attributes": { - "name": "rules_python~0.27.1~python~pythons_hub", - "default_python_version": "3.11", - "toolchain_prefixes": [ - "_0000_python_3_11_" - ], - "toolchain_python_versions": [ - "3.11" - ], - "toolchain_set_python_version_constraints": [ - "False" - ], - "toolchain_user_repository_names": [ - "python_3_11" - ] - } - }, "python_versions": { "bzlFile": "@@rules_python~0.27.1//python/private:toolchains_repo.bzl", "ruleClassName": "multi_toolchain_aliases", "attributes": { "name": "rules_python~0.27.1~python~python_versions", "python_versions": { + "3.12": "python_3_12", "3.11": "python_3_11" } } }, - "python_3_11_x86_64-pc-windows-msvc": { + "python_3_12_ppc64le-unknown-linux-gnu": { "bzlFile": "@@rules_python~0.27.1//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "name": "rules_python~0.27.1~python~python_3_11_x86_64-pc-windows-msvc", - "sha256": "3933545e6d41462dd6a47e44133ea40995bc6efeed8c2e4cbdf1a699303e95ea", + "name": "rules_python~0.27.1~python~python_3_12_ppc64le-unknown-linux-gnu", + "sha256": "b5dae075467ace32c594c7877fe6ebe0837681f814601d5d90ba4c0dfd87a1f2", "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.11.6", - "release_filename": "20231002/cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", + "platform": "ppc64le-unknown-linux-gnu", + "python_version": "3.12.0", + "release_filename": "20231002/cpython-3.12.0+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.12.0+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", "coverage_tool": "", - "ignore_root_user_error": false + "ignore_root_user_error": true } }, "python_3_11_x86_64-unknown-linux-gnu": {