From cccada2bcfa6e1c1190de62037c92eb7b23ed0cd Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Mon, 15 Dec 2025 19:50:53 +0100 Subject: [PATCH] [python] PY-86244: Mark helper dirs as resources. These files aren't java sources. GitOrigin-RevId: f1d86f6cf7cc5a5291997c2c39bd4f682f486c6f --- python/BUILD.bazel | 28 ++++++++++-------------- python/intellij.python.helpers.tests.iml | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/python/BUILD.bazel b/python/BUILD.bazel index e7ea2364dd96..9b1cc7fb6685 100644 --- a/python/BUILD.bazel +++ b/python/BUILD.bazel @@ -625,6 +625,12 @@ resourcegroup( strip_prefix = "helpersTestResources" ) +resourcegroup( + name = "python-helpers-tests_test_resources_1", + srcs = glob(["helpersTests/**/*"]), + strip_prefix = "helpersTests" +) + jvm_library( name = "python-helpers-tests", visibility = ["//visibility:public"], @@ -635,13 +641,12 @@ jvm_library( name = "python-helpers-tests_test_lib", module_name = "intellij.python.helpers.tests", visibility = ["//visibility:public"], - srcs = glob(["helpersTests/**/*.kt", "helpersTests/**/*.java", "helpersTests/**/*.form"], allow_empty = True, exclude = [ - "helpersTests/.gradle/**/*", - "helpersTests/.tox/**/*", - "helpersTests/build/**/*", - ]), - resources = [":python-helpers-tests_test_resources"], - deps = [ + srcs = glob([], allow_empty = True), + resources = [ + ":python-helpers-tests_test_resources", + ":python-helpers-tests_test_resources_1", + ], + runtime_deps = [ "//python:python-helpers", "@lib//ant/lib:ant-antlr", "@lib//:kotlin-stdlib", @@ -649,15 +654,6 @@ jvm_library( ) ### auto-generated section `build intellij.python.helpers.tests` end -### auto-generated section `test intellij.python.helpers.tests` start -load("@community//build:tests-options.bzl", "jps_test") - -jps_test( - name = "python-helpers-tests_test", - runtime_deps = [":python-helpers-tests_test_lib"] -) -### auto-generated section `test intellij.python.helpers.tests` end - ### auto-generated section `build intellij.python.pydev` start resourcegroup( name = "python-pydev_resources", diff --git a/python/intellij.python.helpers.tests.iml b/python/intellij.python.helpers.tests.iml index 02114d0c2c37..120c190a4742 100644 --- a/python/intellij.python.helpers.tests.iml +++ b/python/intellij.python.helpers.tests.iml @@ -6,7 +6,7 @@ - +