Menu

#462 setuptools deprecates installing packages as data files

closed-duplicate
nobody
None
5
2022-11-17
2022-11-16
No

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.

Discussion

  • engelbert gruber

    • status: open --> closed-duplicate
     
  • engelbert gruber

     

    Related

    Patches: #199


    Last edit: Günter Milde 2022-12-01

Log in to post a comment.