Skip to content
CAI
Software that uses CAICheck a score

pypa/pipenv

62.3

Adequate · 16 November 2026

89.8k

lines of production code

Python

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added PEP 751 pylock.toml example files

The examples directory now includes a \Pipfile.with\_pylock\ configuration file and a corresponding \pylock.toml\ lock file to demonstrate PEP 751 support. The \Pipfile.with\_pylock\ file shows how to enable pylock generation via the \use\_pylock\ setting, while the \pylock.toml\ file provides a concrete example of the resulting lock format, including dependency groups, environment markers, and wheel hashes.

examples · high confidence

Introduce automated release and vendoring tasks

The project now includes a new \tasks\ module that provides automated workflows for managing releases and vendor dependencies. Users can now utilize invoke tasks to handle version bumping, changelog generation via Towncrier, building distribution packages (sdist/wheel), and uploading to PyPI. The release process supports dry runs, pre-release tagging, and resuming interrupted releases, while the vendoring task allows for updating third-party dependencies.

tasks · high confidence

Introduce vendoring task infrastructure for managing patched and vendored dependencies

Added a new vendoring task script (\tasks/vendoring/\_\init\\_.py\) that automates the process of downloading, patching, and renaming third-party libraries (such as pip, requests, and urllib3) into the \pipenv.patched\ and \pipenv.vendor\ namespaces. This tool handles import rewriting, license collection, and patch application, replacing previous manual or fragmented approaches to dependency isolation.

tasks/vendoring · high confidence

Repository scaffolding and developer tooling configuration

This change establishes the project's foundational configuration and development infrastructure. It introduces standard repository files including .editorconfig, .gitattributes, and a comprehensive .gitignore, alongside a .pre-commit-config.yaml that enforces code quality using ruff and other hooks. The project's build and release processes are now managed via a Makefile and a pyproject.toml, replacing previous ad-hoc scripts. Documentation is standardized with a new CHANGELOG.md (replacing HISTORY.txt), CONTRIBUTING.md, and a SECURITY.md policy. Additionally, the repository now includes submodules for test artifacts and a new .readthedocs.yaml to configure documentation builds.

(repo-wide) · high confidence

pipenv version 2026.8.0 with new \[scripts\] sequence support and shell detection fixes

This release updates pipenv to version 2026.8.0 and introduces support for sequential script execution in the Pipfile's \\[scripts\]\ section, allowing users to define an array of commands that run in order (stopping at the first failure) and accept extra arguments appended to the final command. It also adds support for inline environment variable assignments in scripts (e.g., \FOO=bar python script.py\) and improves shell detection logic, particularly for Windows environments where it now prefers the \$SHELL\ variable over process-tree detection to avoid confusion by shims. Additionally, the release includes a new \pipenv/cmdparse.py\ module for script parsing, updates the man page, and refactors exception handling to use rich formatting. Also in this area: 2 commits (0 fixes) modifying pipenv; 4 commits (3 fixes) fixing pipenv/utils; 2 commits (1 fix) modifying pipenv; Support for UTF-8 with BOM in configuration files; Benchmark runner hardware recording and internal type-checking fixes; and 22 more.

pipenv · medium confidence · unverified

Removals

Removal of pipfile Python package source code

The pipfile Python package has been removed from the repository. This change deletes the core implementation files, including the module metadata (\_\about\\.py), the public API entry point (\\init\\_.py), JSON serialization helpers (\_json.py), and the main parsing and loading logic (api.py). Users relying on this package as a library to parse or manipulate Pipfiles will no longer have access to these components.

pipfile · high confidence

Behavioural changes

Fix pipdeptree import paths and add ruamel vendoring patch

Updates the vendored pipdeptree to ensure it correctly locates its dependencies by modifying sys.path in \_\main\\.py and switching the tomli import to use the patched pip vendor copy for Python versions below 3.11. Additionally, adds a new patch file for ruamel to handle its \\init\\_.py import structure.

