aio-libs-abandoned/aioredis-py

aioredis uses distutils which will be removed soon.

dotX12 opened this issue · 1 comments

Describe the bug

while testing the code, I found a notification that the library uses distutils, which will be removed soon.

To Reproduce

(venv) dev@server:~/wa_service$ coverage run --source=waio -m pytest tests/
========================================================================================================= test session starts ==========================================================================================================
platform linux -- Python 3.10.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/dev-user/wa_service
plugins: asyncio-0.16.0, anyio-3.3.4
collected 9 items                                                                                                                                                                                                                      

tests/test_filters.py ..                                                                                                                                                                                                         [ 22%]
tests/test_fsm.py .....                                                                                                                                                                                                          [ 77%]
tests/test_reply_keyboard.py ..                                                                                                                                                                                                  [100%]

=========================================================================================================== warnings summary ===========================================================================================================
venv/lib/python3.10/site-packages/aioredis/connection.py:10
  /home/dev-user/wa_service/venv/lib/python3.10/site-packages/aioredis/connection.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import StrictVersion

-- Docs: https://docs.pytest.org/en/stable/warnings.html

Expected behavior

decide what to do with this module, as it will soon be removed.

Logs/tracebacks

-

Python Version

$ python --version
Python 3.10.0

aioredis Version

$ python -m pip show aioredis
Version: 2.0.0

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

This should be fixed in #1156 using packaging. Thanks for the report!