tmuxp icon indicating copy to clipboard operation
tmuxp copied to clipboard

`Version` alternative

Open tony opened this issue 3 years ago • 0 comments

https://github.com/tmux-python/libtmux/issues/364

Need a light version parsing class.

Needs to support pypi, tmux / linux bin versions, e.g. tmux -V '3.0a`

tests/test_cli.py: 168 warnings                                                                                                                                                                                                            tests/test_workspacebuilder.py: 153 warnings                                                                                                                                                                                               tests/test_workspacefreezer.py: 5 warnings                                                                                                                                                                                                 tests/tests/test_helpers.py: 12 warnings                                                                                                                                                                                                     /home/t/work/python/tmuxp/.venv/lib/python3.10/site-packages/libtmux/common.py:523: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.                                                             return get_version() >= LooseVersion(min_version)                                                                                                                                                                                                                                                                                                                                                                                                                                 tests/test_cli.py: 49 warnings                                                                                                                                                                                                               /home/t/work/python/tmuxp/.venv/lib/python3.10/site-packages/libtmux/common.py:590: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.                                                             if get_version() < LooseVersion(TMUX_MIN_VERSION):

tests/test_cli.py: 1 warning
tests/test_plugin.py: 10 warnings
  /home/t/work/python/tmuxp/tmuxp/plugin.py:87: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    self.tmuxp_version = LooseVersion(__version__)

tests/test_cli.py: 3 warnings
tests/test_plugin.py: 48 warnings
  /home/t/work/python/tmuxp/tmuxp/plugin.py:138: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if vmin and version < LooseVersion(vmin):

tests/test_cli.py: 1 warning
tests/test_plugin.py: 34 warnings
  /home/t/work/python/tmuxp/.venv/lib/python3.10/site-packages/setuptools/_distutils/version.py:351: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    other = LooseVersion(other)

tests/test_cli.py: 1 warning
tests/test_plugin.py: 11 warnings
  /home/t/work/python/tmuxp/tmuxp/plugin.py:140: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if vmax and version > LooseVersion(vmax):

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

tony avatar Mar 20 '22 17:03 tony