Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some mbed-os dependencies as our own #170

Merged
merged 5 commits into from
Jan 26, 2021

Conversation

Patater
Copy link
Contributor

@Patater Patater commented Jan 26, 2021

Description

Add prettytable and intehex as installation dependencies to avoid new
installs from being complicated by the fact that one must go into
mbed-os to install requirements.txt. Yes, these aren't real requirements
of mbed-tools. Yes, this is a bit of an architecture violation. However,
until we can address the problem in a more suitable way, this should
help avoid a common usability impediment.

Test Coverage

  • This change is covered by existing or additional automated tests.
  • Manual testing has been performed (and evidence provided) as automated testing was not feasible.
  • Additional tests are not required for this change (e.g. documentation update).

@Patater Patater self-assigned this Jan 26, 2021
@codecov
Copy link

codecov bot commented Jan 26, 2021

Codecov Report

Merging #170 (f19a542) into master (1b343ea) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #170   +/-   ##
=======================================
  Coverage   96.54%   96.54%           
=======================================
  Files          94       94           
  Lines        2605     2605           
=======================================
  Hits         2515     2515           
  Misses         90       90           

@Patater Patater force-pushed the dev/Patater/install-mbed-os-deps branch 2 times, most recently from fcca36e to 061bc41 Compare January 26, 2021 14:59
@Patater Patater marked this pull request as ready for review January 26, 2021 14:59
setup.py Outdated Show resolved Hide resolved
@Patater Patater force-pushed the dev/Patater/install-mbed-os-deps branch 5 times, most recently from d3c251d to 13e1858 Compare January 26, 2021 15:53
The SPDX report generator tends not to be sophisticated enough to
understand the licenses of even common Python dependencies like
setuptools. If we'd like to restore the ability to generate such reports
in the future, we should consider one of the many pre-existing tools
available to generate such reports for us, rather than develop and
maintain our own from scratch.
Add future, prettytable, and intelhex, as required by Mbed OS 6.7, as
dependencies to avoid new installs from being complicated by the fact
that one must go into mbed-os to install requirements.txt. Yes, these
aren't real requirements of mbed-tools. Yes, this is a bit of an
architecture violation. However, until we can address the problem in a
more suitable way, this should help avoid a common usability impediment.

Without this change, the user experience is really not nice, as the
build will progress fine until the very last minute (maybe 8 minutes
later or so) afterwhich you get some opaque error message about a python
library not being found and no clue what to do next.

This usability hack should be removed once we have a more appropriate
solution ready. This "should" is tracked in
#171.
Update our development status to beta, to match what's in our README.md.
List Python 3.9 support explicitly, as we now test with this.
Use Python 3.9 for running tests on Travis.
@Patater Patater force-pushed the dev/Patater/install-mbed-os-deps branch from 13e1858 to f19a542 Compare January 26, 2021 16:41
@Patater Patater merged commit d2f4446 into master Jan 26, 2021
@Patater Patater deleted the dev/Patater/install-mbed-os-deps branch January 26, 2021 17:06
@Patater Patater mentioned this pull request Feb 11, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants