Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ END_UNRELEASED_TEMPLATE

{#v0-0-0-fixed}
### Fixed
* (rules) The `PyInfo` constructor was setting the wrong value for
`has_py3_only_sources` - this is now fixed.
* (bootstrap) The stage1 bootstrap script now correctly handles nested `RUNFILES_DIR`
environments, fixing issues where a `py_binary` calls another `py_binary`
([#3187](https://github.com/bazel-contrib/rules_python/issues/3187)).
Expand Down
2 changes: 1 addition & 1 deletion python/private/py_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _PyInfo_init(
"direct_pyc_files": direct_pyc_files,
"direct_pyi_files": direct_pyi_files,
"has_py2_only_sources": has_py2_only_sources,
"has_py3_only_sources": has_py2_only_sources,
"has_py3_only_sources": has_py3_only_sources,
"imports": imports,
"transitive_implicit_pyc_files": transitive_implicit_pyc_files,
"transitive_implicit_pyc_source_files": transitive_implicit_pyc_source_files,
Expand Down
2 changes: 1 addition & 1 deletion tests/base_rules/py_info/py_info_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _provide_py_info_impl(ctx):
if ctx.attr.has_py2_only_sources != -1:
kwargs["has_py2_only_sources"] = bool(ctx.attr.has_py2_only_sources)
if ctx.attr.has_py3_only_sources != -1:
kwargs["has_py2_only_sources"] = bool(ctx.attr.has_py2_only_sources)
kwargs["has_py3_only_sources"] = bool(ctx.attr.has_py3_only_sources)

providers = []
providers.append(PyInfo(**kwargs))
Expand Down