-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Labels
Description
This is necessary in libtmux and tmuxp.
tmuxp uses this for tmux
versions (via git and 3.0b, etc)
Needs to be flexible and ideally have no dependency
LegacyVersion deprecation
In
packaging
,LegacyVersion
(the supercessor toLooseVersion
) will be deprecated, we won't be able to support2.4-openbsd
(like what is seen on OpenBSD's tmux versions/home/t/work/python/libtmux/.venv/lib/python3.10/site-packages/packaging/version.py:127: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release warnings.warn( -- Docs: https://docs.pytest.org/en/stable/warnings.html
tmux versions
To the above, consider subclassing `Version` for tmux versions to handle git builds, platform builds, etc. then keeping `Version` for supporting pypi releases
Version
Assure thatlibtmux.__version__
/tmuxp.__version__
supports git refs /local
match groupsTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
distutils.version.Version
deprecation warning (python 3.10) tmuxp#727Version
alternative tmuxp#768bszonye commentedon Dec 11, 2022
Today I hit a
tmuxp
that looks related to this work. I've been moving my pip--user
installs to use pipx instead, and I hit this error in startup:It looks like libtmux depends on "packaging" as an undeclared dependency. That package is ubiquitous, so it's fine when installed globally or with
--user
, but in a fresh virtualenv (e.g. with pipx) theVersion
call crashes the utility. Probably libtmux should include the dependency in pyproject.toml until you find a replacement.tony commentedon Dec 12, 2022
@bszonye Good catch! Taking a closer look now
Version
#461tony commentedon Dec 12, 2022
@bszonye Fixed in libtmux v0.16.1, tmuxp v1.19.1
If you try now, any better?
See also #461
bszonye commentedon Dec 12, 2022
Works for me with tmuxp v1.191, thanks!
tony commentedon Dec 12, 2022
@bszonye Excellent!
I will close this for now per tmuxp 1.19.1 (via libtmux 0.16.1) handling the
packaging
dependency!