Skip to content

Version alternative #768

Closed
Closed
@tony

Description

@tony

tmux-python/libtmux#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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions