Skip to content

[Python] Exclude test files in grpcio_tools wheels#40999

Closed
sreenithi wants to merge 1 commit intogrpc:masterfrom
sreenithi:fix_grpc_tools_wheels_2
Closed

[Python] Exclude test files in grpcio_tools wheels#40999
sreenithi wants to merge 1 commit intogrpc:masterfrom
sreenithi:fix_grpc_tools_wheels_2

Conversation

@sreenithi
Copy link
Contributor

@sreenithi sreenithi commented Nov 3, 2025

This PR removes some additional files that were included in the grpcio_tools package wheels after migrating to pyproject.toml build system in #40833

@sreenithi
Copy link
Contributor Author

sreenithi commented Nov 3, 2025

Posting the diffs comparing the package's artifacts(wheel, metadata and tar.gz) built from master (before submission of #40833) and this pr below:

# diff of unzipped wheel file (in linux)
$ diff -bur master/grpc_tools/ pr/grpc_tools/
diff '--color=auto' -bur master/grpc_tools/command.py pr/grpc_tools/command.py
--- master/grpc_tools/command.py        2025-10-31 12:12:08.000000000 +0000
+++ pr/grpc_tools/command.py    2025-11-03 07:57:24.000000000 +0000
@@ -41,25 +41,24 @@
 
 
 def build_package_protos(package_root, strict_mode=False):
+
     proto_files = []
-    inclusion_root = os.path.abspath(package_root)
-    for root, _, files in os.walk(inclusion_root):
+
+    for root, _, files in os.walk(package_root):
         for filename in files:
             if filename.endswith(".proto"):
-                proto_files.append(
-                    os.path.abspath(os.path.join(root, filename))
-                )
+                proto_files.append(os.path.join(root, filename))
 
     well_known_protos_include = _get_resource_file_name("grpc_tools", "_proto")
 
     for proto_file in proto_files:
         command = [
             "grpc_tools.protoc",
-            "--proto_path={}".format(inclusion_root),
+            "--proto_path={}".format(package_root),
             "--proto_path={}".format(well_known_protos_include),
-            "--python_out={}".format(inclusion_root),
-            "--pyi_out={}".format(inclusion_root),
-            "--grpc_python_out={}".format(inclusion_root),
+            "--python_out={}".format(package_root),
+            "--pyi_out={}".format(package_root),
+            "--grpc_python_out={}".format(package_root),
         ] + [proto_file]
         if protoc.main(command) != 0:
             if strict_mode:
Binary files master/grpc_tools/_protoc_compiler.cpython-314-x86_64-linux-gnu.so and pr/grpc_tools/_protoc_compiler.cpython-314-x86_64-linux-gnu.so differ

# diff of metadata from the wheel file
$ diff -bur master/grpcio_tools-1.77.0.dev0.dist-info/ pr/grpcio_tools-1.77.0.dev0.dist-info/
diff '--color=auto' -bur master/grpcio_tools-1.77.0.dev0.dist-info/METADATA pr/grpcio_tools-1.77.0.dev0.dist-info/METADATA
--- master/grpcio_tools-1.77.0.dev0.dist-info/METADATA  2025-10-31 12:12:08.000000000 +0000
+++ pr/grpcio_tools-1.77.0.dev0.dist-info/METADATA      2025-11-03 07:57:24.000000000 +0000
@@ -2,32 +2,21 @@
 Name: grpcio-tools
 Version: 1.77.0.dev0
 Summary: Protobuf code generator for gRPC
-Home-page: https://grpc.io
-Author: The gRPC Authors
-Author-email: grpc-io@googlegroups.com
-License: Apache License 2.0
+Author-email: The gRPC Authors <grpc-io@googlegroups.com>
+License-Expression: Apache-2.0
+Project-URL: Homepage, https://grpc.io
 Project-URL: Source Code, https://github.com/grpc/grpc/tree/master/tools/distrib/python/grpcio_tools
 Project-URL: Bug Tracker, https://github.com/grpc/grpc/issues
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
-Classifier: License :: OSI Approved :: Apache Software License
 Requires-Python: >=3.9
 Description-Content-Type: text/x-rst
 Requires-Dist: protobuf<7.0.0,>=6.31.1
 Requires-Dist: grpcio>=1.77.0.dev0
 Requires-Dist: setuptools>=77.0.1
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: description-content-type
-Dynamic: home-page
-Dynamic: license
-Dynamic: project-url
 Dynamic: requires-dist
 Dynamic: requires-python
