Extensions do not return a version if packaged with the latest version of wheel #6441
Labels
Extensions
`az extension` commands or extension infrastructure
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Extensions do not return a version if packaged with the latest version of wheel. I noticed that the extension command module was pinned to
0.30.0
in #6164, but the version returns null if extensions were built with the latest wheelEx: I build an extension using the VSTS Python build tools, which uses the
Build Python wheels
task. This appears to use the latest version ofwheel
, or at least one0.31.0
or newer. This reproduces locally if using0.31.1
, but my older builds that were0.30.0
properly return a versionOn latest, when the wheel is built, there is no
metadata.json
in thenoelbundick-0.0.x.dist-info
folder, and as a result, I get the following output when I runaz extension list
:To Reproduce
metadata.json
is not presentls ~/.azure/cliextensions/noelbundick/noelbundick-0.0.5.dist-info
observe that the version is null
Expected behavior
I expect the
version
in the output to match the version contained in mysetup.py
(in this case,0.0.5
)Environment summary
apt-get / 2.0.33 / Ubuntu 18.04 / WSL
The text was updated successfully, but these errors were encountered: