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
- Registre-se e obtenha um ID e Senha.
- 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>
- Registre o seu projeto no test PyPI:
python setup.py register -r https://testpypi.python.org/pypi
- Carregue o projeto:
python setup.py upload -r https://testpypi.python.org/pypi
- 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>
Comentários