-Dynamic: summary
 
 gRPC Python Tools
 =================
diff '--color=auto' -bur master/grpcio_tools-1.77.0.dev0.dist-info/RECORD pr/grpcio_tools-1.77.0.dev0.dist-info/RECORD
--- master/grpcio_tools-1.77.0.dev0.dist-info/RECORD    2025-10-31 12:12:08.000000000 +0000
+++ pr/grpcio_tools-1.77.0.dev0.dist-info/RECORD        2025-11-03 07:57:24.000000000 +0000
@@ -1,6 +1,6 @@
 grpc_tools/__init__.py,sha256=SxD-ymrdM7hKoDGjCDjcA3TSaFadaSZ9kDtinr0Droo,577
-grpc_tools/_protoc_compiler.cpython-314-x86_64-linux-gnu.so,sha256=SjOYqWZuD4S6Yh5OdOH9IIHFqgdh-Fdj-pLSh2ghUzE,7658808
-grpc_tools/command.py,sha256=GUQkwWjFF6Pr84lrq2dDWTvwlxumfE0ykFOU1os5i1w,3136
+grpc_tools/_protoc_compiler.cpython-314-x86_64-linux-gnu.so,sha256=DkU48vBtDe44xEYQPWE9GxbX-FDF87kCLK08q1y6Im0,7658808
+grpc_tools/command.py,sha256=ctTkpH7couQHO-ZPtB3-wEfS6BHUUXwA9Q88SW4xX-s,3022
 grpc_tools/grpc_version.py,sha256=fe0ExdN73mjFyFEBeAD-QXwZgK2z0WYcO1KV_fXmohE,721
 grpc_tools/protoc.py,sha256=7guL4ZuNxxYJLP11RHWymXUm8v6HQ9hE8w3dYAkpb98,8043
 grpc_tools/python_version.py,sha256=Q5GPFKlWfl3dJwhnKI59vt8_CRq2SmGf-BBFZVVVwJc,822
@@ -16,8 +16,8 @@
 grpc_tools/_proto/google/protobuf/type.proto,sha256=4jDg5K64fJXp8casv8DHE9s_iAlPFJsVRxelHQIPdQs,6367
 grpc_tools/_proto/google/protobuf/wrappers.proto,sha256=aHjcdTTPmAXu5WNFzcOLXpyjneziRnEMZjxwB6Z_70k,5392
 grpc_tools/_proto/google/protobuf/compiler/plugin.proto,sha256=fjnlljCh8BGNcVv9D-NIHBYN4hRP9ZUsXj7SCizk-oI,8556
-grpcio_tools-1.77.0.dev0.dist-info/METADATA,sha256=Jn-9YmRZfA_Je0yzOdHFyXlibWsRDVPy6iKCfNiMSxM,5572
-grpcio_tools-1.77.0.dev0.dist-info/WHEEL,sha256=rQ6lWXsTLcGitzG4Wkb1JQz8Vjaxz57wzRkCa0vLoK4,151
+grpcio_tools-1.77.0.dev0.dist-info/METADATA,sha256=O6kY-b_c25zpwFCNbYp5Iy6eFz_aye3RPMAJy_1rrQE,5331
+grpcio_tools-1.77.0.dev0.dist-info/WHEEL,sha256=89M_z4WU4NdsrUE_fycOqZb9IBH4u1jBOWPYOzOuUsU,151
 grpcio_tools-1.77.0.dev0.dist-info/entry_points.txt,sha256=SUA-11aADRRasv7jBfguVtnoqPtQm3gf9vSaLuMhPZw,74
 grpcio_tools-1.77.0.dev0.dist-info/top_level.txt,sha256=87-PeMJ9gHMiRlUPAx2Yi7Bk14I34SOlTpgZsxhhz-c,11
 grpcio_tools-1.77.0.dev0.dist-info/RECORD,,
