aboutsummaryrefslogtreecommitdiff
path: root/gazelle/python/testdata/first_party_dependencies/one/bar
diff options
context:
space:
mode:
Diffstat (limited to 'gazelle/python/testdata/first_party_dependencies/one/bar')
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.in10
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.out11
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/__init__.py19
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.in10
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.out11
-rw-r--r--gazelle/python/testdata/first_party_dependencies/one/bar/baz/__init__.py19
6 files changed, 80 insertions, 0 deletions
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.in b/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.in
new file mode 100644
index 0000000..7fe1f49
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.in
@@ -0,0 +1,10 @@
+load("@rules_python//python:defs.bzl", "py_library")
+
+py_library(
+ name = "bar",
+ srcs = ["__init__.py"],
+ visibility = [
+ "//one:__subpackages__",
+ "//three:__subpackages__",
+ ],
+)
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.out b/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.out
new file mode 100644
index 0000000..470bf82
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/BUILD.out
@@ -0,0 +1,11 @@
+load("@rules_python//python:defs.bzl", "py_library")
+
+py_library(
+ name = "bar",
+ srcs = ["__init__.py"],
+ imports = [".."],
+ visibility = [
+ "//one:__subpackages__",
+ "//three:__subpackages__",
+ ],
+)
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/__init__.py b/gazelle/python/testdata/first_party_dependencies/one/bar/__init__.py
new file mode 100644
index 0000000..d4b5fb8
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/__init__.py
@@ -0,0 +1,19 @@
+# Copyright 2023 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+
+
+def bar():
+ return os.path.abspath(__file__)
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.in b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.in
new file mode 100644
index 0000000..886a89c
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.in
@@ -0,0 +1,10 @@
+load("@rules_python//python:defs.bzl", "py_library")
+
+py_library(
+ name = "baz",
+ srcs = ["__init__.py"],
+ visibility = [
+ "//one:__subpackages__",
+ "//three:__subpackages__",
+ ],
+)
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.out b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.out
new file mode 100644
index 0000000..a017245
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/BUILD.out
@@ -0,0 +1,11 @@
+load("@rules_python//python:defs.bzl", "py_library")
+
+py_library(
+ name = "baz",
+ srcs = ["__init__.py"],
+ imports = ["../.."],
+ visibility = [
+ "//one:__subpackages__",
+ "//three:__subpackages__",
+ ],
+)
diff --git a/gazelle/python/testdata/first_party_dependencies/one/bar/baz/__init__.py b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/__init__.py
new file mode 100644
index 0000000..5be74a7
--- /dev/null
+++ b/gazelle/python/testdata/first_party_dependencies/one/bar/baz/__init__.py
@@ -0,0 +1,19 @@
+# Copyright 2023 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+
+
+def baz():
+ return os.path.abspath(__file__)