Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
562 stars 89 forks source link

Add missing init file for cybin module #256

Closed aisk closed 1 month ago

aisk commented 3 months ago

To dismiss the deprecation warning when installing:

/home/xxxxx/Codes/thriftpy2/venv/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'thriftpy2.protocol.cybin' as data is deprecated, please list it in `packages`.
    !!

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

    'thriftpy2.protocol.cybin' 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 'thriftpy2.protocol.cybin' 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.

!!