ARTIFACTORY: What to Do When You Can’t Connect to pypi.python.org

Shai Ben-Zvi
2021-09-13 10:06

ARTIFACTORY: What to Do When You Can't Connect to pypi.python.org

The Python Package Index (PyPI) is a repository of software packages supplied by the worldwide community of Python developers and maintained by the Python Software Foundation.

Until April 30, 2018, the PyPI was available at https://pypi.python.org. Thereafter, PyPI underwent changes it was announced that this URL would be deprecated and the PyPI public repository would only be available at https://pypi.org. In addition, the internal structure of the PyPI index changed.

How the above affects you?

These are breaking changes. If you're using Artifactory remote PyPI repositories that proxy the PyPI index at its old URL (https://pypi.python.org), you're no longer resolving PyPI packages from these remote repositories.

Affected versions

If you are using an older version of JFrog Artifactory, you need to upgrade to one of the patches released on April 18  2018 (5.8.9, 5.9.5 5.10.3) or later patches for the same major version.

Resolution

To align with the changes introduced by PyPi on April 18 2018, we released Artifactory patch versions 5.8.9, 5.9.5 and 5.10.3, which supports the new PyPI repository at its new URL and with its new structure.

For more details regarding the latest relevant patches, please refer to our Release Notes.

Instructions:

To continue working with Artifactory remote PyPI repositories as before, please follow the below instructions:

  1. Upgrade Artifactory to the latest patch corresponding to your current version.
  2. After the upgrade, in the PyPI remote repository configuration:

User-added image

Note: The Registry URL field is only available in Artifactory versions 5.10.3 and above. This field could not be added to earlier versions, hence, not available in the patches for Artifactory 5.8.x and Artifactory 5.9.x. In these patches, the only change you need to follow is to set the URL field to https://pypi.org. The https://files.pythonhosted.org is automatically extracted from a system property, artifactory.pypi.default.download.url which is set to this value by default.

Still Having Problems?

As announced by the PyPI administrators, the new PyPI index is still in Beta. We recommend following PyPI announcements to see when the new index is officially released.

JFrog will continue to support you through this transition. If you have any problems using the new PyPI index in Artifactory, or have any other questions regarding this change, please contact support@jfrog.com and we will be happy to assist.

 

Published: April. 11, 2018
Last updated: May. 30, 2021

Keywords: pypi, python