Configuring pip
How to configure the pip package manager
This page explains how to configure the pip package manager to pull packages from the Seal artifact server based on your existing setup.
Make sure you have the access token for the server ready.
Pull directly from the artifact server
There are three main ways to configure the PyPI server:
If you're using the command line, replace the existing URL with (where
SEAL_TOKENstands for your token):
https://PROJECT_ID:[email protected]/simpleIf you're using a configuration file (usually
~/.pip/pip.conf), replace the existingindex-urlkey value with (whereSEAL_TOKENstands for your token andPROJECT_IDshould be the name of your project):
index-url = https://PROJECT_ID:[email protected]/simpleIf you're using the
requirements.txt, replace the existing--index-urlline with (whereSEAL_TOKENstands for your token andPROJECT_IDshould be the name of your project):
--index-url https://PROJECT_ID:[email protected]/simplePull using JFrog's Artifactory
Go to JFrog's Artifactory configuration and create a new remote PyPI repository.
In the Basic configuration, choose whatever Repository Key you like.
In the URL field set
https://pypi.sealsecurity.io/.In the User Name field use
jfrog.In the Password / Access Token field paste the Production token you created earlier.
In the Registry URL field (under PyPI Settings) set
https://pypi.sealsecurity.io/.
Click the
Testbutton. This will test whether the connection and authentication to the Seal artifact server is configured properly.Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.
Last updated