Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create local own pypi repository index without mirror?

Tags:

python

pip

pypi

We have several own python packages and want to create local pypi repository for them using simple interface like https://pypi.python.org/simple/

This repository I want to create for local only without any mirrors due to security reason, and it will be put under apache's control

The command pypimirror looks has to be initialized once, which needs to mirror.

How can I generate PyPi Simple Index based on local python packages.

Any other simple scripts for this ?

like image 847
Larry Cai Avatar asked Aug 05 '13 06:08

Larry Cai


People also ask

What is PyPI simple index?

pypi-simple 0.10. 0 pypi-simple is a client library for the Python Simple Repository API as specified in PEP 503 and updated by PEP 592, PEP 629, PEP 658, and PEP 691.


2 Answers

We had a similar need at my company. Basically how can we upload "closed source" packages to an index while being able to install them as if they were on PyPI?

We have sponsored a project called devpi which acts as a PyPI cache (packages you access from PyPI will be cached on your server) as well as a powerful and fast index server. The documentation is available at http://doc.devpi.net/latest/.

Next on the roadmap is mirroring for multi geos deployment. To kick the tires on your machine takes about 5 minutes (look at the quick start guides). Finally devpi is compatible with both pip and easy_install (i.e. you do not need the devpi client installed on your machine).

Hope this help.

like image 145
Laurent Brack Avatar answered Sep 24 '22 19:09

Laurent Brack


Since you asked to answer here:

Take a look at pip2pi, it seems to be exactly what you are looking for.

like image 32
K Z Avatar answered Sep 24 '22 19:09

K Z