The procedure for creating a Smart Remote repository for PyPI involves an additional step, as described below.
To create a PyPI Smart Remote repository:
On the first Artifactory instance (
JFROG_INSTANCE_1
), do the following:In the Administration module, go to Repositories > Create a Repository > Remote.
Choose PyPI as the package type.
In the Basic tab, enter a repository key. The following default settings for PyPI are predefined:
The URL is set to https://files.pythonhosted.org.
The Registry URL is set to https://pypi.org.
Enter additional basic and advanced settings as required, and then click Create Remote Repository.
You now have a remote repository that points to the official PyPI upstream registry.
On the second Artifactory instance, set up a Smart Remote repository that proxies the first repository:
Create a remote PyPI repository, as described above.
Enter a repository key and enter additional settings as required.
Modify the URL and Registry URL fields as follows:
URL:
https://<JFROG_INSTANCE_1_URL>/artifactory/<REPO_KEY_IN_JFROG_INSTANCE_1>
Registry URL:
https://<JFROG_INSTANCE_1_URL>/artifactory/api/pypi/<REPO_KEY_IN_JFROG_INSTANCE_1>
Important
<REPO_KEY_IN_JFROG_INSTANCE_1>
refers to the name of the PyPI remote repository you created on the first Artifactory instance (<JFROG_INSTANCE_1>
) in step 1.Enter your username and password for
JFROG_INSTANCE_1
. Alternatively, enter a valid access token issued byJFROG_INSTANCE_1
.Click the Test button to verify the connection to the first Artifactory instance.
To configure your PyPI client with the newly created Smart Remote repository, see Connect Your PyPI Client to Artifactory.