-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pkg: Add script to check third party package version #20662
Conversation
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.
Thanks, that seems to be a nice addition!
From a very quick glance at the changes, already some comments:
- could you adapt the script to follow our python coding convention? In particular, provide and use a
main
function (also move initialization code there), add a copyright notice and shorten lines longer than 120 chars. - could you move the script under
dist/tools/pkg_version_check
(or similar) and provide a (short) README explaining its function?
Tried it locally, the python file is missing the executable rights (
👀 I think it would be nice to provide more concise output, only listing failures and outdated packages. |
I've moved the script to |
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.
Thanks, looks mostly good to me. Below just some suggestions and minor nits.
Thanks for the suggestions, I've updated the script and the README |
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.
LGTM then! Please squash your commits together into a single one.
90846ae
to
3927a4f
Compare
Sorry for closing the request, I accidentally rebased. |
0be9c2d
to
2c1f413
Compare
Should be good now. |
402658b
to
0c49709
Compare
Contribution description
This provides a script that will read the Makefile of third party packages in the
pkg/
directory and compare thePKG_VERSION
hash with the latest upstream release hash or commit hash and check if the package is outdated or not.The script requires a GitHub API token to run.
Testing procedure
Running the script and inputing a GitHub API token should print out a list of outdated packages.
Issues/PRs references
Fixes #13911