Skip to content

Commit 4d3d404

Browse files
authored
Merge branch 'main' into windows_arm64_toolchains
2 parents 619ba10 + 47c681b commit 4d3d404

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ END_UNRELEASED_TEMPLATE
101101
### Removed
102102
* Nothing removed.
103103

104+
{#1-5-1}
105+
## [1.5.1] - 2025-07-06
106+
107+
[1.5.1]: https://github.com/bazel-contrib/rules_python/releases/tag/1.5.1
108+
109+
{#v1-5-1-fixed}
110+
### Fixed
111+
112+
* (pypi) Namespace packages work by default (pkgutil shims are generated
113+
by default again)
114+
([#3038](https://github.com/bazel-contrib/rules_python/issues/3038)).
115+
104116
{#1-5-0}
105117
## [1.5.0] - 2025-06-11
106118

python/private/pypi/whl_library_targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def whl_library_targets(
331331
allow_empty = True,
332332
)
333333

334-
if enable_implicit_namespace_pkgs:
334+
if not enable_implicit_namespace_pkgs:
335335
srcs = srcs + getattr(native, "select", select)({
336336
Label("//python/config_settings:is_venvs_site_packages"): [],
337337
"//conditions:default": create_inits(

tests/pypi/whl_library_targets/whl_library_targets_tests.bzl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,18 @@
1616

1717
load("@rules_testing//lib:test_suite.bzl", "test_suite")
1818
load("//python/private:glob_excludes.bzl", "glob_excludes") # buildifier: disable=bzl-visibility
19-
load("//python/private/pypi:whl_library_targets.bzl", "whl_library_targets", "whl_library_targets_from_requires") # buildifier: disable=bzl-visibility
19+
load("//python/private/pypi:whl_library_targets.bzl", _whl_library_targets = "whl_library_targets", _whl_library_targets_from_requires = "whl_library_targets_from_requires") # buildifier: disable=bzl-visibility
2020

2121
_tests = []
2222

23+
def whl_library_targets(**kwargs):
24+
# Let's skip testing this for now
25+
_whl_library_targets(enable_implicit_namespace_pkgs = True, **kwargs)
26+
27+
def whl_library_targets_from_requires(**kwargs):
28+
# Let's skip testing this for now
29+
_whl_library_targets_from_requires(enable_implicit_namespace_pkgs = True, **kwargs)
30+
2331
def _test_filegroups(env):
2432
calls = []
2533

0 commit comments

Comments
 (0)