Skip to content

Commit

Permalink
py/tools: Namespace repo packages to prevent conflict (#29787)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>

Signed-off-by: phlax <phlax@users.noreply.github.com>
  • Loading branch information
phlax committed Oct 3, 2023
1 parent 770dc85 commit 8e87aa5
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 225 deletions.
7 changes: 7 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
load("//bazel:envoy_build_system.bzl", "envoy_package")
load("//tools/base:envoy_python.bzl", "envoy_py_namespace")

licenses(["notice"]) # Apache 2

envoy_package()

envoy_py_namespace()

exports_files([
"VERSION.txt",
"API_VERSION.txt",
Expand Down
6 changes: 6 additions & 0 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ envoy_entry_point(
name = "get_project_json",
pkg = "envoy.base.utils",
script = "envoy.project_data",
init_data = [":__init__.py"],
)
genrule(
Expand All @@ -132,6 +133,7 @@ envoy_entry_point(
],
pkg = "envoy.base.utils",
script = "envoy.project",
init_data = [":__init__.py"],
)
envoy_entry_point(
Expand All @@ -142,6 +144,7 @@ envoy_entry_point(
],
pkg = "envoy.base.utils",
script = "envoy.project",
init_data = [":__init__.py"],
)
envoy_entry_point(
Expand All @@ -152,6 +155,7 @@ envoy_entry_point(
],
pkg = "envoy.base.utils",
script = "envoy.project",
init_data = [":__init__.py"],
)
envoy_entry_point(
Expand All @@ -162,6 +166,7 @@ envoy_entry_point(
],
pkg = "envoy.base.utils",
script = "envoy.project",
init_data = [":__init__.py"],
)
envoy_entry_point(
Expand All @@ -172,6 +177,7 @@ envoy_entry_point(
],
pkg = "envoy.base.utils",
script = "envoy.project",
init_data = [":__init__.py"],
)
''')
Expand Down
4 changes: 3 additions & 1 deletion distribution/dockerhub/BUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
load("//bazel:envoy_build_system.bzl", "envoy_package")
load("//tools/base:envoy_python.bzl", "envoy_gencontent")
load("//tools/base:envoy_python.bzl", "envoy_gencontent", "envoy_py_namespace")

licenses(["notice"]) # Apache 2

envoy_package()

envoy_py_namespace()

envoy_gencontent(
name = "readme",
srcs = ["@envoy_repo//:project"],
Expand Down
185 changes: 0 additions & 185 deletions mobile/BUILD

This file was deleted.

3 changes: 3 additions & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ load(
"envoy_package",
"envoy_py_test_binary",
)
load("//tools/base:envoy_python.bzl", "envoy_py_namespace")

licenses(["notice"]) # Apache 2

envoy_package()

envoy_py_namespace()

exports_files([
"gen_git_sha.sh",
"check_repositories.sh",
Expand Down
Loading

0 comments on commit 8e87aa5

Please sign in to comment.