Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
156 stars 42 forks source link

wheel build issue with openeo.extra.spectral_indices.resources #417

Open soxofaan opened 1 year ago

soxofaan commented 1 year ago

I noticed this when doing python setup.py bdist_wheel with most recent setuptools/wheels packages locally (python 3.9 env):

...
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'openeo.egg-info/SOURCES.txt'
/home/...../src/openeo/openeo-python-client/venv/lib/python3.9/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'openeo.extra.spectral_indices.resources' as data is deprecated, please list it in `packages`.
    !!

    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'openeo.extra.spectral_indices.resources' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'openeo.extra.spectral_indices.resources' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'openeo.extra.spectral_indices.resources' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.

!!

  check.warn(importable)
/home/.../src/openeo/openeo-python-client/venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
installing to build/bdist.linux-x86_64/wheel
...

to be investigated further.

(I don't see this in jenkins runs, which is still(?) py 3.6)