| the web interface. |
| |
| |
| .. _pypirc: |
| |
| The .pypirc file |
| ================ |
| |
n | The format of the :file:`.pypirc` file is formated as follows:: |
n | The format of the :file:`.pypirc` file is as follows:: |
| |
n | [server-login] |
n | [distutils] |
| index-servers = |
| pypi |
| |
| [pypi] |
| repository: <repository-url> |
| username: <username> |
| password: <password> |
| |
n | *repository* can be ommitted and defaults to ``http://www.python.org/pypi``. |
n | *repository* can be omitted and defaults to ``http://www.python.org/pypi``. |
| |
n | If you want to define another server a new section can be created:: |
| |
t | [distutils] |
| index-servers = |
| pypi |
| other |
| |
| [pypi] |
| repository: <repository-url> |
| username: <username> |
| password: <password> |
| |
| [other] |
| repository: http://example.com/pypi |
| username: <username> |
| password: <password> |
| |
| The command can then be called with the -r option:: |
| |
| python setup.py register -r http://example.com/pypi |
| |
| Or even with the section name:: |
| |
| python setup.py register -r other |
| |