Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions distro/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ py_test(
],
env_inherit = ["PATH"],
imports = [".."],
legacy_create_init = 0,
local = True,
python_version = "PY3",
tags = [
Expand Down
1 change: 1 addition & 0 deletions doc_build/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ stardoc(
py_binary(
name = "merge",
srcs = ["merge.py"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:private"],
Expand Down
2 changes: 2 additions & 0 deletions pkg/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ py_binary(
"make_rpm.py",
],
imports = [".."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
target_compatible_with = select({
Expand Down Expand Up @@ -110,6 +111,7 @@ py_binary(
"__init__.py",
"filter_directory.py",
],
legacy_create_init = 0,
python_version = "PY3",
visibility = ["//visibility:public"],
)
Expand Down
1 change: 1 addition & 0 deletions pkg/install.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def pkg_install(name, srcs, destdir = None, destdir_flag = None, **kwargs):
srcs = [":" + name + "_install_script"],
main = name + "_install_script.py",
deps = [Label("//pkg/private:manifest"), Label("@rules_python//python/runfiles")],
legacy_create_init = 0,
srcs_version = "PY3",
python_version = "PY3",
**kwargs
Expand Down
1 change: 1 addition & 0 deletions pkg/private/deb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ py_binary(
"make_deb.py",
],
imports = ["../../.."],
legacy_create_init = 0,
python_version = "PY3",
visibility = ["//visibility:public"],
deps = [
Expand Down
1 change: 1 addition & 0 deletions pkg/private/tar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ py_binary(
"build_tar.py",
],
imports = ["../../.."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:public"],
Expand Down
1 change: 1 addition & 0 deletions pkg/private/zip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ py_binary(
"build_zip.py",
],
imports = ["../../.."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:public"],
Expand Down
3 changes: 3 additions & 0 deletions pkg/releasing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ py_binary(
"print_rel_notes.py",
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
deps = [
":release_utils",
Expand All @@ -54,6 +55,7 @@ py_binary(
py_test(
name = "release_tools_test",
srcs = ["release_tools_test.py"],
legacy_create_init = 0,
python_version = "PY3",
deps = [
":release_utils",
Expand All @@ -67,6 +69,7 @@ py_binary(
"__init__.py",
"git_changelog_private.py",
],
legacy_create_init = 0,
srcs_version = "PY3",
# TODO(https://github.com/bazelbuild/bazel/issues/7377): Make this private.
visibility = ["//visibility:public"],
Expand Down
1 change: 1 addition & 0 deletions pkg/rpm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ py_binary(
"__init__.py",
"augment_rpm_files_install.py",
],
legacy_create_init = 0,
visibility = ["//visibility:public"],
)
4 changes: 4 additions & 0 deletions tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ py_test(
"//tests:testdata/empty.ar",
],
imports = [".."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
deps = [
Expand All @@ -105,6 +106,7 @@ py_test(
name = "path_test",
srcs = ["path_test.py"],
data = ["//pkg:path.bzl"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
)
Expand Down Expand Up @@ -135,6 +137,7 @@ py_test(
name = "helpers_test",
srcs = ["helpers_test.py"],
imports = [".."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
deps = [
Expand Down Expand Up @@ -214,6 +217,7 @@ py_test(
"stamped_tar.tar",
"stamped_zip.zip",
],
legacy_create_init = 0,
python_version = "PY3",
deps = [
"@rules_python//python/runfiles",
Expand Down
3 changes: 3 additions & 0 deletions tests/deb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ py_test(
":test_deb_installed_size_file",
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
deps = [
"//pkg/private:archive",
Expand All @@ -144,6 +145,7 @@ py_test(
"control_field_test.py",
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
deps = [
"//pkg/private/deb:make_deb_lib",
Expand Down Expand Up @@ -202,6 +204,7 @@ py_test(
":deb_with_package_variables",
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
deps = [
"//pkg/private:archive",
Expand Down
1 change: 1 addition & 0 deletions tests/install/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ py_test(
"@mappings_test_external_repo//pkg:install_cross_repo",
],
imports = ["../.."],
legacy_create_init = 0,
main = "test.py",
tags = [
# TODO(nacl): investigate this. See also
Expand Down
1 change: 1 addition & 0 deletions tests/mappings/filter_directory/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ directory(
py_test(
name = "negative_tests",
srcs = ["test_filter_directory.py"],
legacy_create_init = 0,
main = "test_filter_directory.py",
deps = [
"//pkg:filter_directory_lib",
Expand Down
2 changes: 2 additions & 0 deletions tests/rpm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ py_library(
py_test(
name = "make_rpm_test",
srcs = ["make_rpm_test.py"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
deps = [
Expand All @@ -672,6 +673,7 @@ py_test(
name = "pkg_rpm_basic_test",
srcs = ["pkg_rpm_basic_test.py"],
data = [":pkg_rpm_basic_test_data"],
legacy_create_init = 0,
python_version = "PY3",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down
2 changes: 2 additions & 0 deletions tests/rpm/source_date_epoch/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ py_test(
srcs = ["rpm_contents_vs_manifest_test.py"],
data = [":rpm_sde_insource_data"],
env = {"TEST_RPM": "rpm_sde_insource-1.1.1-2222.noarch.rpm"},
legacy_create_init = 0,
main = "rpm_contents_vs_manifest_test.py",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down Expand Up @@ -96,6 +97,7 @@ py_test(
srcs = ["rpm_contents_vs_manifest_test.py"],
data = [":rpm_sde_fromfile_data"],
env = {"TEST_RPM": "rpm_sde_fromfile-1.1.1-2222.noarch.rpm"},
legacy_create_init = 0,
main = "rpm_contents_vs_manifest_test.py",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down
3 changes: 3 additions & 0 deletions tests/rpm/tree_artifacts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ py_test(
srcs = ["rpm_contents_vs_manifest_test.py"],
data = [":layer_with_files_test_data"],
env = {"TEST_RPM": "test_dirs_rpm-1.1.1-2222.noarch.rpm"},
legacy_create_init = 0,
main = "rpm_contents_vs_manifest_test.py",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down Expand Up @@ -155,6 +156,7 @@ py_test(
srcs = ["rpm_contents_vs_manifest_test.py"],
data = [":layer_with_files_reversed_test_data"],
env = {"TEST_RPM": "test_dirs_rpm_reversed-1.1.1-2222.noarch.rpm"},
legacy_create_init = 0,
main = "rpm_contents_vs_manifest_test.py",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down Expand Up @@ -207,6 +209,7 @@ py_test(
srcs = ["rpm_treeartifact_ops_test.py"],
data = [":treeartifact_ops_rpm_test_data"],
env = {"TEST_RPM": "treeartifact_ops_rpm-1.1.1-2222.noarch.rpm"},
legacy_create_init = 0,
main = "rpm_treeartifact_ops_test.py",
tags = [
"no_windows", # Windows doesn't have rpm(8) or rpmbuild(8)
Expand Down
4 changes: 4 additions & 0 deletions tests/tar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ py_test(
"//tests:testdata/test_tar_package_dir_file.txt",
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
deps = [
Expand Down Expand Up @@ -82,6 +83,7 @@ directory(
py_binary(
name = "compressor",
srcs = ["compressor.py"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
)
Expand Down Expand Up @@ -524,6 +526,7 @@ py_test(
for compression in SUPPORTED_TAR_COMPRESSIONS
],
imports = ["../.."],
legacy_create_init = 0,
python_version = "PY3",
deps = [
"//pkg/private/tar:tar_writer",
Expand Down Expand Up @@ -607,6 +610,7 @@ py_test(
":test-tar-compression-from-extension-targz",
":test-tar-compression-from-extension-tgz",
],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
deps = [
Expand Down
2 changes: 2 additions & 0 deletions tests/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports_files(["defs.bzl"])
py_binary(
name = "md5",
srcs = ["md5.py"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:public"],
Expand All @@ -31,6 +32,7 @@ py_binary(
py_binary(
name = "create_directory_with_contents",
srcs = ["create_directory_with_contents.py"],
legacy_create_init = 0,
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//visibility:public"],
Expand Down
4 changes: 4 additions & 0 deletions tests/zip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ py_test(
":test_zip_timestamp.zip",
":test_zip_tree.zip",
],
legacy_create_init = 0,
python_version = "PY3",
deps = [
":zip_test_lib",
Expand All @@ -321,6 +322,7 @@ py_test(
data = [
":test_zip_symlink",
],
legacy_create_init = 0,
python_version = "PY3",
tags = ["REQUIRES_BAZEL_8"],
deps = [
Expand All @@ -345,6 +347,7 @@ py_test(
":test_zip_package_dir1.zip",
":test_zip_package_dir2.zip",
],
legacy_create_init = 0,
python_version = "PY3",
deps = [
":zip_test_lib",
Expand All @@ -364,6 +367,7 @@ py_test(
data = [
":unicode_names",
],
legacy_create_init = 0,
python_version = "PY3",
deps = [
":zip_test_lib",
Expand Down
Loading