A scriptable approach to deleting many packages
We upload our nightly builds to our devpi server. There are a lot and the files are big so I like to delete files over 30 days old (plus they are no longer useful at that age). What is the best way to do this in an automated fashion with devpi? Using the devpi client to do it manually it not appealing. I could script something "devpi remove -y pkgname>=2014.6.dev1;<2014.7.dev1" that would remove all 30 files 2014.6.dev1...2014.6.dev30? Any other ideas? Cheers Craig
Hi Craig, On Fri, Jul 11, 2014 at 14:44 -0700, Craig Bruce wrote:
We upload our nightly builds to our devpi server. There are a lot and the files are big so I like to delete files over 30 days old (plus they are no longer useful at that age).
What is the best way to do this in an automated fashion with devpi? Using the devpi client to do it manually it not appealing.
Why not? Positively asking, what would you find more appealing or better fitting for your approch than the below invocation?
I could script something "devpi remove -y pkgname>=2014.6.dev1;<2014.7.dev1" that would remove all 30 files 2014.6.dev1...2014.6.dev30?
Any other ideas?
You could go against the json interface yourself but "devpi remove" is just a thin wrapper around it, shiedling you from the changes e.g. that take place between 1.2.2 and 2.0 now. You can look at devpi/list_remove.py in the repo for what it does. best, holger
Cheers Craig
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at http://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
participants (2)
-
Craig Bruce
-
holger krekel