Ryan Skraba created AVRO-4308:
---------------------------------
Summary: [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
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:
```
<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>
```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)