Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build specification should list ‘towncrier.templates’ as a package #467

Closed
bignose-debian opened this issue Jan 10, 2023 · 0 comments · Fixed by #472
Closed

Build specification should list ‘towncrier.templates’ as a package #467

bignose-debian opened this issue Jan 10, 2023 · 0 comments · Fixed by #472

Comments

@bignose-debian
Copy link
Contributor

bignose-debian commented Jan 10, 2023

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 the packages configuration 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
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.

Using Python 3.11, ‘build’ version 0.9.0, ‘setuptools’ version 65.6.3.

This was referenced Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant