rest25/distutils/packageindex.rst => rest262/distutils/packageindex.rst
48the web interface.
49
50
51.. _pypirc:
52
53The .pypirc file
54================
55
n56-The format of the :file:`.pypirc` file is formated as follows::
n56+The format of the :file:`.pypirc` file is as follows::
57
n58-   [server-login]
n58+   [distutils]
59+   index-servers =
60+     pypi
61+ 
62+   [pypi]
59   repository: <repository-url>
60   username: <username>
61   password: <password>
62
n63-*repository* can be ommitted and defaults to ``http://www.python.org/pypi``.
n67+*repository* can be omitted and defaults to ``http://www.python.org/pypi``.
64
n69+If you want to define another server a new section can be created::
65
t71+   [distutils]
72+   index-servers =
73+     pypi
74+     other
75+ 
76+   [pypi]
77+   repository: <repository-url>
78+   username: <username>
79+   password: <password>
80+ 
81+   [other]
82+   repository: http://example.com/pypi
83+   username: <username>
84+   password: <password>
85+ 
86+The command can then be called with the -r option::
87+ 
88+   python setup.py register -r http://example.com/pypi
89+ 
90+Or even with the section name::
91+ 
92+   python setup.py register -r other
93+ 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op