Files
openide/python/services/system-python/BUILD.bazel
Ilya.Kazakevich cea3e7d9c0 Python: make python with language level independent from python binary to support conda and other python types.
GitOrigin-RevId: 2752eed732ab6d3e45da38714106700ba2014bd8
2025-06-07 22:05:56 +00:00

87 lines
2.9 KiB
Python

### auto-generated section `build intellij.python.community.services.systemPython` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources", "jvm_test")
jvm_resources(
name = "system-python_resources",
files = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_resources(
name = "system-python_test_resources",
files = glob(["testResources/**/*"]),
strip_prefix = "testResources"
)
jvm_library(
name = "system-python",
module_name = "intellij.python.community.services.systemPython",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True),
deps = [
"@lib//:kotlin-stdlib",
"//python/python-sdk:sdk",
"//python/openapi:community",
"@lib//:jetbrains-annotations",
"//platform/eel-provider",
"@lib//:kotlinx-coroutines-core",
"//platform/extensions",
"//platform/core-api:core",
"//platform/projectModel-api:projectModel",
"//python/services/shared",
"//python/services/internal-impl:python-community-services-internal-impl",
"//platform/util",
"//python/installer",
"//python/python-venv:community-impl-venv",
],
exports = ["//python/services/shared"],
runtime_deps = [":system-python_resources"]
)
jvm_library(
name = "system-python_test_lib",
visibility = ["//visibility:public"],
srcs = glob(["tests/**/*.kt", "tests/**/*.java"], allow_empty = True),
associates = [":system-python"],
deps = [
"@lib//:kotlin-stdlib",
"//python/python-sdk:sdk",
"//python/python-sdk:sdk_test_lib",
"//python/openapi:community",
"//python/openapi:community_test_lib",
"@lib//:jetbrains-annotations",
"//platform/eel-provider",
"@lib//:kotlinx-coroutines-core",
"//platform/extensions",
"//platform/core-api:core",
"//platform/testFramework/junit5",
"//platform/testFramework/junit5:junit5_test_lib",
"@lib//:junit5",
"//platform/projectModel-api:projectModel",
"//python/testFramework",
"@lib//:hamcrest",
"//python/services/shared",
"//python/services/internal-impl:python-community-services-internal-impl",
"//python/services/internal-impl:python-community-services-internal-impl_test_lib",
"//platform/util",
"//python/junit5Tests-framework:community-junit5Tests-framework_test_lib",
"//python/installer",
"//python/python-venv:community-impl-venv",
"//python/python-venv:community-impl-venv_test_lib",
"//python/setup-test-environment:community-testFramework-testEnv",
"@lib//:io-mockk",
"@lib//:io-mockk-jvm",
"//platform/testFramework",
"//platform/testFramework:testFramework_test_lib",
],
runtime_deps = [
":system-python_resources",
":system-python_test_resources",
]
)
jvm_test(
name = "system-python_test",
runtime_deps = [":system-python_test_lib"]
)
### auto-generated section `build intellij.python.community.services.systemPython` end