realiti4 / pip-upgrade

Upgrade your pip packages with one line. A fast, reliable and easy tool for upgrading all of your packages while not breaking any dependencies
MIT License
34 stars 3 forks source link

Add config file for persisting options #8

Closed TabulateJarl8 closed 3 years ago

TabulateJarl8 commented 3 years ago

I needed to be able to permanently ignore certain packages on my system, so I made this pull request that adds that ability. When the pip-upgrade command is first run, it will create a config file called .pipupgrade.ini in the user's home directory. This config file will allow users to permanently supply the novenv argument and also add permanently ignored packages. This still works with ignoring packages with --exclude, and --exclude will just add on to whatever is written in the config file. I've documented all of this in the README. I wasn't sure what type of release you would want this to be, so I didn't bump the version. If you would like me to do that, just tell me what to bump it to.

realiti4 commented 3 years ago

Hi, thank you for your contribution. It is looking good to me. I was planning a feature that lets user defined packages to be upgraded from Gohlke's packages. A config file will be really useful there as well. I think the version has already been bumped, so it is good as it is.