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

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

Products
Frog_Artifactory
Content Type
User_Guide
AuthorFullName__c
Vaibhav Jain, Jordan Tangy
articleNumber
000005888
ft:sourceType
Salesforce
FirstPublishedDate
2023-10-12T18:02:19Z
lastModifiedDate
2025-05-05
VersionNumber
5
In this article, we'll walk through the steps to create a PyPI Smart Remote repository in Artifactory.
First, we'll configure a remote repository that points to the official PyPI upstream registry. Then, we'll set up a Smart Remote repository in a second Artifactory instance that proxies the first repository.

Steps to create a Pypi Smart Remote Repository:

1. On the first Artifactory instance (e.g., JFROG_INSTANCE_1):
  • Navigate to Administration → Repositories → Create a Repository, and select Remote:
    User-added image
    
 
2 . On the second Artifactory instance:
  • Create another Remote repository with the PyPI package type and assign it a Repository Key of your choice.
     
  • Modify the URL and Registry URL 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>
Note: <REPO_KEY_IN_JFROG_INSTANCE_1> refers to the name of the PyPI remote repository you created in the first Artifactory instance (JFROG_INSTANCE_1).

Provide your username and password for JFROG_INSTANCE_1, or use a valid Access Token (issued by JFROG_INSTANCE_1). Then, click the ‘Test’ button to verify the connection to the other Artifactory instance.
 
User-added image 

Finally, to configure the PIP client with the newly created Smart Remote repository, please refer to the instructions provided on the ‘Set Me Up’ page under Platform (formerly Application) → Artifactory → Artifacts → Set Me Up.
User-added image