mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
After this refactoring we how have `comparators.kt` with sorting logic that is used both by `SystemPython` and `PythonSelectableInterpreter` (ViewModel thing for V2). Tests are also added. GitOrigin-RevId: 9d04405829f31874d15cb893d9261c7997cb2dd5
51 lines
1.6 KiB
Python
51 lines
1.6 KiB
Python
### auto-generated section `build intellij.python.community.services.shared` start
|
|
load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources", "jvm_test")
|
|
|
|
jvm_resources(
|
|
name = "shared_resources",
|
|
files = glob(["resources/**/*"]),
|
|
strip_prefix = "resources"
|
|
)
|
|
|
|
jvm_library(
|
|
name = "shared",
|
|
module_name = "intellij.python.community.services.shared",
|
|
visibility = ["//visibility:public"],
|
|
srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True),
|
|
deps = [
|
|
"@lib//:kotlin-stdlib",
|
|
"//python/openapi:community",
|
|
"@lib//:jetbrains-annotations",
|
|
"//platform/eel-provider",
|
|
"//python/python-exec-service/execService.python",
|
|
],
|
|
runtime_deps = [":shared_resources"]
|
|
)
|
|
|
|
jvm_library(
|
|
name = "shared_test_lib",
|
|
visibility = ["//visibility:public"],
|
|
srcs = glob(["tests/**/*.kt", "tests/**/*.java"], allow_empty = True),
|
|
associates = [":shared"],
|
|
deps = [
|
|
"@lib//:kotlin-stdlib",
|
|
"//python/openapi:community",
|
|
"//python/openapi:community_test_lib",
|
|
"@lib//:jetbrains-annotations",
|
|
"//platform/eel-provider",
|
|
"@lib//:junit5",
|
|
"@lib//:kotlinx-coroutines-core",
|
|
"//platform/testFramework/junit5",
|
|
"//platform/testFramework/junit5:junit5_test_lib",
|
|
"@lib//:hamcrest",
|
|
"//python/python-exec-service/execService.python",
|
|
"//python/python-exec-service/execService.python:execService.python_test_lib",
|
|
],
|
|
runtime_deps = [":shared_resources"]
|
|
)
|
|
|
|
jvm_test(
|
|
name = "shared_test",
|
|
runtime_deps = [":shared_test_lib"]
|
|
)
|
|
### auto-generated section `build intellij.python.community.services.shared` end |