-
Notifications
You must be signed in to change notification settings - Fork 128
Build specification should list ‘towncrier.templates’ as a package #467
Description
When building the package using a PEP 517 build tool such as ‘build’, Setuptools emits this deprecation warning:
SetuptoolsDeprecationWarning: Installing 'towncrier.templates' as data is deprecated, please list it in
packages.
############################Package would be ignored
############################
Python recognizes 'towncrier.templates' as an importable package,
but it is not listed in thepackagesconfiguration of setuptools.'towncrier.templates' 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 'towncrier.templates' is included as a package by using
thepackagesconfiguration field or the proper discovery methods
(for example by usingfind_namespace_packages(...)/find_namespace:
instead offind_packages(...)/find:).You can read more about "package discovery" and "data files" on setuptools
documentation page.
Using Python 3.11, ‘build’ version 0.9.0, ‘setuptools’ version 65.6.3.