Skip to content

Version alternative #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tony opened this issue Mar 20, 2022 · 0 comments · Fixed by #727
Closed

Version alternative #768

tony opened this issue Mar 20, 2022 · 0 comments · Fixed by #727
Assignees

Comments

@tony
Copy link
Member

tony commented Mar 20, 2022

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
@tony tony added this to tmuxp Mar 20, 2022
@tony tony added this to the Milestone 1.11 milestone Mar 20, 2022
@tony tony self-assigned this Mar 20, 2022
@tony tony moved this to Todo in tmuxp Mar 20, 2022
@tony tony modified the milestones: Milestone 1.11, Milestone 1.13 May 21, 2022
@tony tony closed this as completed in #727 Dec 11, 2022
Repository owner moved this from Todo to Done in tmuxp Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant