pypiserver / pypiserver

Minimal PyPI server for uploading & downloading packages with pip/easy_install
Other
1.81k stars 299 forks source link

Provide a code snippet for refreshing all exiting packages with newer versions from public pypi.python.org #135

Closed ssbarnea closed 6 years ago

ssbarnea commented 8 years ago

It would extremely helpful if we could have a small example (probably in bash) that could be used to refresh all the local packages with newer versions from pypi.python.org.

People could put this in a cronjob or make a Jenkins job that is run on demand, probably at the end of the sprint.

bibby commented 8 years ago

project bandersnatch may be more suitable to mirror pypi packages, according to pypi.

mplanchard commented 8 years ago

@ssbarnea we already provide output of the commands necessary for upgrading packages with the -U option on the pypiserver. I suppose I could write an example of how to take the output of that and pass it through xargs or something to go ahead and run all those commands.

ankostis commented 8 years ago

@mplanchard this probably moves to next release?

mplanchard commented 8 years ago

Agreed. I have not found the time to get to this, but I will ensure it gets done when I get back from vacation.

mplanchard commented 6 years ago

I know it's been a while on this one, but I don't feel like this is anything that needs to be addressed.

See this particular line from the docs:

After that it shows a pip command line which can be used to update a one package. Either copy and paste that or run pypi-server -Ux in order to really execute those commands.

@ssbarnea I believe that is exactly what you need. I'm going to close this now. Please feel free to reply if that functionality isn't working or is not what you need.