- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
DRY common package managers install logic #6685
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
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
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! Thanks, just one comment about a comment
9aa30f9    to
    69b347f      
    Compare
  
    | Also passing CI if you don't mind (just a few import deletions) https://results.pre-commit.ci/run/github/678526156/1759731371.W4HPrCcLRxCk3SwUIr1C_w | 
69b347f    to
    852e080      
    Compare
  
    | 
 Done, as well as other typing errors etc | 
…thod (a preparation for marimo-team#6684 and good organization regardless)
852e080    to
    18f8b30      
    Compare
  
    | IIUC the failing CI test now is unrelated to this change | 
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!
📝 Summary
This is a cleanup that deduplicates repeating code and in the process extracts the
install_commandmethod that will be needed by #6684🔍 Description of Changes
Package manager's
_installmethod contains duplication for all package managers except micropip. This change provides a default implementation that uses a newinstall_commandmethod, both making the code more modular and less repetitive and preparing for future additional uses of the new method.📋 Checklist