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 PyPI repository
There are three main ways to configure the PyPI server:
If you're using the command line, replace the existing URL with (where
SEAL_TOKEN
stands for your token):
If you're using a configuration file (usually
~/.pip/pip.conf
), replace the existingindex-url
key value with (whereSEAL_TOKEN
stands for your token andPROJECT_ID
should be the name of your project):
If you're using the
requirements.txt
, replace the existing--index-url
line with (whereSEAL_TOKEN
stands for your token andPROJECT_ID
should be the name of your project):
Pull from 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
Test
button. 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