Skip to content

Commit cb1f738

Browse files
authored
Merge branch 'main' into rv-pip
2 parents f03ff72 + 587f6e9 commit cb1f738

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
extlinks = {
124124
"gh-issue": (f"https://github.com/bazel-contrib/rules_python/issues/%s", "#%s issue"),
125125
"gh-path": (f"https://github.com/bazel-contrib/rules_python/tree/main/%s", "%s"),
126-
"gh-pr": (f"https://github.com/bazel-contrib/rules_python/pulls/%s", "#%s PR"),
126+
"gh-pr": (f"https://github.com/bazel-contrib/rules_python/pull/%s", "#%s PR"),
127127
}
128128

129129
# --- MyST configuration

tests/venv_site_packages_libs/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ py_reconfig_test(
2828
venvs_site_packages = "yes",
2929
deps = [
3030
":closer_lib",
31+
"//tests/venv_site_packages_libs/nested_with_pth",
3132
"//tests/venv_site_packages_libs/nspkg_alpha",
3233
"//tests/venv_site_packages_libs/nspkg_beta",
3334
"//tests/venv_site_packages_libs/pkgutil_top",

tests/venv_site_packages_libs/bin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def test_imported_from_venv(self):
4040
self.assert_imported_from_venv("nspkg.subnspkg.delta")
4141
self.assert_imported_from_venv("single_file")
4242
self.assert_imported_from_venv("simple")
43+
m = self.assert_imported_from_venv("nested_with_pth")
44+
self.assertEqual(m.WHOAMI, "nested_with_pth")
4345

4446
def test_data_is_included(self):
4547
self.assert_imported_from_venv("simple")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
load("//python:py_library.bzl", "py_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
py_library(
6+
name = "nested_with_pth",
7+
srcs = glob(["site-packages/**/*.py"]),
8+
data = glob(["site-packages/*.pth"]),
9+
experimental_venvs_site_packages = "//python/config_settings:venvs_site_packages",
10+
imports = [package_name() + "/site-packages"],
11+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nested_sdk
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
WHOAMI = "nested_with_pth"

0 commit comments

Comments
 (0)