Skip to content

Commit

Permalink
fix: allow pyi files to be included in the output of py_gapic_assembl…
Browse files Browse the repository at this point in the history
…y_pkg (#2036)
  • Loading branch information
parthea authored Jul 18, 2024
1 parent ad9f6cc commit 8c517a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules_python_gapic/py_gapic_pkg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _py_gapic_src_pkg_impl(ctx):
elif f.extension in ("srcjar", "jar", "zip"):
srcjar_srcs.append(f)
# Exclude source files and files for external packages
elif f.extension in ("py") and not f.is_source and 'external' not in f.path:
elif f.extension in ("py", "pyi") and not f.is_source and 'external' not in f.path:
py_srcs.append(f)

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

0 comments on commit 8c517a0

Please sign in to comment.