From 9bf620e8c3b6312168c42f488921f49f693825d9 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 25 Nov 2025 13:00:11 +0100 Subject: [PATCH] fix: resolve Python venv package collision and missing config target Fixed build failures in python_test_cases virtual environment setup: * Added empty py_library(name="config") required by score_virtualenv macro which has hardcoded dependency on :config with PyInfo provider * Set score_virtualenv reqs=[] to avoid package collisions --- tests/python_test_cases/BUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/python_test_cases/BUILD b/tests/python_test_cases/BUILD index db49affe..c8ba7a0d 100644 --- a/tests/python_test_cases/BUILD +++ b/tests/python_test_cases/BUILD @@ -11,9 +11,16 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* load("@pip_score_venv_test//:requirements.bzl", "all_requirements") +load("@rules_python//python:defs.bzl", "py_library") load("@rules_python//python:pip.bzl", "compile_pip_requirements") load("@score_python_basics//:defs.bzl", "score_py_pytest", "score_virtualenv") +# Empty config library required by score_virtualenv macro +py_library( + name = "config", + srcs = [], +) + # Additional requirements for the tests compile_pip_requirements( name = "requirements", @@ -24,9 +31,10 @@ compile_pip_requirements( ], ) +# Test specific dependencies are specified in the test targets below score_virtualenv( name = "python_tc_venv", - reqs = all_requirements, + reqs = [], venv_name = ".python_tc_venv", )