tasks/vendoring/patches/vendor · high confidence

Updated vendored pip patches for compatibility, safety, and resolution fixes

This update refreshes the vendored pip patches to support newer pip versions and address several compatibility and security issues. It adds a fallback to sysconfig when distutils is missing (Python 3.12+), fixes editable VCS extras handling, and corrects wheel name casing to preserve original directory structures. The resolver now tolerates missing upload times and allows prerelease fallback when no final releases match. A new patch enforces stricter tarfile link-target validation to prevent path traversal vulnerabilities ([GHSA redacted]). Additionally, it introduces an ignore-compatibility flag for package finding, restricts index lookups to project-specific URLs, and resolves circular import issues in progress bars.

tasks/vendoring/patches/patched · high confidence

Test coverage

Add Git submodule references for test artifacts; Added frozen PyPI simple-API test fixtures for PEP 691 and PEP 503; Added test fixtures for Cython and legacy backend packages; Added test fixtures for fake and legacy backend packages; Added unit tests for resolver, credential safety, and routine context routing; New integration test suite for pipenv; Test infrastructure updates and fixture initialization.

Dependencies

Migrate to pyproject.toml and update dependency specifications

The project has migrated its build configuration from setup.py to pyproject.toml, defining the package metadata, build system (setuptools\>=67), and runtime dependencies (certifi, packaging\>=22, setuptools\>=67, virtualenv\>=20.26.6) in a single manifest. This change also updates the minimum supported Python version to 3.10 and introduces optional dependency groups for completion (argcomplete\>=3.1), development (black, flake8, sphinx, towncrier), safety (safety\>=3.0.0), and testing (pytest, pytest-rerunfailures, pytest-timeout, pytest-xdist). Additionally, the legacy requirements.txt file has been removed, and Pipfile/Pipfile.lock files have been updated or added for the root, benchmarks, and examples directories to reflect these new dependency constraints and lockfiles.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63.8 → 62.3 (-1.5)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 82.1 → 79.4 (-2.7)
  • Architecture 88.8 → 89.7 (+0.9)
  • Maturity 56.2 → 54.1 (-2.1)
  • Readiness 57.1 → 55.5 (-1.6)
  • Security 79.8 → 79.6 (-0.2)
  • Performance 88.6 → 88.6 (0.0)

Resolved (11)

  • Duplicated block (23 lines × 2) (pipenv/routines/check.py)
  • FileTooLong: _internal/exceptions.py (pipenv/patched/pip/_internal/exceptions.py)
  • High CVE: [GHSA redacted] (pipenv/patched/pip/_vendor/bom.cdx.json)
  • High CVE: [GHSA redacted] (pipenv/patched/pip/_vendor/bom.cdx.json)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (pipenv/patched/pip/_internal/commands/download.py)
  • Off-boarding risk: anonymized user #1
  • Projects may be oversized for their cohesion
  • TodoComment (pipenv/patched/pip/_internal/metadata/base.py)
  • TodoComment (pipenv/patched/pip/_internal/utils/pylock.py)
  • TodoComment (pipenv/patched/pip/_internal/utils/pylock.py)
  • TodoComment (pipenv/utils/markers.py)

