Configuring pip to work with extrapypi

Uploading packages

extrapypi is compliant with setuptools / twine, you just need to update your .pypirc

[distutils]
index-servers =
    local

[local]
username=myuser
password=mypassword
repository=https://myextrapypiurl/simple/

That’s it, you can now upload packages to your extrapypi instance

Using setuptools

python setup.py bdist_wheel upload -r local

Or twine

twine upload -r local dist/extra_pypi-0.1-py3.5.egg

Installing packages

Two choices here :

Using CLI argument when calling pip

pip install extrapypi --extra-index-url https://user:password@myextrapypiurl/simple/

Or update your pip.conf file

[global]
extra-index-url = https://user:password@myextrapypiurl/simple/