Skip to content

Commit d7a0b6f

Browse files
committed
docs: include pip index configuration in PyPI migration guide
1 parent ded8541 commit d7a0b6f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎source/guides/migrating-to-pypi-org.rst‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@ Downloading packages
135135

136136
``pypi.org`` is the default host for downloading packages.
137137

138+
Check for an old index URL in your pip configuration as well as in your upload
139+
tool configuration. For example, an old :file:`pip.conf` (or :file:`pip.ini`
140+
on Windows) might contain:
141+
142+
.. code-block:: ini
143+
144+
[global]
145+
index-url = https://pypi.python.org/pypi/
146+
147+
Remove that override to use pip's current default index, or update it to
148+
``https://pypi.org/simple/``. Run ``python -m pip config debug`` to find
149+
which pip configuration files are active and where an override comes from.
150+
Keep intentional custom package-index or mirror settings unchanged.
151+
152+
138153
Managing published packages and releases
139154
----------------------------------------
140155

0 commit comments

Comments
 (0)