diff '--color=auto' -bur master/grpcio_tools-1.77.0.dev0.dist-info/WHEEL pr/grpcio_tools-1.77.0.dev0.dist-info/WHEEL
--- master/grpcio_tools-1.77.0.dev0.dist-info/WHEEL     2025-10-31 12:12:08.000000000 +0000
+++ pr/grpcio_tools-1.77.0.dev0.dist-info/WHEEL 2025-11-03 07:57:24.000000000 +0000
@@ -1,5 +1,5 @@
 Wheel-Version: 1.0
-Generator: setuptools (77.0.1)
+Generator: setuptools (80.9.0)
 Root-Is-Purelib: false
 Tag: cp314-cp314-manylinux_2_17_x86_64
 Tag: cp314-cp314-manylinux2014_x86_64


# diff of tar.gz file contents
$ diff -bur master_tar/grpcio_tools-1.77.0.dev0 pr_tar/grpcio_tools-1.77.0.dev0
diff '--color=auto' -bur master_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/PKG-INFO pr_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/PKG-INFO
--- master_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/PKG-INFO  2025-10-31 12:07:50.000000000 +0000
+++ pr_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/PKG-INFO      2025-11-03 07:37:53.000000000 +0000
@@ -2,32 +2,21 @@
 Name: grpcio-tools
 Version: 1.77.0.dev0
 Summary: Protobuf code generator for gRPC
-Home-page: https://grpc.io
-Author: The gRPC Authors
-Author-email: grpc-io@googlegroups.com
-License: Apache License 2.0
+Author-email: The gRPC Authors <grpc-io@googlegroups.com>
+License-Expression: Apache-2.0
+Project-URL: Homepage, https://grpc.io
 Project-URL: Source Code, https://github.com/grpc/grpc/tree/master/tools/distrib/python/grpcio_tools
 Project-URL: Bug Tracker, https://github.com/grpc/grpc/issues
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
-Classifier: License :: OSI Approved :: Apache Software License
 Requires-Python: >=3.9
 Description-Content-Type: text/x-rst
 Requires-Dist: protobuf<7.0.0,>=6.31.1
 Requires-Dist: grpcio>=1.77.0.dev0
 Requires-Dist: setuptools>=77.0.1
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: description-content-type
-Dynamic: home-page
-Dynamic: license
-Dynamic: project-url
 Dynamic: requires-dist
 Dynamic: requires-python
-Dynamic: summary
 
 gRPC Python Tools
 =================
diff '--color=auto' -bur master_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/SOURCES.txt pr_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/SOURCES.txt
--- master_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/SOURCES.txt       2025-10-31 12:07:50.000000000 +0000
+++ pr_tar/grpcio_tools-1.77.0.dev0/grpcio_tools.egg-info/SOURCES.txt   2025-11-03 07:37:53.000000000 +0000
@@ -4,6 +4,7 @@
 _spawn_patch.py
 grpc_version.py
 protoc_lib_deps.py
+pyproject.toml
 python_version.py
 setup.py
 grpc_root/include/grpc/byte_buffer.h

diff '--color=auto' -bur master_tar/grpcio_tools-1.77.0.dev0/grpc_tools/command.py pr_tar/grpcio_tools-1.77.0.dev0/grpc_tools/command.py
--- master_tar/grpcio_tools-1.77.0.dev0/grpc_tools/command.py   2025-10-31 12:03:07.000000000 +0000
+++ pr_tar/grpcio_tools-1.77.0.dev0/grpc_tools/command.py       2025-11-03 06:45:08.000000000 +0000
@@ -41,25 +41,24 @@
 
 
 def build_package_protos(package_root, strict_mode=False):
+
     proto_files = []
