From e124d815b1e6db5d8bbf0a373f6f034ee878899d Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 19 Jun 2023 00:42:53 +0300 Subject: [PATCH] setup: Fix the warning "Package would be ignored" The warning: ############################ # Package would be ignored # ############################ Python recognizes 'kconfig_hardened_check.config_files.distros' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'kconfig_hardened_check.config_files.distros' 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 'kconfig_hardened_check.config_files.distros' 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:`). So let's use "find_namespace:" for package directory to include the package data. More info in the documentation: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-namespace-packages --- setup.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 8f3186c..168169f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,9 +16,12 @@ classifiers = Programming Language :: Python :: 3 [options] -include_package_data = true -packages = kconfig_hardened_check setup_requires = setuptools +packages = find_namespace: +include_package_data = true + +[options.packages.find] +where = kconfig_hardened_check [options.entry_points] console_scripts = -- 2.31.1