Apologies if this has been asked before but I couldn’t for the life of me find an answer to what seems (to me) like a very basic question.
I have a set of .egg packages that do not contain the source (e.g. there is no setup.py file). I need to register and upload these packages to our inhouse pypi repository. Is there any way to do this, short of manually copying the package into the pypi repository directory and manually inserting the entries into the pypi db?
You’ll need to manually register these.
You can, however, use the PyPI web interface to do this. The central PyPI server has a
Package submissionlink in the left-hand menu bar, leading tohttp://pypi.python.org/pypi?%3Aaction=submit_form, presumably your local installation has the same.Your
.eggs are either directories, or zip files. If it is not a directory, you need to unzip the file to look inside (create a copy that you rename to have a.zipextension if that’ll make it easier for your tools to recognize it as a zip file).You’ll find a
EGG-INFOsubdirectory inside the egg, and inside of that you’ll find aPKG-INFOfile. You can upload this file to the package submission form to replace thesetup.py registercommand.Once registered, the web UI lets you navigate to the package, from there to the
filessection of a specific package and upload the egg file.