From: engelbert g. <gr...@us...> - 2022-11-17 11:59:36
|
- **status**: open --> closed-duplicate - **Comment**: patch #199 --- ** [bugs:#462] setuptools deprecates installing packages as data files** **Status:** closed-duplicate **Created:** Wed Nov 16, 2022 02:47 PM UTC by Karolina Surma **Last Updated:** Wed Nov 16, 2022 02:47 PM UTC **Owner:** nobody There is a warning emitted when building docutils 0.19 with setuptools 65.5.1. It points out three packages: - 'docutils.writers.s5_html.themes' - 'docutils.parsers.rst.include' - 'docutils.writers.s5_html.themes.default' The full warning text: ``` /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'docutils.parsers.rst.include' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'docutils.parsers.rst.include' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'docutils.parsers.rst.include' 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 'docutils.parsers.rst.include' 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. ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |