From: Alexander Popov Date: Sun, 18 Jun 2023 21:42:53 +0000 (+0300) Subject: setup: Fix the warning "Package would be ignored" X-Git-Tag: v0.6.6~134 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e124d815b1e6db5d8bbf0a373f6f034ee878899d;hp=c198cbc6f17c7b796bbe2c4bb38de26065741444;p=kconfig-hardened-check.git 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 --- 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 =