setup: Don't use the automatic "find_namespace:" discovery
authorAlexander Popov <alex.popov@linux.com>
Sun, 18 Jun 2023 22:11:20 +0000 (01:11 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 18 Jun 2023 22:11:20 +0000 (01:11 +0300)
This automatic discovery doesn't fit to the flat layout of my package
(without the "src" directory).

Instead, let's specify the "packages" explicitly in setup.cfg.

setup.cfg

index 168169f3e7c31577885e5e6e840dd7f8ef64f171..c544cec3bd2698ca090994f25f4ddde3bfc0ffa0 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -17,12 +17,14 @@ classifiers =
 
 [options]
 setup_requires = setuptools
-packages = find_namespace:
+packages =
+       kconfig_hardened_check
+       kconfig_hardened_check.config_files
+       kconfig_hardened_check.config_files.defconfigs
+       kconfig_hardened_check.config_files.distros
+       kconfig_hardened_check.config_files.kspp-recommendations
 include_package_data = true
 
-[options.packages.find]
-where = kconfig_hardened_check
-
 [options.entry_points]
 console_scripts =
        kconfig-hardened-check = kconfig_hardened_check:main