File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ END_UNRELEASED_TEMPLATE
72
72
73
73
{#v0-0-0-fixed}
74
74
### Fixed
75
+ * (rules) The ` PyInfo ` constructor was setting the wrong value for
76
+ ` has_py3_only_sources ` - this is now fixed.
75
77
* (bootstrap) The stage1 bootstrap script now correctly handles nested ` RUNFILES_DIR `
76
78
environments, fixing issues where a ` py_binary ` calls another ` py_binary `
77
79
([ #3187 ] ( https://github.com/bazel-contrib/rules_python/issues/3187 ) ).
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def _PyInfo_init(
146
146
"direct_pyc_files" : direct_pyc_files ,
147
147
"direct_pyi_files" : direct_pyi_files ,
148
148
"has_py2_only_sources" : has_py2_only_sources ,
149
- "has_py3_only_sources" : has_py2_only_sources ,
149
+ "has_py3_only_sources" : has_py3_only_sources ,
150
150
"imports" : imports ,
151
151
"transitive_implicit_pyc_files" : transitive_implicit_pyc_files ,
152
152
"transitive_implicit_pyc_source_files" : transitive_implicit_pyc_source_files ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def _provide_py_info_impl(ctx):
35
35
if ctx .attr .has_py2_only_sources != - 1 :
36
36
kwargs ["has_py2_only_sources" ] = bool (ctx .attr .has_py2_only_sources )
37
37
if ctx .attr .has_py3_only_sources != - 1 :
38
- kwargs ["has_py2_only_sources " ] = bool (ctx .attr .has_py2_only_sources )
38
+ kwargs ["has_py3_only_sources " ] = bool (ctx .attr .has_py3_only_sources )
39
39
40
40
providers = []
41
41
providers .append (PyInfo (** kwargs ))
You can’t perform that action at this time.
0 commit comments