Éric Araujo | 3a9f58f | 2011-06-01 20:42:49 +0200 | [diff] [blame] | 1 | .. _packaging-pysetup-config: |
| 2 | |
| 3 | ===================== |
| 4 | Pysetup Configuration |
| 5 | ===================== |
| 6 | |
| 7 | Pysetup supports two configuration files: :file:`.pypirc` and :file:`packaging.cfg`. |
| 8 | |
| 9 | .. FIXME integrate with configfile instead of duplicating |
| 10 | |
| 11 | Configuring indexes |
| 12 | ------------------- |
| 13 | |
Éric Araujo | 5da37be | 2011-06-01 20:44:40 +0200 | [diff] [blame] | 14 | You can configure additional indexes in :file:`.pypirc` to be used for index-related |
| 15 | operations. By default, all configured index-servers and package-servers will be used |
Éric Araujo | 3a9f58f | 2011-06-01 20:42:49 +0200 | [diff] [blame] | 16 | in an additive fashion. To limit operations to specific indexes, use the :option:`--index` |
| 17 | and :option:`--package-server options`:: |
| 18 | |
| 19 | $ pysetup install --index pypi --package-server django some.project |
| 20 | |
| 21 | Adding 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> |