Infinidat / infi.clickhouse_orm

A Python library for working with the ClickHouse database (https://clickhouse.yandex/)
BSD 3-Clause "New" or "Revised" License
414 stars 136 forks source link

Update for deprecated pkg_resources #207

Open jozekbudz opened 1 year ago

jozekbudz commented 1 year ago
x/lib/python3.10/site-packages/infi/clickhouse_orm/__init__.py:1: in <module>
    __import__("pkg_resources").declare_namespace(__name__)
x/lib/python3.10/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
jozekbudz commented 1 year ago

Attention

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.