[docutils:bugs] #462 setuptools deprecates installing packages as data files

engelbert gruber via Docutils-develop <[email protected]>
Newsgroups gmane.text.docutils.devel
Message-ID </p/docutils/bugs/462/30b2b1eef877a9edf88d168473e715c9be09c4d2.bugs@docutils.p.sourceforge.net>
- **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 [email protected] 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.