Skip to content

Commit

Permalink
Improve warning message for _IncludePackageDataAbuse
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 18, 2022
1 parent b416443 commit 89173d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setuptools/command/build_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class _IncludePackageDataAbuse:
"""Inform users that package or module is included as 'data file'"""

MESSAGE = """\
Installing {importable!r} as data is deprecated, please list it as `package`.
!!\n\n
############################
# Package would be ignored #
Expand All @@ -266,7 +267,9 @@ class _IncludePackageDataAbuse:
therefore is considered deprecated).
Please make sure that {importable!r} is included as a package by using
setuptools' `packages` configuration field or the proper discovery methods.
setuptools' `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.
Expand Down

0 comments on commit 89173d2

Please sign in to comment.