Skip to content

Major versions of python dependencies should be pinned #157

@bridadan

Description

@bridadan

Note: This is just a template, so feel free to use/remove the unnecessary things

Description


Enhancement

Reason to enhance/problem with existing solution
We're trying to make our python tools a little more consistent when they are installed when using Mbed OS. We've been bitten a lot recently by python packages not pinning major versions and then having the APIs change once a new major version is released.

Suggested enhancement
Please pin the major versions of packages that have APIs > 1.0.
For unstable packages (0.x.x), please pin the minor number. pyocd in particular is going through many API changes right now, so the version needs to be pinned to the minor version or the dependency could be made optional (this is done in mbed-os-tools, let me know if you need any assistance with this).

Pros
Reproducible installs

Cons
You need to really be aware of when you need to update dependency versions. This probably a pro, but it does take a little more maintenance effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions