no-plagiarism / pymorphy3

Morphological analyzer / inflection engine for Russian and Ukrainian languages.
https://pymorphy2.readthedocs.io/
MIT License
67 stars 9 forks source link

pkg_resources is deprecated #19

Closed tandav closed 10 months ago

tandav commented 11 months ago

Describe the bug Running pytest in the project which uses pymorphy3 gives warning:

  /home/ubuntu/.cache/virtualenvs/myenv/lib/python3.10/site-packages/pymorphy3/analyzer.py:114: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources
insolor commented 11 months ago

There is a fix for this warning in other fork: https://github.com/pymorphy2-fork/pymorphy2/pull/19.

But it is for Python 3.8 and later, so probably older versions of Python should be dropped first (or the solution should be expanded for more python versions).

BLKSerene commented 10 months ago

This issue could be closed as already solved in 2.0.1.

tandav commented 10 months ago

Thank you, closing the issue