Skip to content

Commit 415e893

Browse files
authored
Merge branch 'main' into exp/pypi-simplify
2 parents 4890805 + 47c681b commit 415e893

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
@@ -98,6 +98,18 @@ END_UNRELEASED_TEMPLATE
9898
### Removed
9999
* Nothing removed.
100100

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

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)