readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.81k stars 1.74k forks source link

Fix and understand build warnings #1485

Closed benjaoming closed 1 year ago

benjaoming commented 1 year ago

When running python setup.py bdist_wheel


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'sphinx_rtd_theme.static.css.fonts' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'sphinx_rtd_theme.static.css.fonts' 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 'sphinx_rtd_theme.static.css.fonts' 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.
humitos commented 1 year ago

I understand that setup.py is deprecated and we are not using it anymore. Feel free to re-open if required, tho.