Workaround DeprecationWarning
Workaround DeprecationWarning

$ pytest diofant/tests/functions/test_integers.py
ImportError while loading conftest '/home/sk/src/diofant/conftest.py'.
conftest.py:8: in <module>
    import diofant
diofant/__init__.py:4: in <module>
    import pkg_resources
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:3257: in <module>
    def _initialize_master_working_set():
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:3231: in _call_aside
    f(*args, **kwargs)
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:3269: in _initialize_master_working_set
    working_set = WorkingSet._build_master()
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:564: in _build_master
    ws = cls()
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:557: in __init__
    self.add_entry(entry)
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:613: in add_entry
    for dist in find_distributions(entry, True):
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:2064: in find_on_path
    path_item_entries = _by_version_descending(filtered)
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:2034: in _by_version_descending
    return sorted(names, key=_by_version, reverse=True)
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:2032: in _by_version
    return [packaging.version.parse(part) for part in parts]
../../venv/dev/lib/python3.10/site-packages/pkg_resources/__init__.py:2032: in <listcomp>
    return [packaging.version.parse(part) for part in parts]
../../venv/dev/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py:51: in parse
    return LegacyVersion(version)
../../venv/dev/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py:111: in __init__
    warnings.warn(
E   DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release

diofant/diofant