ARMmbed / mbed-os-tools

The tools to test and work with Mbed OS
Apache License 2.0
33 stars 67 forks source link

version: Fix `setuptools_scm` runtime error #251

Closed urutva closed 3 years ago

urutva commented 3 years ago

Description

setuptools_scm is used to retrieve version during runtime. However, the folder where a package gets installed is not a git repository which leads to setuptools_scm failure.

Use get_distribution instead of setuptools_scm to get version during runtime.

Fixes https://github.com/ARMmbed/mbed-os-tools/issues/250

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers