Create python source file distribution to use for python source wheel.
PiperOrigin-RevId: 495917777
diff --git a/python/BUILD.bazel b/python/BUILD.bazel
index cc0772c..31ccd4b 100644
--- a/python/BUILD.bazel
+++ b/python/BUILD.bazel
@@ -426,6 +426,22 @@
################################################################################
pkg_files(
+ name = "python_source_files",
+ srcs = glob(
+ [
+ "google/protobuf/**/*.py",
+ ],
+ exclude = [
+ "google/protobuf/internal/*_test.py",
+ "google/protobuf/internal/test_util.py",
+ "google/protobuf/internal/import_test_package/__init__.py",
+ ],
+ ),
+ visibility = ["@upb//:__subpackages__"],
+ strip_prefix = "",
+)
+
+pkg_files(
name = "dist_files",
srcs = glob([
"google/**/*.proto",