Files
openide/python/intellij.python.ml.features/BUILD.bazel
Vitaly Legchilkin 84934e9e9e [python] (IJPL-205889) (BAZEL-2462) don't call getOrCreateAdditionalData for non-python sdks
+ add requirePythonSdk() verification for the Sdk extension functions, these methods are not designed to be called for non-python sdks and now will throw IllegalArgumentException.

also corrects dependency tree:
+ move PythonSdkUtil to the python.sdk module, remove dependency on psi.impl
+ create PySkeletonUtil for skeleton utils and leave it in the psi.impl

[python] (IJPL-205889) (BAZEL-2462) don't call getOrCreateAdditionalData for non-python sdks

+ add requirePythonSdk() verification for the Sdk extension functions, these methods are not designed to be called for non-python sdks and now will throw IllegalArgumentException

also corrects dependency tree:
+ move PythonSdkUtil to the python.sdk module, remove dependency on psi.impl
+ create PySkeletonUtil for skeleton utils and leave it in the psi.impl

GitOrigin-RevId: 20d958c5e15cc4e05545b2e61b126b5e015696ed
2025-10-10 18:17:28 +00:00

38 lines
1.3 KiB
Python

### auto-generated section `build intellij.python.ml.features` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
resourcegroup(
name = "ml-features_resources",
srcs = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "ml-features",
module_name = "intellij.python.ml.features",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
resources = [":ml-features_resources"],
deps = [
"@lib//:kotlin-stdlib",
"//platform/core-api:core",
"//platform/editor-ui-api:editor-ui",
"//platform/analysis-api:analysis",
"//platform/indexing-api:indexing",
"//platform/statistics",
"//platform/projectModel-api:projectModel",
"//platform/ml-logs",
"//python/python-psi-impl:psi-impl",
"//platform/platform-api:ide",
"//platform/platform-impl:ide-impl",
"//python:python-community-impl",
"//python/python-sdk:sdk",
"//platform/util/concurrency",
"//platform/core-ui",
"//platform/platform-impl/codeinsight-inline:ide-codeinsight-inline",
"@lib//:python-ml-features-jetbrains-ml-models-python-imports-ranking-model",
"@lib//:jetbrains-mlapi-catboost",
"@lib//:jetbrains-mlapi-catboost-shadow-need-slf4j",
]
)
### auto-generated section `build intellij.python.ml.features` end