Skip to content

Commit

Permalink
fix: Add imports to allow experimental_python_import_all_repositories (
Browse files Browse the repository at this point in the history
  • Loading branch information
ewianda authored Apr 15, 2024
1 parent c1e1e33 commit dcde272
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pycross/private/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ py_library(
srcs = [
"args.py",
],
imports = ["../../.."],
)

py_binary(
name = "bzl_lock_generator",
srcs = ["bzl_lock_generator.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -24,11 +26,13 @@ py_binary(
py_binary(
name = "extract_lock_repos",
srcs = ["extract_lock_repos.py"],
imports = ["../../.."],
)

py_binary(
name = "raw_lock_resolver",
srcs = ["raw_lock_resolver.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -42,6 +46,7 @@ py_binary(
py_binary(
name = "resolved_lock_renderer",
srcs = ["resolved_lock_renderer.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -59,6 +64,7 @@ py_library(
srcs = [
"target_environment.py",
],
imports = ["../../.."],
deps = [
"@rules_pycross_internal//deps:pip",
],
Expand All @@ -67,6 +73,7 @@ py_library(
py_library(
name = "lock_model",
srcs = ["lock_model.py"],
imports = ["../../.."],
deps = [
":target_environment",
"@rules_pycross_internal//deps:dacite",
Expand All @@ -79,6 +86,7 @@ py_library(
srcs = [
"namespace_pkgs.py",
],
imports = ["../../.."],
)

py_test(
Expand All @@ -96,6 +104,7 @@ py_test(
py_binary(
name = "pdm_translator",
srcs = ["pdm_translator.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -107,6 +116,7 @@ py_binary(
py_binary(
name = "poetry_translator",
srcs = ["poetry_translator.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -119,6 +129,7 @@ py_binary(
py_binary(
name = "target_environment_generator",
srcs = ["target_environment_generator.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -132,6 +143,7 @@ py_binary(
py_binary(
name = "wheel_builder",
srcs = ["wheel_builder.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand All @@ -146,6 +158,7 @@ py_binary(
py_binary(
name = "wheel_installer",
srcs = ["wheel_installer.py"],
imports = ["../../.."],
visibility = ["//visibility:public"],
deps = [
":args",
Expand Down
2 changes: 2 additions & 0 deletions pycross/private/tools/crossenv/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ py_library(
data = [
"//pycross/private/tools/crossenv/scripts",
],
imports = ["../../../.."],
)

py_binary(
Expand All @@ -20,6 +21,7 @@ py_binary(
"__init__.py",
"__main__.py",
],
imports = ["../../../.."],
main = "__main__.py",
deps = [":crossenv_lib"],
)

0 comments on commit dcde272

Please sign in to comment.