-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
Description
When running python setup.py build for jupyter_lsp, setuptools raises this warning:
/usr/lib/python3.11/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'jupyter_lsp.etc' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'jupyter_lsp.etc' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'jupyter_lsp.etc' 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 'jupyter_lsp.etc' 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.
!!
You can find an interesting discussion about this here: pypa/setuptools#3340
It seems that thanks to PEP 420, also folders without any Python files can now be considered importable Python packages.
Reproduce
- Go to
python_packages/jupyter_lsp - Run
python setup.py buildwith newer setuptools
Expected behavior
No deprecation warning.
Metadata
Metadata
Assignees
Labels
No labels