Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Version inconsistency between CLI and pip #177

Copy link
Copy link
@enorms

Description

@enorms
Issue body actions

Command line seems to print the older version, see below. I discovered because I was confirming the latest version was installed for some troubleshooting. Pip shows the current "0.4.0.dev3" but python-kasa itself says the version is "0.4.0.dev2".

(venv) eric@mbp-16 synesti % pip list
Package            Version                           Location
------------------ --------------------------------- ---------------------------------
anyio              3.2.1
appdirs            1.4.4
asyncclick         7.1.2.3
black              21.6b0
click              8.0.1
distlib            0.3.2
filelock           3.0.12
idna               3.2
importlib-metadata 4.5.0
mypy               0.910
mypy-extensions    0.4.3
packaging          20.9
pathspec           0.8.1
pip                21.1.2
pluggy             0.13.1
py                 1.10.0
pyparsing          2.4.7
python-kasa        0.4.0.dev3
regex              2021.4.4
setuptools         56.0.0
six                1.16.0
sniffio            1.2.0
synesthesus        0.0.post1.dev9+gd4c001b.d20210626 /Users/eric/dev_local/synesti/src
toml               0.10.2
tox                3.23.1
typing-extensions  3.10.0.0
virtualenv         20.4.7
zipp               3.4.1
(venv) eric@mbp-16 synesti % kasa --version
kasa, version 0.4.0.dev2

The version in /pyproject.toml is correct at version = "0.4.0.dev3", file METADATA in the package gives the correct Version: 0.4.0.dev3 which can be seen working in python by

>>> from importlib_metadata import version
>>> __version__ = version("python-kasa")
>>> __version__
'0.4.0.dev3'
>>> from importlib.metadata import version
>>> version("python-kasa")
'0.4.0.dev3'

The CLI version seems to come from the click function @click.version_option() which is supposed to get the version using importlib.metadata.version() so I'm not sure what's causing the problem.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.