pycontribs / enrich

Enrich adds few missing features to the wonderful rich library.
MIT License
32 stars 11 forks source link

Tests are installed #47

Closed dvzrv closed 1 year ago

dvzrv commented 1 year ago

Hi! I'm packaging this project on Arch Linux. I noticed that the test files are installed alongside the files of this project, but they are not required during runtime and should therefore end up on a user system.

dvzrv commented 1 year ago

This warning is also thrown during build of the wheel:

/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'enrich.test' as data is deprecated, please list it in `packages`.
    !!

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

    'enrich.test' 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 'enrich.test' 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.

!!
ssbarnea commented 1 year ago

Feel free to move them out of the package, to ./test.