[bazel] Commit fully to bzlmod (#9035)

Move pybind11 over, delete the WORKSPACE files, and fix a test which
assumed WORKSPACE support was enabled.

---------

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
This commit is contained in:
Austin Schuh
2026-07-01 22:59:10 -07:00
committed by GitHub
parent ac6aaa0f3c
commit f494ff8c0d
8 changed files with 112 additions and 302 deletions

View File

@@ -20,7 +20,14 @@ CLASSIFIER_FILTER = "{classifier_filter}"
publishing_repo = repository_rule(
implementation = _publishing_repo_impl,
environ = ["WPI_PUBLISH_CLASSIFIER_FILTER"],
doc = "Repository rule to determine host OS and classifier filter for publishing. " +
"This rule must be instantiated in the WORKSPACE file with the name " +
"'com_wpilib_allwpilib_publishing_config'.",
doc = "Repository rule to determine host OS and classifier filter for publishing.",
)
def _publishing_extension_impl(module_ctx):
publishing_repo(
name = "com_wpilib_allwpilib_publishing_config",
)
publishing_extension = module_extension(
implementation = _publishing_extension_impl,
)