This is an automated email from the ASF dual-hosted git repository.

RyanSkraba pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new eab0e48bb8 AVRO-4308: [python] Fix interop build failure from 
setuptools package discovery (#3894)
eab0e48bb8 is described below

commit eab0e48bb8b7b21d78b0aa2121fe107600e10af6
Author: Ismaël Mejía <[email protected]>
AuthorDate: Tue Jul 21 14:51:29 2026 +0200

    AVRO-4308: [python] Fix interop build failure from setuptools package 
discovery (#3894)
    
    The local Docker interop build failed with "Multiple top-level packages
    discovered in a flat-layout: ['avro', 'userlogs']". The Hadoop tether
    tests leave a userlogs/ directory next to the avro/ package, which breaks
    setuptools automatic flat-layout package discovery.
    
    Explicitly scope package discovery to avro* so stray directories such as
    userlogs/ are ignored.
---
 lang/py/pyproject.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/py/pyproject.toml b/lang/py/pyproject.toml
index 96882d2d9b..6e5b50abf8 100644
--- a/lang/py/pyproject.toml
+++ b/lang/py/pyproject.toml
@@ -56,6 +56,9 @@ zstandard = ["zstandard"]
 [tool.ruff]
 line-length = 150
 
+[tool.setuptools.packages.find]
+include = ["avro*"]
+
 [tool.setuptools.package-data]
 "avro" = [
   "HandshakeRequest.avsc", "HandshakeResponse.avsc", "LICENSE.txt",

Reply via email to