Configuring Poetry

How to configure the Poetry package manager

This page explains how to configure the Poetry 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

In the root of the project run (where SEAL_TOKEN stands for your token and PROJECT_ID should be the name of your project):

poetry source add --default seal https://PROJECT_ID:SEAL_TOKEN@pypi.sealsecurity.io/simple

Pull from JFrog's Artifactory

  1. Go to JFrog's Artifactory configuration and create a new remote PyPI repository.

    1. In the Basic configuration, choose whatever Repository Key you like.

    2. In the URL field set https://pypi.sealsecurity.io/.

    3. In the User Name field use jfrog.

    4. In the Password / Access Token field paste the Production token you created earlier.

    5. In the Registry URL field (under PyPI Settings) set https://pypi.sealsecurity.io/.

  2. Click the Test button. This will test whether the connection and authentication to the Seal artifact server is configured properly.

  3. Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.

Last updated