New (69)

  • Critical vulnerability: [GHSA redacted] (examples/pylock.toml)
  • Duplicated block (11 lines × 2) (pipenv/cli/command.py)
  • Duplicated block (23 lines × 2) (pipenv/routines/check.py)
  • Edited copies of one member (3 members, 16+ corresponding lines) (pipenv/routines/audit.py)
  • Edited copies of one member (3 members, 32+ corresponding lines) (pipenv/routines/audit.py)
  • Edited copy of a member (10 corresponding lines) (pipenv/patched/pip/_internal/build_env/venv.py)
  • Edited copy of a member (10 corresponding lines) (pipenv/utils/dependencies.py)
  • Edited copy of a member (11 corresponding lines) (pipenv/patched/pip/_internal/vcs/git.py)
  • Edited copy of a member (11 corresponding lines) (pipenv/resolver/pure_python_metadata.py)
  • Edited copy of a member (16 corresponding lines) (pipenv/patched/pip/_internal/operations/prepare.py)
  • Edited copy of a member (16 corresponding lines) (pipenv/patched/pip/_internal/resolution/resolvelib/candidates.py)
  • Edited copy of a member (17 corresponding lines) (pipenv/patched/pip/_internal/utils/compatibility_tags.py)
  • Edited copy of a member (17 corresponding lines) (pipenv/patched/pip/_internal/vcs/bazaar.py)
  • Edited copy of a member (17 corresponding lines) (pipenv/utils/locking.py)
  • Edited copy of a member (18 corresponding lines) (pipenv/environment.py)
  • Edited copy of a member (19 corresponding lines) (pipenv/patched/pip/_internal/cli/req_command.py)
  • Edited copy of a member (20 corresponding lines) (pipenv/patched/pip/_internal/models/format_control.py)
  • Edited copy of a member (24 corresponding lines) (pipenv/patched/pip/_internal/commands/cache.py)
  • Edited copy of a member (28 corresponding lines) (pipenv/resolver/core.py)
  • Edited copy of a member (33 corresponding lines) (pipenv/patched/pip/_internal/operations/prepare.py)
  • …and 49 more

Changes since last survey

  • 28 commits — 12 feature/other, 16 fixes

By area

  • (repo) — 11 commits
  • pipenv/routines — 3 commits
  • (root) — 2 commits
  • news/quiet-scan-stderr.bugfix.rst — 2 commits
  • pipenv/version.py — 2 commits
  • docs/resolver_backends.md — 1 commit
  • news/6780.vendor.rst — 1 commit
  • news/6781.bugfix.rst — 1 commit
  • news/6782.bugfix.rst — 1 commit
  • pipenv/exceptions.py — 1 commit
  • pipenv/patched — 1 commit
  • tasks/vendoring — 1 commit
  • tests/unit — 1 commit

Notable commits

  • fix: Fix latent bugs surfaced by CodeQL code quality scan
  • fix: Fix missing f-string in the flattened-subdep license path
  • fix: Merge pull request #6777 from nk-batman21/fix/graph-non-utf8-stdout
  • fix: Merge pull request #6778 from pcbeingused333/fix/scan-check-exit-nonzero-safety-missing
  • fix: Merge pull request #6779 from b84330808/fix-check-scan-support-pipfile-encoding
  • fix: Merge pull request #6781 from matteius/codeql-quality-fixes
  • fix: Merge pull request #6782 from pcbeingused333/fix-c1828
  • fix: Merge pull request #6783 from pcbeingused333/fix/scan-quiet-stderr
  • fix: Merge pull request #6785 from Hisernberg/fix/vendoring-license-path-fstring
  • fix: Merge pull request #6787 from pcbeingused333/fix/uninstall-failure-continue
  • fix: fix(check): exit non-zero when safety cannot be installed or run
  • fix: fix(requirements): keep markers on VCS entries with --no-lock
  • fix: fix(resolver): address review feedback on the uv backend
  • fix: fix(scan): preserve Safety stderr in quiet mode
  • fix: fix(scan): suppress Safety warnings on quiet success
  • fix: fix(uninstall): keep going and exit non-zero when pip uninstall fails in clean/uninstall
  • change: Add news fragment for PR 6781
  • change: Bumped version to 2026.10.6.
  • change: Bumped version to 2026.11.0.
  • change: Merge pull request #6773 from matteius/feat/uv-resolver-backend-6109
  • …and 8 more

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

pypa/pipenv was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 16 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 7729c825b8abf538a023c1a68ba3d4ed40fa9153 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.83+preprod-a489942cf94b.