ARMmbed / mbed-cli

Arm Mbed Command Line Interface
https://os.mbed.com
Apache License 2.0
334 stars 176 forks source link

pypi version doesn't match mbed --version #966

Open thendrickson opened 4 years ago

thendrickson commented 4 years ago

On Mac:

pypi.org shows version 1.10.3 "pip3 install mbed" says it successfully installs 1.10.3 /Library/Frameworks/Python.framework/Versions/3.8/bin/mbed --version reports 1.10.2

ciarmcom commented 4 years ago

Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-643

mstfkaratas commented 4 years ago

I think they forgot to update version string on mbed.py https://github.com/ARMmbed/mbed-cli/blob/c2528f6fca8d73be0f5cb5e494dd4987f40c39fa/mbed/mbed.py#L56

$ pip3 list command should show correct version.

....
mbed-cli           1.10.3     
mbed-cloud-sdk     2.0.8 
....
arvoelke commented 4 years ago

Thanks for posting this issue. I spent a good chunk of time repeatedly uninstalling and reinstalling because I couldn't figure out why mbed --version said I was stuck on an older release. In case it helps, there appear to be two different version strings. One is the above, and the other is in setup.py (__version__ = '1.10.3'). The standard approach to prevent this issue is to have a single version string in version.py and then to import that string in all of the required places. e.g., using runpy in setup.py.