-    inclusion_root = os.path.abspath(package_root)
-    for root, _, files in os.walk(inclusion_root):
+
+    for root, _, files in os.walk(package_root):
         for filename in files:
             if filename.endswith(".proto"):
-                proto_files.append(
-                    os.path.abspath(os.path.join(root, filename))
-                )
+                proto_files.append(os.path.join(root, filename))
 
     well_known_protos_include = _get_resource_file_name("grpc_tools", "_proto")
 
     for proto_file in proto_files:
         command = [
             "grpc_tools.protoc",
-            "--proto_path={}".format(inclusion_root),
+            "--proto_path={}".format(package_root),
             "--proto_path={}".format(well_known_protos_include),
-            "--python_out={}".format(inclusion_root),
-            "--pyi_out={}".format(inclusion_root),
-            "--grpc_python_out={}".format(inclusion_root),
+            "--python_out={}".format(package_root),
+            "--pyi_out={}".format(package_root),
+            "--grpc_python_out={}".format(package_root),
         ] + [proto_file]
         if protoc.main(command) != 0:
             if strict_mode:

diff '--color=auto' -bur master_tar/grpcio_tools-1.77.0.dev0/PKG-INFO pr_tar/grpcio_tools-1.77.0.dev0/PKG-INFO
--- master_tar/grpcio_tools-1.77.0.dev0/PKG-INFO        2025-10-31 12:07:52.163467400 +0000
+++ pr_tar/grpcio_tools-1.77.0.dev0/PKG-INFO    2025-11-03 07:37:53.909581400 +0000
@@ -2,32 +2,21 @@
 Name: grpcio-tools
 Version: 1.77.0.dev0
 Summary: Protobuf code generator for gRPC
-Home-page: https://grpc.io
-Author: The gRPC Authors
-Author-email: grpc-io@googlegroups.com
-License: Apache License 2.0
+Author-email: The gRPC Authors <grpc-io@googlegroups.com>
+License-Expression: Apache-2.0
+Project-URL: Homepage, https://grpc.io
 Project-URL: Source Code, https://github.com/grpc/grpc/tree/master/tools/distrib/python/grpcio_tools
 Project-URL: Bug Tracker, https://github.com/grpc/grpc/issues
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
-Classifier: License :: OSI Approved :: Apache Software License
 Requires-Python: >=3.9
 Description-Content-Type: text/x-rst
 Requires-Dist: protobuf<7.0.0,>=6.31.1
 Requires-Dist: grpcio>=1.77.0.dev0
 Requires-Dist: setuptools>=77.0.1
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: description-content-type
-Dynamic: home-page
-Dynamic: license
-Dynamic: project-url
 Dynamic: requires-dist
 Dynamic: requires-python
-Dynamic: summary
 
 gRPC Python Tools
 =================
Only in pr_tar/grpcio_tools-1.77.0.dev0: pyproject.toml
diff '--color=auto' -bur master_tar/grpcio_tools-1.77.0.dev0/setup.py pr_tar/grpcio_tools-1.77.0.dev0/setup.py
--- master_tar/grpcio_tools-1.77.0.dev0/setup.py        2025-10-31 12:03:07.000000000 +0000
+++ pr_tar/grpcio_tools-1.77.0.dev0/setup.py    2025-11-03 06:45:08.000000000 +0000
@@ -31,37 +31,21 @@
 
 # TODO(atash) add flag to disable Cython use
 
-_PACKAGE_PATH = os.path.realpath(os.path.dirname(__file__))
-_README_PATH = os.path.join(_PACKAGE_PATH, "README.rst")
 
-os.chdir(os.path.dirname(os.path.abspath(__file__)))
 sys.path.insert(0, os.path.abspath("."))
 
 import _parallel_compile_patch
 import _spawn_patch
 import protoc_lib_deps
-import python_version
 
 import grpc_version
+import python_version
 
-_EXT_INIT_SYMBOL = None
-if sys.version_info[0] == 2:
-    _EXT_INIT_SYMBOL = "init_protoc_compiler"
-else:
-    _EXT_INIT_SYMBOL = "PyInit__protoc_compiler"
+_EXT_INIT_SYMBOL = "PyInit__protoc_compiler"
 
 _parallel_compile_patch.monkeypatch_compile_maybe()
 _spawn_patch.monkeypatch_spawn()
 
-CLASSIFIERS = [
-    "Development Status :: 5 - Production/Stable",
-    "Programming Language :: Python",
-    "Programming Language :: Python :: 3",
-    "License :: OSI Approved :: Apache Software License",
-]
-
-PY3 = sys.version_info.major == 3
-
 
 def _env_bool_value(env_name, default):
     """Parses a bool option from an environment variable"""
@@ -343,23 +327,9 @@
         return extensions
 
 
-setuptools.setup(
-    name="grpcio-tools",
-    version=grpc_version.VERSION,
-    description="Protobuf code generator for gRPC",
-    long_description_content_type="text/x-rst",
-    long_description=open(_README_PATH, "r").read(),
-    author="The gRPC Authors",
-    author_email="grpc-io@googlegroups.com",
-    url="https://grpc.io",
-    project_urls={
-        "Source Code": "https://github.com/grpc/grpc/tree/master/tools/distrib/python/grpcio_tools",
-        "Bug Tracker": "https://github.com/grpc/grpc/issues",
-    },
-    license="Apache License 2.0",
-    classifiers=CLASSIFIERS,
+if __name__ == "__main__":
+    setuptools.setup(
     ext_modules=extension_modules(),
-    packages=setuptools.find_packages("."),
     python_requires=f">={python_version.MIN_PYTHON_VERSION}",
     install_requires=[
         "protobuf>=6.31.1,<7.0.0",
@@ -370,9 +340,4 @@
     cmdclass={
         "build_ext": BuildExt,
     },
-    entry_points={
-        "console_scripts": [
-            "python-grpc-tools-protoc = grpc_tools.protoc:entrypoint",
-        ],
-    },
-)
+    )

@sreenithi sreenithi marked this pull request as ready for review November 3, 2025 16:21
@sreenithi sreenithi requested a review from sergiitk November 3, 2025 16:22
@sergiitk
Copy link
Member

sergiitk commented Nov 4, 2025

Diff with current master:

Wheel:

# $ diff -r -u --ignore-space-change master-pyproject/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2 ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2
Binary files master-pyproject/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpc_tools/_protoc_compiler.cpython-39-darwin.so and ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpc_tools/_protoc_compiler.cpython-39-darwin.so differ
Only in master-pyproject/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpc_tools: test
diff --color -r -u --ignore-space-change master-pyproject/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpcio_tools-1.77.0.dev0.dist-info/RECORD ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpcio_tools-1.77.0.dev0.dist-info/RECORD
--- master-pyproject/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpcio_tools-1.77.0.dev0.dist-info/RECORD	2025-11-04 00:40:22.000000000 -0800
+++ ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0-cp39-cp39-macosx_11_0_universal2/grpcio_tools-1.77.0.dev0.dist-info/RECORD	2025-11-03 08:01:58.000000000 -0800
@@ -1,5 +1,5 @@
 grpc_tools/__init__.py,sha256=SxD-ymrdM7hKoDGjCDjcA3TSaFadaSZ9kDtinr0Droo,577
-grpc_tools/_protoc_compiler.cpython-39-darwin.so,sha256=pFb6EZnM_GK_2fMLxmYYsp_fe-s-e3GUF-1GhVre8g0,21805296
+grpc_tools/_protoc_compiler.cpython-39-darwin.so,sha256=Pmra_FHEIcZbi9UhUe8rzozHIKHyvGY8CbSWGTzo3kg,21805296
 grpc_tools/command.py,sha256=ctTkpH7couQHO-ZPtB3-wEfS6BHUUXwA9Q88SW4xX-s,3022
 grpc_tools/grpc_version.py,sha256=fe0ExdN73mjFyFEBeAD-QXwZgK2z0WYcO1KV_fXmohE,721
 grpc_tools/protoc.py,sha256=7guL4ZuNxxYJLP11RHWymXUm8v6HQ9hE8w3dYAkpb98,8043
@@ -16,13 +16,6 @@
 grpc_tools/_proto/google/protobuf/type.proto,sha256=4jDg5K64fJXp8casv8DHE9s_iAlPFJsVRxelHQIPdQs,6367
 grpc_tools/_proto/google/protobuf/wrappers.proto,sha256=aHjcdTTPmAXu5WNFzcOLXpyjneziRnEMZjxwB6Z_70k,5392
 grpc_tools/_proto/google/protobuf/compiler/plugin.proto,sha256=fjnlljCh8BGNcVv9D-NIHBYN4hRP9ZUsXj7SCizk-oI,8556
-grpc_tools/test/BUILD.bazel,sha256=TbrBeCziGbAqlgyZey-eZe1dBZI_7t64d4EnVkqOqnA,1648
-grpc_tools/test/complicated.proto,sha256=UsrCVFfpueQXsK1q3xZDSTbyGVtXRAnWvQrCFXu3T6o,796
-grpc_tools/test/flawed.proto,sha256=2jdkpHL0RwQogsSSS5ZP40p1kO8KPNcGiRIAbmGNZ64,707
-grpc_tools/test/protoc_test.py,sha256=GEaQVUpTD8H6ZG8FMpLx5YNseyPHS0nXG-7-JwJ-VII,5342
-grpc_tools/test/simple.proto,sha256=jtcB4I5b2rDr5Np2izA_w_E95LqYATI2r5u_kc8gNhk,1057
-grpc_tools/test/simpler.proto,sha256=i-f3E5fv-wFaAbsnNF0tgk99cQU-JmLMuW-f8eNCIKk,766
-grpc_tools/test/simplest.proto,sha256=10UJ4cq0xXzUKzDbTre3C_Fz7DiIkwW8NgEndw0-mlU,701
 grpcio_tools-1.77.0.dev0.dist-info/METADATA,sha256=O6kY-b_c25zpwFCNbYp5Iy6eFz_aye3RPMAJy_1rrQE,5331
 grpcio_tools-1.77.0.dev0.dist-info/WHEEL,sha256=Bz4joUCrUXLbSisvhJbegejJxGDaJE_s3lwyOhPe_FY,108
 grpcio_tools-1.77.0.dev0.dist-info/entry_points.txt,sha256=SUA-11aADRRasv7jBfguVtnoqPtQm3gf9vSaLuMhPZw,74

Sdist:

# $ diff -r -u --ignore-space-change master-pyproject/grpcio_tools-1.77.0.dev0/ ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0
diff --color -r -u --ignore-space-change master-pyproject/grpcio_tools-1.77.0.dev0/pyproject.toml ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0/pyproject.toml
--- master-pyproject/grpcio_tools-1.77.0.dev0/pyproject.toml	2025-11-03 15:07:51.000000000 -0800
+++ ssreenithi-pyproject-excl/grpcio_tools-1.77.0.dev0/pyproject.toml	2025-11-02 22:46:12.000000000 -0800
@@ -53,6 +53,7 @@
     "dist*",
     "grpc_root*",
     "third_party*",
+    "grpc_tools.test*"
 ]

 [tool.setuptools.exclude-package-data]
@@ -63,3 +64,6 @@
     "*.cc",
     "*.h",
 ]
+"grpc_tools" = [
+    "test/**"
+]

@sergiitk sergiitk changed the title [Python] Fix grpcio_tools wheel files [Python] Exclude test files in grpcio_tools wheels Nov 4, 2025
@copybara-service copybara-service bot closed this in 17d19bd Nov 4, 2025
sreenithi added a commit to sreenithi/grpc that referenced this pull request Nov 26, 2025
This PR removes some additional files that were included in the grpcio_tools package wheels after migrating to pyproject.toml build system in grpc#40833

Closes grpc#40999

COPYBARA_INTEGRATE_REVIEW=grpc#40999 from sreenithi:fix_grpc_tools_wheels_2 a261b21
PiperOrigin-RevId: 827755815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants