-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add a command for managing pip's cache #4685
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@pradyunsg Is there currently a single PR that addresses this issue? What is the latest WIP on this issue? |
No, there isn't. If any work happens, this issue would have updates on it. BTW, if someone is willing to contribute to pip, this would be a great place to do so. :) |
FWIW, I'm open guiding someone with this, if they are willing to work on it. |
@pradyunsg, what documents should a new dev read on pip 10+ internals? How does CI work, assuming there's no CD (pip does seem to version quickly, but... it is an open source project). |
Is anyone currently working on this? If not, I'd be happy to work on it. As best I can gather from poking around:
@pradyunsg ^does that all seem correct, to you? And is there anything else I'd need to be aware of? |
There is none yet. pip's internals were never documented. I do want to write an "overview" to add to the development documentation of pip, but haven't been able to take out time for it. |
Yes. It is correct. I think you'll also need to know what the structure of the cache is and how CacheControl manages things to be able to write a cache command. The existing PRs should serve as a useful reference. |
You are welcome to. :) Feel free to ping me for questions; pip developers hang out on #pypa-dev on Freenode, if you wanna have a chat. |
FYI, I'm planning to work on this next week. Will leave a message here or in #pypa-dev if I get stuck. 🙂 |
I have a still-in-progress PR for this over at #6391. |
Any progress on this? Been almost a year. |
It is not that hard to just delete it, once you find it, right? Perhaps simply a command that prints out the cache location would be a small, productive step. |
Not exactly what is needed, but I have a script that deletes any files in ~./cache/pip older than 120 days and leaves the rest intact. |
This has been added in #6391 (yay @duckinator)! It will be a part of pip 20.1's beta release, which is due tomorrow. We'd appreciate any amount of user testing that the community could do to provide feedback on this new command! This issue is kept open for minor discussions and positive feedback (we're humans!), and I encourage users to file new issues to report problems/concerns/issue with the new command. :) |
I'll tell my developers (I am not a manager, I'm the techiest techie) tomorrow. |
@pradyunsg I think this can be closed now, yeah?~ :3 |
Yeas! |
pip's cache is currently a black box that the users can't really inspect. This is not the nicest of experiences. Adding a pip cache to allow interacting with the cache (much like the new
pip config
) would be a good way to fix that.Here's a proposal for the same:
PS: This is the same idea as
pip cache
as expressed in #3968 and #3734. I'm just creating a tracking issue for it since both the PR authors seem to have lost interest and having an open issue for tracking a new feature seems cleaner to me.The text was updated successfully, but these errors were encountered: