ARTIFACTORY: What to Do When You Can't Connect to pypi.python.org
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.
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.
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.
To continue working with Artifactory remote PyPI repositories as before, please follow the below instructions:
- Upgrade Artifactory to the latest patch corresponding to your current version.
- After the upgrade, in the PyPI remote repository configuration:
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?
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 email@example.com and we will be happy to assist.
Published: April. 11, 2018
Last updated: May. 30, 2021
Keywords: pypi, python