Skip to content

Commit d2ce174

Browse files
authored
fix: allow pyi files to be included in the output of py_gapic_assembly_pkg (#2036)
1 parent bb4a9be commit d2ce174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gapic-generator/rules_python_gapic/py_gapic_pkg.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _py_gapic_src_pkg_impl(ctx):
2525
elif f.extension in ("srcjar", "jar", "zip"):
2626
srcjar_srcs.append(f)
2727
# Exclude source files and files for external packages
28-
elif f.extension in ("py") and not f.is_source and 'external' not in f.path:
28+
elif f.extension in ("py", "pyi") and not f.is_source and 'external' not in f.path:
2929
py_srcs.append(f)
3030

3131
paths = construct_package_dir_paths(ctx.attr.package_dir, ctx.outputs.pkg, ctx.label.name)

0 commit comments

Comments
 (0)