Test PyPI Server

Introdução

https://testpypi.python.org/pypi

O https://testpypi.python.org/pypi é equivalente ao https://pypi.python.org/pypi, e tem a finalidade de teste e aprendizado

Procedimentos

  1. Registre-se e obtenha um ID e Senha.
  2. Em posse de suas credenciais do test PyPI crie o arquivo ~/.pypirc com o conteúdo abaixo:
    [distutils]
    index-servers=
        pypi
        pypitest
    
    [pypitest]
    repository = https://testpypi.python.org/pypi
    username = <your user name goes here>
    password = <your password goes here>
    
    [pypi]
    repository = https://pypi.python.org/pypi
    username = <your user name goes here>
    password = <your password goes here>
    
  3. Registre o seu projeto no test PyPI:
    python setup.py register -r https://testpypi.python.org/pypi
    
  4. Carregue o projeto:
    python setup.py upload -r https://testpypi.python.org/pypi
    
  5. Agora o seu projeto já está disponível em test PyPI, e poderá ser instalado com os comandos pip ou easy_install:
    pip install -i https://testpypi.python.org/pypi <package name>
    
    easy_install -i https://testpypi.python.org/pypi <package name>
    

Referencias

https://wiki.python.org/moin/TestPyPI

Comentários