setup.py: fix setuptools warning about data files (#86510)
gitea/ldaptools/pipeline/head There was a failure building this commit Details

############################
    # Package would be ignored #
    ############################
    Python recognizes 'Bio.Entrez.XSDs' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'Bio.Entrez.XSDs' 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 'Bio.Entrez.XSDs' 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:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.
This commit is contained in:
Benjamin Dauvergne 2024-02-07 12:55:33 +01:00
parent 491fd26df5
commit 8f214a6e87
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ setup(
author_email='authentic@listes.entrouvert.com',
maintainer='Benjamin Dauvergne',
maintainer_email='bdauvergne@entrouvert.com',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
packages=['ldaptools'],
package_dir={'ldaptools': 'src/ldaptools'},
package_data={'ldaptools': ['schemas/*.ldif']},
install_requires=['python-ldap>2', 'six'],
entry_points={
'console_scripts': ['ldapsync=ldaptools.ldapsync.cmd:main'],