-
Notifications
You must be signed in to change notification settings - Fork 3k
Update python requirements #14780
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
Update python requirements #14780
Conversation
@Patater, thank you for your changes. |
@@ -1,16 +1,16 @@ | |||
colorama==0.3.9 | |||
urllib3[secure]==1.24.2 | |||
urllib3[secure]>=1.26.5 | |||
prettytable==0.7.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not linked with this PR :-)
But I often have issues with that prettytable requirement...
It is not in line with pyOCD: 'prettytable>=2.0,<3.0',
https://github.com/pyocd/pyOCD/blob/master/setup.py#L74
Maybe we can relax the version number here ?
Thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the higher version to get security fixes, so we can't relax. We can update pyOCD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyOCD requests a higher version...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. This should work fine then. We are going to use >=
rather than ==
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed up on our CI failure with the newer prettytable. We had pinned mbed-os-tools's requirement on prettytable as documented in a previous commit:
If we want to update prettytable, we need to drop Python 2.7 and 3.5 support.
Latest release of `PrettyTable` (2.0.0) removed support for Python 2.7
and 3.5 and is causing CI failures. We are still supporting those
versions in mbed-os-tools. Therefore pin `PrettyTable` to 1.0.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we drop Python 2.7 and 3.5 (which are deprecated), could we also add cysecuretools
? This package is needed by CYTFM_064B0S2_4343W (and one or two other Cypress targets if I remember correctly). We didn't add it because it only supports Python 3.6 and above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to drop 2.7 and 3.5 (I thought 2.7 was already no supported).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping python2.7 will involve coordinated changes to many repos (mbed-os-tools, icetea, mbed-ls. I'll file an issue for doing this separately, including updating prettytable.
c077dcd
to
e02465b
Compare
bd90609
to
7d647bd
Compare
@Patater, thank you for your changes. |
@Patater, thank you for your changes. |
7d647bd
to
5c835cb
Compare
Removed prettytable update, as it requires dropping Python 2.7 and 3.5 across many repos. Filed #14784 |
As we depend on the cryptography library, and the pip version that comes with Ubuntu Focal isn't new enough to avoid the following error about a rust compiler and pre-built wheels, ensure Travis uses an up-to-date pip. error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip
A few libraries we depend on no longer support old versions of Python like 3.5 and 3.6. Remove testing for these old versions.
Update versions of urllib3, PyYAML, jinja2, cryptography.
5c835cb
to
9b09cdd
Compare
Pull request has been modified.
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Update Python dependencies to newer versions to get important updates for them.
Impact of changes
Not yet known.
Migration actions required
Not yet known.
Documentation
None
Pull request type
Test results
Reviewers