blob: a473bfe35fa8cc235f5751bb0886fc3f05b57c91 [file] [log] [blame]
Éric Araujo3a9f58f2011-06-01 20:42:49 +02001.. _packaging-pysetup-config:
2
3=====================
4Pysetup Configuration
5=====================
6
7Pysetup supports two configuration files: :file:`.pypirc` and :file:`packaging.cfg`.
8
9.. FIXME integrate with configfile instead of duplicating
10
11Configuring indexes
12-------------------
13
Éric Araujo5da37be2011-06-01 20:44:40 +020014You can configure additional indexes in :file:`.pypirc` to be used for index-related
15operations. By default, all configured index-servers and package-servers will be used
Éric Araujo3a9f58f2011-06-01 20:42:49 +020016in an additive fashion. To limit operations to specific indexes, use the :option:`--index`
17and :option:`--package-server options`::
18
19 $ pysetup install --index pypi --package-server django some.project
20
21Adding indexes to :file:`.pypirc`::
22
23 [packaging]
24 index-servers =
25 pypi
26 other
27
28 package-servers =
29 django
30
31 [pypi]
32 repository: <repository-url>
33 username: <username>
34 password: <password>
35
36 [other]
37 repository: <repository-url>
38 username: <username>
39 password: <password>
40
41 [django]
42 repository: <repository-url>
43 username: <username>
44 password: <password>