Steps to create a Pypi Smart Remote Repository:

ARTIFACTORY: Step-by-step guide to configure Pypi Smart Remote Repository

AuthorFullName__c
Vaibhav Jain
articleNumber
000005888
ft:sourceType
Salesforce
FirstPublishedDate
2023-10-12T18:02:19Z
lastModifiedDate
2023-10-12
VersionNumber
3

Step 1: In the art1 instance, go to the welcome <username> tab and select ‘New Remote(/local) Repository‘ to create a source repository.

User-added image

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.

User-added image

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/

User-added image

Step 4: Under PyPI Settings tab, set the Registry URL to https://host:port/artifactory/api/pypi/repoKey/

User-added image

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:
  1. smart-remote-repositories
  2. setting-up-pypi-repository-in-minutes-with-jfrog-artifactory/
  3. PyPI Repositories