Step 1: In the art1 instance, go to the welcome <username> tab and select ‘New Remote(/local) Repository‘ to create a source repository.
Step 2: Select the PyPI Repository type and provide the name to it. Here, we can see the remote repository URL is pointing to https://files.pythonhosted.org by default, and the registry URL is set to https://pypi.org. (Please note these two URLs are most important to keep in mind while configuring smart remote on another server). Click create.
Step 3: Now in another instance, art2, create a new remote repository type PyPI. In the URL, Enter the repository URL of art1 as we will be making the art2 remote repository as a Smart repository. Also, enter the username and password and test the connection. For example, https://host:port/artifactory/repoKey/
Step 4: Under PyPI Settings tab, set the Registry URL to https://host:port/artifactory/api/pypi/repoKey/
Step 5: Enable the List Remote folder items checkbox and save it.
Step 6: Go to Artifactory UI and expand the remote repository, all the packages will be listed. Also, you can test the same by configuring the new smart repository with the PIP client according to Set Me Up instructions and installing packages.
And we are done with the setup of PyPI Smart Remote Repository.
For more information on PyPI Repositories and Smart Remote Repositories, you can refer to the below documentation: