Commit e124d815 by Alexander Popov

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
parent c198cbc6
...@@ -16,9 +16,12 @@ classifiers = ...@@ -16,9 +16,12 @@ classifiers =
Programming Language :: Python :: 3 Programming Language :: Python :: 3
[options] [options]
include_package_data = true
packages = kconfig_hardened_check
setup_requires = setuptools setup_requires = setuptools
packages = find_namespace:
include_package_data = true
[options.packages.find]
where = kconfig_hardened_check
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment