Files
openide/python/huggingFace/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

40 lines
1.4 KiB
Python

### auto-generated section `build intellij.python.community.impl.huggingFace` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
resourcegroup(
name = "huggingFace_resources",
srcs = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "huggingFace",
module_name = "intellij.python.community.impl.huggingFace",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form", "gen/**/*.kt", "gen/**/*.java"], allow_empty = True),
resources = [":huggingFace_resources"],
deps = [
"@lib//:kotlin-stdlib",
"@lib//:gradle",
"//libraries/jackson/jackson",
"//libraries/jackson/databind",
"//libraries/jackson/module-kotlin:libraries-jackson-module-kotlin",
"//platform/analysis-api:analysis",
"//platform/core-api:core",
"//platform/core-impl",
"//platform/util",
"//platform/util:util-ui",
"//platform/util/coroutines",
"//platform/lang-impl",
"//platform/projectModel-api:projectModel",
"//python/python-psi-api:psi",
"//python:python-community-impl",
"//platform/remote-driver/test-sdk:driver-sdk",
"//platform/platform-api:ide",
"//platform/markdown-utils",
"//platform/statistics",
"//json/backend",
"//python/python-sdk:sdk",
]
)
### auto-generated section `build intellij.python.community.impl.huggingFace` end