-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add script to list third-party package status #7537
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
Conversation
Thanks for creating this! I'd be hesitant to put it in this repo until we have a concrete plan for how to use it. Should we host a page somewhere that shows this table? What would people use it for? |
Could we maybe do something like what we do with the "daily test"? We could create a github action that checks every night to see if any packages meet some criteria of obsolescence. If any do, it could automatically create an issue, and then we could decide whether or not it should be removed. It's not necessarily an either/or approach with this script — the two might work well together :) |
My preferred automation here is something "dependabot" style. Where we automatically get PRs updating the version in METADATA.toml and then stubtest tells us if things are different. |
This should be auto-generated nightly and put somewhere easily accessible. Unless we have a better idea, I could put it at I have no super concrete ideas how this will be used, although a few ideas include:
I'm actually working on a second script that will show us the completion status of all stubs, i.e. how many fields are still unannotated. (#7535 will help with that.) This could also be used for new contributors or to push nearly complete stubs to finalization. |
Maybe the published list should go to a GitHub issue on this repo. Issues can be edited from github actions, and it would be very discoverable for contributors, especially if we pin the issue. A potential downside: people would likely comment on the issue about package-specific things, and those comments would get outdated as the status of that package changes. |
I think we can lock issues so that only collaborators can comment on them? (Does GitHub Actions count as a collaborator?) |
@srittau, reckon we can close this now that we have https://alexwaygood.github.io/typeshed-stats/? :) |
This script lists all third-party package versions in typeshed and on PyPI and the latest release date of the upstream package. This allows us to quickly spot outdated packages.
By default, it prints the output in a tabular text format, but there is an HTML output version. Ideally, we'd run a daily GitHub action to publish the HTML page somewhere.
Example output:
The output will be colored if
termcolor
is installed.