For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuring Pipenv

Point Pipenv at the Seal Artifact Server using a source in the Pipfile.

Pipenv reads package sources from the [[source]] blocks in the Pipfile. Replacing the default PyPI source with Seal makes every package resolve from Seal.

Configuration

Replace the [[source]] block in the project's Pipfile:

[[source]]
url = "https://${SEAL_PROJECT}:${SEAL_TOKEN}@pypi.sealsecurity.io/simple"
verify_ssl = true
name = "seal"

Set SEAL_PROJECT to the Seal Project ID and SEAL_TOKEN to your production token. Pipenv expands the environment variables when it reads the URL, and Pipfile.lock keeps the unexpanded placeholders, so the credentials stay out of both files. Commit the change so the configuration is version-controlled with the manifest.

Run pipenv lock once after changing the source so Pipfile.lock resolves against Seal, then pipenv sync installs from it as usual.

Verify

pipenv lock --verbose

The verbose output shows each index URL. The URLs should start with https://pypi.sealsecurity.io/simple.

Last updated