Added updates with respect to recent changes to TimedRotatingFileHandler.
[python.git] / Doc / distutils / packageindex.rst
blob8242012816ead0a9f646d757c4a2759d4665ba3f
1 .. _package-index:
3 **********************************
4 Registering with the Package Index
5 **********************************
7 The Python Package Index (PyPI) holds meta-data describing distributions
8 packaged with distutils. The distutils command :command:`register` is used to
9 submit your distribution's meta-data to the index. It is invoked as follows::
11    python setup.py register
13 Distutils will respond with the following prompt::
15    running register
16    We need to know who you are, so please choose either:
17     1. use your existing login,
18     2. register as a new user,
19     3. have the server generate a new password for you (and email it to you), or
20     4. quit
21    Your selection [default 1]:
23 Note: if your username and password are saved locally, you will not see this
24 menu.
26 If you have not registered with PyPI, then you will need to do so now. You
27 should choose option 2, and enter your details as required. Soon after
28 submitting your details, you will receive an email which will be used to confirm
29 your registration.
31 Once you are registered, you may choose option 1 from the menu. You will be
32 prompted for your PyPI username and password, and :command:`register` will then
33 submit your meta-data to the index.
35 You may submit any number of versions of your distribution to the index. If you
36 alter the meta-data for a particular version, you may submit it again and the
37 index will be updated.
39 PyPI holds a record for each (name, version) combination submitted. The first
40 user to submit information for a given name is designated the Owner of that
41 name. They may submit changes through the :command:`register` command or through
42 the web interface. They may also designate other users as Owners or Maintainers.
43 Maintainers may edit the package information, but not designate other Owners or
44 Maintainers.
46 By default PyPI will list all versions of a given package. To hide certain
47 versions, the Hidden property should be set to yes. This must be edited through
48 the web interface.
51 .. _pypirc:
53 The .pypirc file
54 ================
56 The format of the :file:`.pypirc` file is as follows::
58    [server-login]
59    repository: <repository-url>
60    username: <username>
61    password: <password>
63 *repository* can be omitted and defaults to ``http://www.python.org/pypi``.