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 --verboseThe verbose output shows each index URL. The URLs should start with https://pypi.sealsecurity.io/simple.
Related
Configuring pip: the pip equivalent for the same ecosystem.
Configuring PDM: the PDM equivalent for the same ecosystem.
Last updated