简体   繁体   中英

How to upload packages to PyPI server without setup.py?

I've setup my own PyPI server and I periodically backup all the packages present (their .tar.gz to be exact) in the server. How do I upload them back to a new PyPI server in case of recovery or migration of hardware? (I do not want to rebuild everything and just use the existing .tar.gz files)

I'm using localshop to run the PyPI server.

Update: I found out twine can do this quite easily. Used this to upload my packages

twine upload -r test dist/PACKAGENAME-VERSION.tar.gz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM