[ 
https://issues.apache.org/jira/browse/AVRO-4308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099286#comment-18099286
 ] 

ASF subversion and git services commented on AVRO-4308:
-------------------------------------------------------

Commit eab0e48bb8b7b21d78b0aa2121fe107600e10af6 in avro's branch 
refs/heads/dependabot/npm_and_yarn/doc/autoprefixer-10.5.4 from Ismaël Mejía
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=eab0e48bb8 ]

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.

> [python] Local build fails on interop tests
> -------------------------------------------
>
>                 Key: AVRO-4308
>                 URL: https://issues.apache.org/jira/browse/AVRO-4308
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.13.0
>            Reporter: Ryan Skraba
>            Assignee: Ismaël Mejía
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Looks like this works in the [github 
> actions|https://github.com/apache/avro/actions/runs/29684530375/job/88186403954#step:13:20],
>  but it fails in the local build:
> {code}
> <pre>ryanskraba@26801c1af4dc:~/avro$ cd lang/py/
> ryanskraba@26801c1af4dc:~/avro/lang/py$ ./build.sh interop-data-generate
> /home/ryanskraba/avro/lang/py/.venv/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
>  SetuptoolsDeprecationWarning: License classifiers are deprecated.
> !!
> ********************************************************************************
> Please consider removing the following classifiers in favor of a SPDX license 
> expression:
> License :: OSI Approved :: Apache Software License
> See 
> [https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license]
>  for details.
> ********************************************************************************
> !!
> dist._finalize_license_expression()
> /home/ryanskraba/avro/lang/py/.venv/lib/python3.12/site-packages/setuptools/dist.py:483:
>  SetuptoolsDeprecationWarning: Cannot find any files for the given pattern.
> !!
> ********************************************************************************
> Pattern 'LICENSE.txt' did not match any files.
> By 2027-Feb-18, you need to update your project and remove deprecated calls
> or your builds will no longer be supported.
> ********************************************************************************
> !!
> for path in sorted(cls._find_pattern(pattern, enforce_match))
> /home/ryanskraba/avro/lang/py/.venv/lib/python3.12/site-packages/setuptools/dist.py:765:
>  SetuptoolsDeprecationWarning: License classifiers are deprecated.
> !!
> ********************************************************************************
> Please consider removing the following classifiers in favor of a SPDX license 
> expression:
> License :: OSI Approved :: Apache Software License
> See 
> [https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license]
>  for details.
> ********************************************************************************
> !!
> self._finalize_license_expression()
> error: Multiple top-level packages discovered in a flat-layout: ['avro', 
> 'userlogs'].
> To avoid accidental inclusion of unwanted files or directories,
> setuptools will not proceed with this build.
> If you are trying to create a single distribution with multiple packages
> on purpose, you should not rely on automatic discovery.
> Instead, consider the following options:
> 1. set up custom discovery (`find` directive with `include` or `exclude`)
> 2. use a `src-layout`
> 3. explicitly set `py_modules` or `packages` with a list of names
> To find more information, look for "package discovery" on setuptools docs.
> </pre>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to