2026.6.1 (2026-04-28)¶
pipenv 2026.6.1 (2026-04-28)¶
Bug Fixes¶
Fix
pipenv installcorrupting existing inline-table or outline-table Pipfile entries (six = {version = "*"},[packages.requests]). The locker was poppingversion/refkeys directly off the cachedparsed_pipfiledocument, so subsequent writes emittedsix = {}and dropped the version specifier from sibling packages.#6657 <https://github.com/pypa/pipenv/issues/6657>_
2026.6.0 (2026-04-27)¶
pipenv 2026.6.0 (2026-04-27)¶
Bug Fixes¶
Fix
pipenv shellbreaking terminal input echo on Linux. The previous implementation toggledsetecho(True/False)on the spawned child around its internal setup commands, which fought with the shell’s own readline termios management — producing permanently-disabled echo (GH-6572) or double-echoed keystrokes (1234→11223344).fork_compatno longer touches pty termios; instead it drains the synchronisation sentinel from the pexpect buffer twice (once for the echoed command, once for its output) so nothing leaks intointeract().#6633 <https://github.com/pypa/pipenv/issues/6633>_pipenv run <command> -h <arg>now passes-hthrough to the command instead of showing pipenv’s help. All arguments followingrun_commandare captured verbatim via argparseREMAINDER, so flags like-hthat pipenv itself also defines no longer collide with the wrapped command.#6641 <https://github.com/pypa/pipenv/issues/6641>_Fix
ValueError: invalid literal for int() with base 10when the Pipfile’s[requires]section uses a PEP 440 specifier (e.g.python_version = ">=3.9"). Specifier values no longer produce a Python-version override; the running interpreter’s actual version is used for marker evaluation instead.#6645 <https://github.com/pypa/pipenv/issues/6645>_Install-time marker filtering now evaluates environment markers against the target virtualenv’s Python version rather than against the Python version that pipenv itself is running under. This prevents spurious
Ignoring …: markers … don't match your environmentwarnings (and the corresponding missing installs) whenpipenv sync --python X.Yis driven by a different system Python.#6647 <https://github.com/pypa/pipenv/issues/6647>_pipenv runnow expands$PIPENV_PROJECT_DIRand other Pipenv-managed environment variables inside Pipfile script arguments before direct command execution, so project-relative script paths resolve correctly.#6652 <https://github.com/pypa/pipenv/issues/6652>_
Improved Documentation¶
Pipfile documentation now includes git+ssh examples.
#6651 <https://github.com/pypa/pipenv/issues/6651>_
2026.5.2 (2026-04-03)¶
pipenv 2026.5.2 (2026-04-03)¶
No significant changes.
2026.5.1 (2026-04-01)¶
pipenv 2026.5.1 (2026-04-01)¶
No significant changes.
2026.5.0 (2026-03-30)¶
pipenv 2026.5.0 (2026-03-30)¶
Features & Improvements¶
Add optional shell completion via
argcomplete. Install withpip install "pipenv[completion]"and activate once witheval "$(register-python-argcomplete pipenv)".Mistyped subcommand names now produce “Did you mean …?” suggestions using
difflib, replacing theclick_didyoumeanvendor library.#6619 <https://github.com/pypa/pipenv/issues/6619>_
Bug Fixes¶
Fix
pylock.tomlre-generation duplicatingdependency_groupsmarkers for develop packages. Each run ofpipenv pylock --generate(or any command that rewrites the lock file) prepended thedependency_groupsprefix even when it was already present, producing malformed markers like('dev' in dependency_groups) and (('dev' in dependency_groups) and ...). This causedpipenv installto crash with aKeyError: 'dependency_groups'when evaluating environment markers.#6621 <https://github.com/pypa/pipenv/issues/6621>_
Vendored Libraries¶
Remove vendored
colorama. Rich’sConsolesupersedes colorama’s Windows ANSI escape code handling, and this was the last remaining usage in Pipenv.#6621 <https://github.com/pypa/pipenv/issues/6621>_
Removals and Deprecations¶
Remove the vendored
clickandclick_didyoumeanlibraries. The CLI has been rewritten to use Python’s standard-libraryargparse, eliminating Pipenv’s dependency on Click entirely.#6619 <https://github.com/pypa/pipenv/issues/6619>_Remove the vendored
importlib-metadataandzipplibraries. Python 3.9 is end-of-life and Pipenv requires Python 3.10+, whereimportlib.metadatais available in the standard library.#6622 <https://github.com/pypa/pipenv/issues/6622>_
Relates to dev process changes¶
Optimize CI pipeline: replace Black with
ruff-formatin pre-commit, remove redundant standalone Ruff job, and add atests-smokegate that runs Python 3.12 across all OSes before the full version matrix — cutting wasted compute on version-agnostic failures. Disable Windows Defender real-time scanning for Python toolcache, workspace, virtualenvs, and pip cache on Windows runners to reduce I/O overhead.
2026.4.0 (2026-03-28)¶
pipenv 2026.4.0 (2026-03-28)¶
No significant changes.
2026.3.0 (2026-03-28)¶
pipenv 2026.3.0 (2026-03-28)¶
Features & Improvements¶
Support
--system --python=/path/to/pythonto install packages to a specific Python interpreter’s site-packages. Previously--systemalways used the defaultpython3from PATH, ignoring the--pythonflag.#3593 <https://github.com/pypa/pipenv/issues/3593>_Add
--exclude-indexflag topipenv requirementscommand to allow users to exclude index URLs (-iand--extra-index-url) from the generated output. This is useful when the index is configured separately in the target environment.#4398 <https://github.com/pypa/pipenv/issues/4398>_Add
--systemflag topipenv updatecommand, allowing system-level package updates without creating a virtualenv. This is useful in Docker environments and other contexts where packages are installed directly to the system Python.#5584 <https://github.com/pypa/pipenv/issues/5584>_
Bug Fixes¶
pipenv shellnow waits for the shell to finish its startup before sending the virtualenv activate script. Previously, interactive prompts during shell startup (e.g. oh-my-zsh’s update dialogue) could consume the activate command, leaving the virtualenv unactivated.#3615 <https://github.com/pypa/pipenv/issues/3615>_pipenv --wherenow exits with a non-zero exit code (1) when no Pipfile is found, making it suitable for use in scripts and CI pipelines.#4085 <https://github.com/pypa/pipenv/issues/4085>_Pass through
PIP_IGNORE_INSTALLEDandPIP_USERenvironment variables to pip subprocess when using--system. This fixespipenv install --deploy --systemnot respecting these environment variables for Docker multi-stage builds.Add
PIPENV_BREAK_SYSTEM_PACKAGESenvironment variable to pass--break-system-packagesto pip when using--systemon PEP 668 externally-managed environments (e.g. Ubuntu 23.04+, Debian 12+).#4453 <https://github.com/pypa/pipenv/issues/4453>_Fix
--systemflag causing confusing errors when a stale virtualenv exists from a previously deleted project, or when a virtualenv already exists. When--systemis used, pipenv now correctly skips virtualenv creation instead of aborting with “You are attempting to re-create a virtualenv that Pipenv did not create”.#5052 <https://github.com/pypa/pipenv/issues/5052>_Shorthand marker keys in Pipfile entries (e.g.
sys_platform = "== 'linux'",platform_machine = "== 'arm64'") now behave identically to the equivalentmarkerssyntax. Previously, using the shorthand form caused pip to resolve and download sub-dependencies on all platforms, even though the top-level package was correctly marked as platform-specific in the lock file. The shorthand keys are now translated to PEP 508 markers before building the pip requirement line, so the resolver skips resolution on non-matching platforms.#5884 <https://github.com/pypa/pipenv/issues/5884>_Fix Windows py-launcher Python discovery for full version strings such as
python_full_version = "3.11.9"in Pipfile andpipenv --python 3.11.9on the CLI.Two bugs were addressed:
find_python_from_py_launcherincorrectly required three whitespace-separated tokens on eachpy --list-pathsoutput line, which caused every non-default Python installation (lines without the*marker) to be silently skipped. The parser now accepts both two-token (non-default) and three-token (default) lines, using the last token as the executable path in both cases.PyLauncherFinderstored only themajor.minorversion reported bypy --list-paths(e.g.3.11), so searches that required a specific patch level (patch=9) never matched. The finder now queries each discovered executable for its real version string (e.g.3.11.9) so that full-version lookups succeed.#5893 <https://github.com/pypa/pipenv/issues/5893>_
Security hardening: suppress
pip.confindex configuration (index-urlandextra-index-url) duringpip installsubprocess invocation. Previously,pip.confcould silently inject extra package indexes at install time, bypassing pipenv’s explicit-index-per-package security model and causing hash-mismatch errors (e.g. piwheels on Raspberry Pi). Now pipenv setsPIP_CONFIG_FILE=/dev/nulland explicitly passes only Pipfile[[source]]entries viaPIP_INDEX_URLandPIP_EXTRA_INDEX_URLenvironment variables. Users who need custom indexes (e.g. piwheels) should declare them as[[source]]entries in their Pipfile.#6066 <https://github.com/pypa/pipenv/issues/6066>_
Improved Documentation¶
Added a dedicated “Installing on Windows” section to the installation docs with the recommended pipx method and PATH setup guidance.
#4053 <https://github.com/pypa/pipenv/issues/4053>_Added a “Upgrading the Python Version” workflow section to docs/workflows.md with step-by-step instructions for moving a project to a new Python interpreter.
#4577 <https://github.com/pypa/pipenv/issues/4577>_Documented that
python_versionin the[requires]section only accepts an exact version string and not range specifiers such as>= 3.6.#4636 <https://github.com/pypa/pipenv/issues/4636>_Enhanced the “Moving or Renaming Projects” section in docs/virtualenv.md with a recovery workflow for users who already moved their project without running
pipenv --rmfirst, and added a tip aboutPIPENV_VENV_IN_PROJECT.#5129 <https://github.com/pypa/pipenv/issues/5129>_Added a “Multi-Platform Considerations” section to docs/locking.md explaining that
Pipfile.lockis platform-specific and documenting workarounds for cross-platform teams.#5130 <https://github.com/pypa/pipenv/issues/5130>_Added a “News Fragments” section to docs/dev/contributing.md explaining towncrier fragment types, including why
trivialfragments are intentionally omitted from the generated CHANGELOG.#5324 <https://github.com/pypa/pipenv/issues/5324>_Documented the behavior when a package pinned in
[dev-packages]conflicts with the version resolved via[packages]dependencies, and clarified how to enforce a specific version in that scenario.#5528 <https://github.com/pypa/pipenv/issues/5528>_Added a “Platform Markers and Locking” note to docs/specifiers.md explaining why packages with
sys_platformmarkers may still cause resolution failures on non-matching platforms and documenting workarounds.#6028 <https://github.com/pypa/pipenv/issues/6028>_
Relates to dev process changes¶
Update project metadata: replace defunct
distutils-sig@python.orgemail withmatteius@gmail.comand remove redundant.isort.cfg(Ruff’s isort handles import sorting).
2026.2.2 (2026-03-24)¶
pipenv 2026.2.2 (2026-03-24)¶
Bug Fixes¶
pipenv upgradenow correctly removes transitive dependencies that are no longer needed after a package is upgraded (e.g.pytzis removed when upgrading Django from 3.2.x to 4.2+). A safety guard was also added to_clean_unused_dependenciesto prevent incorrectly wiping all packages when a full resolution returns an empty result due to a subprocess failure.#6002 <https://github.com/pypa/pipenv/issues/6002>_Run python -m virtualenv from empty directory to prevent PYTHONPATH pollution. Fixes #6568.
#6569 <https://github.com/pypa/pipenv/issues/6569>_
Improved Documentation¶
Fix broken changelog headers and update the auto-generated changelog template to avoid the issue in the future
#6564 <https://github.com/pypa/pipenv/issues/6564>_
2026.2.1 (2026-03-19)¶
pipenv 2026.2.1 (2026-03-19)¶
No significant changes.
2026.2.0 (2026-03-18)¶
pipenv 2026.2.0 (2026-03-18)¶
No significant changes.
2026.1.0 (2026-03-13)¶
pipenv 2026.1.0 (2026-03-13)¶
No significant changes.
2026.0.3 (2025-12-16)¶
pipenv 2026.0.3 (2025-12-16)¶
No significant changes.
2026.0.2 (2025-12-10)¶
pipenv 2026.0.2 (2025-12-10)¶
No significant changes.
2026.0.1 (2025-12-10)¶
pipenv 2026.0.1 (2025-12-10)¶
Bug Fixes¶
Fix reading of
index-urlfrom pip configuration files (/etc/pip.conf,~/.pip/pip.conf, etc.) which was broken after vendoring pip 25.3 due to a change in pip’s Configuration.items() return format.#6478 <https://github.com/pypa/pipenv/issues/6478>_
2026.0.0 (2025-12-10)¶
pipenv 2026.0.0 (2025-12-10)¶
Features & Improvements¶
Add
--systemflag topipenv runcommand. This allows running scripts defined in Pipfile’s[scripts]section without creating a virtualenv, which is useful in Docker environments where packages are installed withpipenv install --system.#2692 <https://github.com/pypa/pipenv/issues/2692>_Allow
pipenv install --system <package>to install specific packages to the system Python. Previously this was blocked with an error message. This enables Docker workflows where users want to interactively add packages to a project that uses system-level installation.#4086 <https://github.com/pypa/pipenv/issues/4086>_Added support for PEP 751 pylock.toml files:
Reading: When both a Pipfile.lock and a pylock.toml file exist, Pipenv will prioritize the pylock.toml file.
Writing: Add
use_pylock = trueto the[pipenv]section of your Pipfile to generate pylock.toml files alongside Pipfile.lock.Customization: Use
pylock_name = "name"in the[pipenv]section to generate named pylock files (e.g., pylock.name.toml).#6391 <https://github.com/pypa/pipenv/issues/6391>_
Add support for
--devflag inpipenv uninstallcommand to remove packages fromdev-packagessection directly.#6392 <https://github.com/pypa/pipenv/issues/6392>_Add
PIPENV_PYENV_AUTO_INSTALLenvironment variable to automatically install missing Python versions via pyenv or asdf without prompting the user.#6408 <https://github.com/pypa/pipenv/issues/6408>_
Bug Fixes¶
Fix
--systemand--pythonflags to work together correctly. Previously, using both flags would still create a virtualenv. Now when--systemis used with--python, pipenv validates that the specified Python version exists on the system and raises a clear error if not found.#4973 <https://github.com/pypa/pipenv/issues/4973>_Make
--quietflag actually suppress output duringpipenv installandpipenv sync. Previously, messages like “Installing dependencies from Pipfile.lock” and “All dependencies are now up-to-date!” were shown even with--quiet.#5037 <https://github.com/pypa/pipenv/issues/5037>_Fix SSH
gitusername being incorrectly redacted to****when importing from requirements.txt, which caused lockfile generation to fail.#5599 <https://github.com/pypa/pipenv/issues/5599>_Fix malformed
Pipfile.lockcausing command to exit successfully with code 0. Now raisesLockfileCorruptExceptionwhich properly propagates as an error.#5622 <https://github.com/pypa/pipenv/issues/5622>_Fix VCS dependencies (git, etc.) not being reinstalled when the ref/commit changes in the lockfile. Previously,
pipenv updatewould update the lockfile with the new commit hash but the installed package in the virtualenv would remain unchanged, requiringpipenv --rmto force a reinstall.#5791 <https://github.com/pypa/pipenv/issues/5791>_Fix
pipenv-resolverCLI not working. The command now properly handles package arguments from the command line, sets a default category of “default”, and correctly loads the pipenv module with all submodules.#5862 <https://github.com/pypa/pipenv/issues/5862>_Fix
--lock-onlyflag forpipenv upgradecommand to properly skip adding package specifiers to Pipfile when set.#6131 <https://github.com/pypa/pipenv/issues/6131>_Improve error handling in
do_lockby properly catching and handling exceptions fromvenv_resolve_deps. RuntimeError now exits cleanly, and other exceptions display a full traceback for debugging.#6166 <https://github.com/pypa/pipenv/issues/6166>_Fixed
pipenv install --index=xxxwherexxxis not a valid URL or known index name now raises a clear error instead of creating a malformed source entry in the Pipfile.#6168 <https://github.com/pypa/pipenv/issues/6168>_Fix
PIPENV_ACTIVEenvironment variable not being unset when runningdeactivatein a pipenv shell, which caused “Shell for UNKNOWN_VIRTUAL_ENVIRONMENT already activated” errors on subsequentpipenv shellcommands.#6220 <https://github.com/pypa/pipenv/issues/6220>_Fix
pipenv lockto properly apply default package version constraints when resolving dev-packages and other categories. When a package is constrained in the[packages]section (e.g.,httpx = "==0.24.1"), dev-packages that depend on it will now be constrained to compatible versions.#6347 <https://github.com/pypa/pipenv/issues/6347>_Fix typo in
get_constraints_from_depswhere version string was incorrectly formatted using the entire dependency dict instead of the version string.#6354 <https://github.com/pypa/pipenv/issues/6354>_Fix for PEP660 editable VCS dependencies not reinstalled correctly.
#6362 <https://github.com/pypa/pipenv/issues/6362>_Resolver errors now display clean, user-friendly messages instead of confusing stacktraces in non-verbose mode.
#6388 <https://github.com/pypa/pipenv/issues/6388>_Validate Python version when using
--systemflag. Previously,pipenv install --system --deploywould silently proceed even if the system Python version didn’t match thepython_versionspecified in Pipfile/Pipfile.lock. Now it properly raises a DeployException when the versions don’t match.#6403 <https://github.com/pypa/pipenv/issues/6403>_Fix editable package name being incorrectly parsed from test files in subdirectories. Previously, when installing an editable local package, pipenv would recursively search all subdirectories for
setup.pyfiles. This could cause a test file with asetup(name='foo')call to be incorrectly used as the package name. Now,setup.py,setup.cfg, andpyproject.tomlare only checked in the root directory. Metadata files (PKG-INFO,METADATA) are still searched in.egg-infoand.dist-infodirectories.Fixes #6409
#6409 <https://github.com/pypa/pipenv/issues/6409>_Fix
pipenv check --quietnot working properly. The--quietflag now correctly suppresses informational output and forces JSON output format for safety so that results can be parsed correctly.Fixes #6414
#6414 <https://github.com/pypa/pipenv/issues/6414>_Fix
pipenv update --dev(andpipenv update --categories develop) updating transitive dependencies in thedevelopsection independently from thedefaultsection. Now, any packages that appear in bothdefaultanddevelopwill use the version fromdefault, ensuring consistent dependency versions between production and development environments.Fixes #6420
#6420 <https://github.com/pypa/pipenv/issues/6420>_Fix markers not being respected for file-based and VCS dependencies during resolution. Markers are now correctly included in the pip install line, allowing pipenv to skip resolution for dependencies whose markers don’t match the current environment.
#6431 <https://github.com/pypa/pipenv/issues/6431>_Fix
pipenv requirements --dev-only --from-pipfileto only include packages explicitly listed indev-packages, not packages from other categories that happen to also be transitive dependencies of dev packages.#6440 <https://github.com/pypa/pipenv/issues/6440>_Fix
pipenv updateincorrectly marking all packages as modified when Pipfile contains version ranges (e.g.,>=2.25.1) instead of exact versions. The comparison now properly checks if the locked version satisfies the Pipfile specifier, rather than doing a string comparison. This significantly improves performance ofpipenv updatewhen no packages have actually been modified.#6454 <https://github.com/pypa/pipenv/issues/6454>_Fix
TypeError: cannot unpack non-iterable PermissionError objecton Windows with Python 3.12+ when removing read-only files (e.g., git pack files). Thehandle_remove_readonlyerror handler now properly handles both the deprecatedonerrorcallback signature (tuple) and the newonexccallback signature (exception instance) introduced in Python 3.12.#6474 <https://github.com/pypa/pipenv/issues/6474>_Fix benchmark CI job hanging by adding timeout and
PIPENV_YES=1environment variable to prevent interactive prompts.#6477 <https://github.com/pypa/pipenv/issues/6477>_Fix subprocess deadlock in resolver that could cause
pipenv lockto hang indefinitely when the resolver subprocess writes large amounts of data to stdout. The fix reads stdout and stderr concurrently using threads, preventing pipe buffer deadlocks.#benchmark <https://github.com/pypa/pipenv/issues/benchmark>_
Improved Documentation¶
Fix documentation that incorrectly referenced
pipenv scanas a standalone command. The correct usage ispipenv check --scan.#6396 <https://github.com/pypa/pipenv/issues/6396>_
2025.1.3 (2025-12-09)¶
pipenv 2025.1.3 (2025-12-09)¶
Bug Fixes¶
Fix TypeError when using pipenv with Python 3.9 target environments by adding
from __future__ import annotationsto files inpipenv/patched/pipthat use Python 3.10+ type annotation syntax.#6448 <https://github.com/pypa/pipenv/issues/6448>_
2025.1.1 (2025-12-05)¶
pipenv 2025.1.1 (2025-12-05)¶
No significant changes.
2025.1.0 (2025-12-05)¶
pipenv 2025.1.0 (2025-12-05)¶
Features & Improvements¶
Vendor in pip 25.3 for dependency resolution.
#6445 <https://github.com/pypa/pipenv/issues/6445>_
2025.0.4 (2025-07-07)¶
Pipenv 2025.0.4 (2025-07-07)¶
Bug Fixes¶
Significantly improved dependency resolution performance with ResolveLib 1.2.0 optimistic backjumping, intelligent caching system, and batch Pipfile operations. Added comprehensive benchmarking infrastructure to prevent performance regressions. Requirements imports are 60-80% faster for large files, complex resolutions are 10-30% faster, and repeated operations benefit from smart caching.
#6419 <https://github.com/pypa/pipenv/issues/6419>_Ensure the requested Python version is installed when it differs from the one used with Pipenv.
#6425 <https://github.com/pypa/pipenv/issues/6425>_Restored ignore compatibility finder patch to enable comprehensive cross-platform hash collection in lock files.
#6426 <https://github.com/pypa/pipenv/issues/6426>_
2025.0.3 (2025-05-29)¶
Pipenv 2025.0.3 (2025-05-29)¶
Vendored Libraries¶
Vendor in
pip==25.1.1latest.#6400 <https://github.com/pypa/pipenv/issues/6400>_
2025.0.2 (2025-05-02)¶
Pipenv 2025.0.2 (2025-05-02)¶
Bug Fixes¶
Cleanup unused dependencies when upgrading packages.
#6386 <https://github.com/pypa/pipenv/issues/6386>_Fix for
UnboundLocalErrorinensure_pythonwhenSESSION_IS_INTERACTIVE=False, using pyenv, and python version in Pipfile not available.#6389 <https://github.com/pypa/pipenv/issues/6389>_
2025.0.1 (2025-04-24)¶
Pipenv 2025.0.1 (2025-04-24)¶
Bug Fixes¶
Fix for broken import requirements in
2025.0.0#6385 <https://github.com/pypa/pipenv/issues/6385>_
2025.0.0 (2025-04-24)¶
Pipenv 2025.0.0 (2025-04-24)¶
Features & Improvements¶
Refactor pythonfinder for improved efficiency and PEP 514 support
Summary
This PR completely refactors the pythonfinder module to improve efficiency, reduce logical errors, and fix support for PEP 514 (Python registration in the Windows registry). The refactoring replaces the complex object hierarchy with a more modular, composition-based approach that is easier to maintain and extend.
Motivation
The original pythonfinder implementation had several issues:
Complex object wrapping with paths as objects, leading to excessive recursion
Tight coupling between classes making the code difficult to follow and maintain
Broken Windows registry support (PEP 514)
Performance issues due to redundant path scanning and inefficient caching
Changes
Architecture: Replaced inheritance-heavy design with a composition-based approach using specialized finders
Data Model: Simplified the data model with a clean
PythonInfodataclassWindows Support: Implemented proper PEP 514 support for Windows registry
Performance: Improved caching and reduced redundant operations
Error Handling: Added more specific exceptions and better error handling
Features
The refactored implementation continues to support all required features:
System and user PATH searches
pyenv installations
asdf installations
Windows registry (PEP 514) - now working correctly
#6360 <https://github.com/pypa/pipenv/issues/6360>_
Almost finished with conversion off click echo/secho to rich console outputs.
#6366 <https://github.com/pypa/pipenv/issues/6366>_Make safety an optional dependency via extras
Removed vendored safety package from pipenv/patched
Added safety as an optional dependency via pipenv[safety]
Modified check.py to prompt for safety installation if not present
Safety installation will not modify user’s Pipfile or lockfile
#safety-extras <https://github.com/pypa/pipenv/issues/safety-extras>_
Bug Fixes¶
Fix launching PowerShell on UNC paths
#6322 <https://github.com/pypa/pipenv/issues/6322>_Check if we need to upgrade a package in more than one category.
#6361 <https://github.com/pypa/pipenv/issues/6361>_Fix issue with default constraints not applying to other package categories.
#6364 <https://github.com/pypa/pipenv/issues/6364>_Fix for parsing and using the star specifier in install and update/upgrade commands.
#6378 <https://github.com/pypa/pipenv/issues/6378>_Fixed KeyError when installing packages with invalid Python version specifiers in their metadata.
#6380 <https://github.com/pypa/pipenv/issues/6380>_Fixed an issue with installing local packages that have spaces in their path names.
#6381 <https://github.com/pypa/pipenv/issues/6381>_Improved virtualenv scripts path resolution
Summary
This PR refactors the logic for determining virtual environment script paths by leveraging
sysconfig’s built-in mechanisms. By removing platform-dependent logic,pipenvnow offers enhanced compatibility with POSIX-like environments, including Cygwin and MinGW. The fix also mitigates execution inconsistencies in non-native Windows environments, improving portability across platforms.Motivation
The original logic for determining the scripts path was unable to handle the deviations of MSYS2 MinGW CPython identifying as
ntplatform, yet using a POSIX{base}/binpath, instead of{base}/Scripts.Changes
Removed custom logic for determining virtualenv scripts path in favor of retrieving the basename of the path string returned by ``sysconfig.get_path(‘scripts’)```.
#6737 <https://github.com/pypa/pipenv/issues/6737>_Update
checkcommand to support the newscanfunctionalityThe
checkcommand has been deprecated and will be unsupported beyond June 1, 2025. Instead of adding a separatescancommand, we’ve updated thecheckcommand to include a--scanoption.Key changes:
Added a
--scanoption to thecheckcommand to use the new scan functionalityAdded a deprecation warning explaining that in future versions,
checkwill run the scan command by defaultBetter temporary file handling using the
tempfilemodule to ensure proper cleanupMore robust error handling
Users are encouraged to start using the
--scanoption with thecheckcommand to prepare for the future change. This option requires users to obtain and configure an API key from https://pyup.io.#safety-command <https://github.com/pypa/pipenv/issues/safety-command>_
2024.4.0 (2025-01-22)¶
Pipenv 2024.4.0 (2025-01-22)¶
Bug Fixes¶
Running “pipenv shell” on MacOS in Powershell (pwsh) references incorrect Activate.ps1
#6318 <https://github.com/pypa/pipenv/issues/6318>_Fix repr(Shell)
#6321 <https://github.com/pypa/pipenv/issues/6321>_Fix incorrect path for ‘pipenv shell’
#6327 <https://github.com/pypa/pipenv/issues/6327>_Fix license declaration for PyPI
#6329 <https://github.com/pypa/pipenv/issues/6329>_
Vendored Libraries¶
Remove click.echo from exceptions.py
#6216 <https://github.com/pypa/pipenv/issues/6216>_
2024.4.0 (2024-11-05)¶
Pipenv 2024.4.0 (2024-11-05)¶
Bug Fixes¶
Fix regression where
--skip-lock --devwas incorrectly searching Lockfile categories (“default”, “develop”) instead of Pipfile categories (“packages”, “dev-packages”), causing packages to not be found.#6304 <https://github.com/pypa/pipenv/issues/6304>_Fix issue where pipenv install would unintentionally upgrade packages that had wildcard (*) specifiers in the Pipfile, even when locked versions existed and no upgrade was requested.
#6306 <https://github.com/pypa/pipenv/issues/6306>_Fix issue where modules could not be found
#6307 <https://github.com/pypa/pipenv/issues/6307>_
Vendored Libraries¶
Vendor in
pip==24.3.1.#6292 <https://github.com/pypa/pipenv/issues/6292>_Vendoring
Update vendored dependencies:
importlib-metadata from 8.4.0 to 8.5.0
packaging from 24.0 to 24.1
tomli from 2.0.1 to 2.0.2
tomlkit from 0.12.4 to 0.13.2
zipp from 3.18.1 to 3.20.2
#6293 <https://github.com/pypa/pipenv/issues/6293>_
2024.3.1 (2024-10-30)¶
Bug Fixes¶
Fix the readthedocs.org build that has been failing and not updating our official docs at https://pipenv.pypa.io/en/latest/
#6291 <https://github.com/pypa/pipenv/issues/6291>_Fix regression of
2024.3.0when using the--systemflag without--deployflag.#6295 <https://github.com/pypa/pipenv/issues/6295>_Bugfix: Fixed Regression with the
pipenv updateroutine to allow for package upgrades without requiring an existing lockfile. This change improves the flexibility of the update process by determining which packages require updating and handling cases where the lockfile is absent or partially defined.Tests Added: Comprehensive integration tests for the updated functionality, covering scenarios like updating packages without a lockfile, detecting modified entries, handling VCS changes, and verifying the correct application of extras during installation.
#6299 <https://github.com/pypa/pipenv/issues/6299>_
2024.3.0 (2024-10-29)¶
Bug Fixes¶
Fix dependency resolution edge cases and versioning constraints handling:
Allow JSON format options for
--reversedependency graph output matching pipdeptreeImprove installation and upgrade routines to better handle dependencies
Add ability to specify json output as pipdeptree does
Add more consistent handling of VCS dependencies and references
Fix synchronization of development and default dependencies during updates
Ensure proper propagation of version constraints during updates
Fix handling of
~=and other version specifiers during updates
Key Changes:
Improved reverse dependency analysis to catch conflicts earlier in resolution
Better handling of VCS package lock data, preserving refs and subdirectories
Fixed issue where VCS references could be lost in lock file when installed via commit hash
Better handling of pipfile categories during installation and updates
Corrected logic for development dependency resolution and constraint propagation
Improved validation and preservation of version specifiers during updates
This improves stability when working with complex dependency trees and version constraints.
#6281 <https://github.com/pypa/pipenv/issues/6281>_Fixes issue with –skip-lock not providing pip the proper package specifier when version was a string (issue did not impact dict with version key).
#6288 <https://github.com/pypa/pipenv/issues/6288>_
2024.2.0 (2024-10-22)¶
Bug Fixes¶
Features & Bug Fixes
Refactored and simplified install routines, improving maintainability and reliability (#6276)
Split install logic into smaller, focused functions.
Eliminated Pipfile caching for now to prevent bugs and reduce complexity.
Fixed edge cases with package category selection.
Improved handling of VCS dependencies during updates, fixing when ref is a revision and not a branch.
Enhanced VCS URL handling with better environment variable support (#6276)
More reliable expansion of environment variables in Git URLs.
Better handling of authentication components in VCS URLs.
Improved error messaging for missing environment variables.
Fixed issue where Git reference could be dropped during relock.
#6276 <https://github.com/pypa/pipenv/issues/6276>_
Vendored Libraries¶
Update pipdeptree to version 2.23.4
#6275 <https://github.com/pypa/pipenv/issues/6275>_
2024.1.0 (2024-09-29)¶
Features & Improvements¶
Upgrade from
pip==24.0topip==24.1.2.#6253 <https://github.com/pypa/pipenv/issues/6253>_
Bug Fixes¶
Fixes regression in lock file generation that caused environment variable references (e.g., ${GIT_PASSWORD}) in VCS URLs to be stripped out. This restores the ability to use credential placeholders in version control system URLs.
#6256 <https://github.com/pypa/pipenv/issues/6256>_
2024.0.3 (2024-09-22)¶
Bug Fixes¶
Disable
ResourceWarningwarning for temporary files that are cleaned on program exit.#6151 <https://github.com/pypa/pipenv/issues/6151>_Fixed package sorting when installing a package with extras.
#6171 <https://github.com/pypa/pipenv/issues/6171>_Fixed
pipenv uninstall --allfailing when the virtual environment no longer exists.#6185 <https://github.com/pypa/pipenv/issues/6185>_Fix issue where installing a vcs dependency using pipenv CLI yielded the wrong Pipfile entry such that it could not lock.
#6242 <https://github.com/pypa/pipenv/issues/6242>_Fix report that pipenv requires
packaging>=22on some systems by setting it as a dependency.#6243 <https://github.com/pypa/pipenv/issues/6243>_
2024.0.2 (2024-09-13)¶
Features & Improvements¶
Initial support for python3.13
#6240 <https://github.com/pypa/pipenv/issues/6240>_
Bug Fixes¶
Fix bump version in CI/CD pipeline
#6177 <https://github.com/pypa/pipenv/issues/6177>_Swap old_version and new_version in pipenv update –outdated output.
#6179 <https://github.com/pypa/pipenv/issues/6179>_Update shell detection to only check the end of the command used.
#6197 <https://github.com/pypa/pipenv/issues/6197>_Fix loading dot env twice #6198
#6202 <https://github.com/pypa/pipenv/issues/6202>_Solve issue with quiet lock not writing the lock file #6207.
#6207 <https://github.com/pypa/pipenv/issues/6207>_Fix regression introduced with the “smarter uninstall” PR. Uninstall
--allshould not clear the Pipfile entries.#6209 <https://github.com/pypa/pipenv/issues/6209>_Fixed regression where all local file installations were incorrectly treated as editable. Ensure that local file installations are explicitly marked as editable in both Pipfile and Pipfile.lock entries if editable installation is desired.
#6222 <https://github.com/pypa/pipenv/issues/6222>_Corrected behavior of
pipenv install --skip-lockafter behavioral install refactor introduced regression. No Pipfile.lock is generated with this fix and installation of vcs no longer fails with revision missing error.#6225 <https://github.com/pypa/pipenv/issues/6225>_Fix for Windows on ARM missing distlib binaries in pyproject.toml
#6240 <https://github.com/pypa/pipenv/issues/6240>_
Vendored Libraries¶
Clean up usage of click styling from exceptions, shell and virtualenv
#6178 <https://github.com/pypa/pipenv/issues/6178>_Remove click.echo from pipenv/cli
#6182 <https://github.com/pypa/pipenv/issues/6182>_Remove click.echo from exceptions.py
#6216 <https://github.com/pypa/pipenv/issues/6216>_Update importlib-metadata to 8.4.0
#6235 <https://github.com/pypa/pipenv/issues/6235>_
2024.0.1 (2024-06-11)¶
No significant changes.
2024.0.0 (2024-06-06)¶
Features & Improvements¶
Supply any
--extra-pip-argsalso in the resolver steps.#6006 <https://github.com/pypa/pipenv/issues/6006>_The
uninstallcommand now does the inverse ofupgradewhich means it no longer invokes a fulllockcycle which was problematic for projects with many dependencies.#6029 <https://github.com/pypa/pipenv/issues/6029>_The
pipenv requirementssubcommand now supports the--from-pipfileflag. When this flag is used, the requirements file will only include the packages explicitly listed in the Pipfile, excluding any sub-packages.#6156 <https://github.com/pypa/pipenv/issues/6156>_
Behavior Changes¶
pipenv==2024.0.0denotes the first major release of our semver strategy. As much requested, theinstallno longer does a complete lock operation. Insteadinstallfollows the same code path as pipenv update (which is upgrade + sync). This is what most new users expect the behavior to be; it is a behavioral change, a necessary one to make the tool more usable. Remember that complete lock resolution can be invoked withpipenv lockjust as before.#6098 <https://github.com/pypa/pipenv/issues/6098>_
Bug Fixes¶
Fix a bug that passes pipenv check command if Pipfile.lock not exist
#6126 <https://github.com/pypa/pipenv/issues/6126>_Fix a bug that vcs subdependencies were locked without their subdirectory fragment if they had one
#6136 <https://github.com/pypa/pipenv/issues/6136>_pipenvconverts offpkg_resourcesAPI usages. This necessitated also vendoring in:latest
pipdeptree==2.18.1which also converted offpkg_resourcesimportlib-metadata==7.1.0to continue supporting python 3.8 and 3.9packaging==24.0since the packaging we were utilizing in pip’s vendor was insufficient for this conversion.#6139 <https://github.com/pypa/pipenv/issues/6139>
Pipenv only supports absolute python version. If the user specifies a Python version with inequality signs like >=3.12, <3.12 in the [requires] field, the code has been modified to explicitly express in an error log that absolute versioning must be used.
#6164 <https://github.com/pypa/pipenv/issues/6164>_
Vendored Libraries¶
Vendor in
pip==24.0#6117 <https://github.com/pypa/pipenv/issues/6117>_Spring 2024 Vendoring includes:
click-didyoumean==0.3.1expect==4.9.0pipdeptree==2.16.2python-dotenv==1.0.1ruamel.yaml==0.18.6shellingham==1.5.4tomlkit==0.12.4#6118 <https://github.com/pypa/pipenv/issues/6118>_
2023.12.1 (2024-02-04)¶
Bug Fixes¶
Remove debug print statements that should not have made it into the last release.
#6079 <https://github.com/pypa/pipenv/issues/6079>_
2023.12.0 (2024-02-01)¶
Pipenv 2023.12.0 (2024-02-01)¶
Bug Fixes¶
Removal of pydantic from pythonfinder and pipenv; reduced complexity of pythonfinder pathlib usage (avoid posix conversions).
#6065 <https://github.com/pypa/pipenv/issues/6065>_Adjusted logic which assumed any file, path or VCS install should be considered editable. Instead relies on the user specified editable flag to mark requirement as editable install.
#6069 <https://github.com/pypa/pipenv/issues/6069>_Remove logic that treats
CIvariable to usedo_run_ntshell logic, as the original reasons for that patch were no longer valid.#6072 <https://github.com/pypa/pipenv/issues/6072>_
2023.11.17 (2024-01-21)¶
Pipenv 2023.11.17 (2024-01-21)¶
Bug Fixes¶
Add markers to Pipfile when parsing requirements.txt
#6008 <https://github.com/pypa/pipenv/issues/6008>_Fix KeyError when using a source without a name in Pipfile
#6021 <https://github.com/pypa/pipenv/issues/6021>_Fix a bug with locking projects that contains packages with non canonical names from private indexes
#6056 <https://github.com/pypa/pipenv/issues/6056>_
Vendored Libraries¶
Update vendored tomlkit to
0.12.3#6024 <https://github.com/pypa/pipenv/issues/6024>_Bump version of pipdeptree to 0.13.2
#6055 <https://github.com/pypa/pipenv/issues/6055>_
2023.11.15 (2023-11-15)¶
Pipenv 2023.11.15 (2023-11-15)¶
Bug Fixes¶
Fix regression with path installs on most recent release
2023.11.14#6017 <https://github.com/pypa/pipenv/issues/6017>_
2023.11.14 (2023-11-14)¶
Behavior Changes¶
pipenv now ignores existing venv dir when
PIPENV_VENV_IN_PROJECTis false.#6009 <https://github.com/pypa/pipenv/issues/6009>_
Bug Fixes¶
Assume the vcs and direct URL installs need to be reinstalled.
#5936 <https://github.com/pypa/pipenv/issues/5936>_Pass through pipfile index urls when creating https session so that keyring fully works
#5994 <https://github.com/pypa/pipenv/issues/5994>_Fix Using dependencies from a URL fails on Windows.
#6011 <https://github.com/pypa/pipenv/issues/6011>_
2023.10.24 (2023-10-24)¶
Features & Improvements¶
Officially support python 3.12
#5987 <https://github.com/pypa/pipenv/issues/5987>_
Bug Fixes¶
Additional safety check in fold_markers logic that affected some lock resolutions in prior release.
#5988 <https://github.com/pypa/pipenv/issues/5988>
Vendored Libraries¶
Update vendored versions of:
click==8.1.7
markupsafe==2.1.3
pydantic==1.10.13
pythonfinder==2.0.6
ruamel.yaml==0.17.39
shellingham==1.5.3
tomlkit==0.12.1
#5986 <https://github.com/pypa/pipenv/issues/5986>_
Update vendored pip to
23.3.1#5991 <https://github.com/pypa/pipenv/issues/5991>_
2023.10.20 (2023-10-20)¶
Features & Improvements¶
Add quiet option to pipenv shell, hiding “Launching subshell in virtual environment…”
#5966 <https://github.com/pypa/pipenv/issues/5966>_Vendor in pip==23.3 which includes updates to certifi, urllib3, and adds truststore among other improvements.
#5979 <https://github.com/pypa/pipenv/issues/5979>_
Behavior Changes¶
Change
--pyto useprintpreventing insertion of newline characters#5969 <https://github.com/pypa/pipenv/issues/5969>_
Vendored Libraries¶
Drop pep517 - as it is no longer used.
#5970 <https://github.com/pypa/pipenv/issues/5970>_
Removals and Deprecations¶
Drop support for Python 3.7
#5879 <https://github.com/pypa/pipenv/issues/5879>_
2023.10.3 (2023-10-03)¶
Bug Fixes¶
Eveb better handling of vcs branch references that contain special characters.
#5934 <https://github.com/pypa/pipenv/issues/5934>_Bump certifi from 2023.5.7 to 2023.7.22 in /examples to address a security vulnerability
#5941 <https://github.com/pypa/pipenv/issues/5941>_
2023.9.8 (2023-09-08)¶
Bug Fixes¶
ignore_compatibility was supposed to default to False (except for hash collection)
#5926 <https://github.com/pypa/pipenv/issues/5926>_
2023.9.7 (2023-09-07)¶
Features & Improvements¶
Updates build to use exclusively
pyproject.tomlModernizes the build process by consolidating all of
setuptoolsmetadata withinpyproject.tomland removing deprecatedsetup.cfgandsetup.py.#5837 <https://github.com/pypa/pipenv/issues/5837>_
Bug Fixes¶
Restore the ignore compatibility finder pip patch to resolve issues collecting hashes from google artifact registry (and possibly others).
#5887 <https://github.com/pypa/pipenv/issues/5887>_Handle case better where setup.py name is referencing a variable that is a string while encouraging folks to migrate their projects to pyproject.toml
#5905 <https://github.com/pypa/pipenv/issues/5905>_Better handling of local file install edge cases; handle local file extras.
#5919 <https://github.com/pypa/pipenv/issues/5919>_Include the Pipfile markers in the install phase when using
--skip-lock.#5920 <https://github.com/pypa/pipenv/issues/5920>_Fallback to default vcs ref when no ref is supplied. More proactively determine package name from the pip line where possible, fallback to the existing file scanning logics when unable to determine name.
#5921 <https://github.com/pypa/pipenv/issues/5921>_
2023.9.1 (2023-09-01)¶
Features & Improvements¶
Top level Pipfile sys_platform markers should be transitive; adds top level platform_machine entries that are also transitive. Marker entries continue to operate the same as before. #5892
Bug Fixes¶
2023.8.28 (2023-08-28)¶
Bug Fixes¶
Revert change that caused the credentials in source url issue. #5878
Do not treat named requirements as file installs just becacuse a match path exists; better handling of editable keyword for local file installs. Handle additional edge cases in the setup.py ast parser logic for trying to determine local install package name. #5885
2023.8.26 (2023-08-26)¶
Bug Fixes¶
Additional property caching to avoid duplication of sources in the resolver. #5863
Fix recent regressions with local/editable file installs. #5870
Fixes the vcs subdirectory fragments regression; fixes sys_platform markers regression. #5871
Fix regression that caused printing non-printable ascii characters when help was called. #5872
2023.8.25 (2023-08-25)¶
Bug Fixes¶
Fix regression of hash collection when downloading package from private indexes when the hash is not found in the index href url fragment. #5866
2023.8.23 (2023-08-22)¶
Bug Fixes¶
More gracefully handle @ symbols in vcs URLs to address recent regression with vcs URLs. #5849
2023.8.22 (2023-08-22)¶
Bug Fixes¶
Fix regression with
ssh://vcs URLs introduced in2023.8.21whereby ssh vcs URLs are expected to have at least one@symbol. #5846
2023.8.21 (2023-08-21)¶
Bug Fixes¶
Vendored Libraries¶
Remove unused command line interface for vendored packages. #5840
2023.8.20 (2023-08-20)¶
Bug Fixes¶
Fix the expected output of the
versioncommand. #5838
2023.8.19 (2023-08-19)¶
Features & Improvements¶
The
--categoriesoption now works with requirements.txt file. #5722
Bug Fixes¶
Drop requirementslib for managing pip lines and InstallRequirements, bring remaining requirementslib functionality into pipenv. Fixes numerous reports about extras installs with vcs and file installs; format pip lines correctly to not generate deprecation warnings. #5793
Vendored Libraries¶
Update pip 23.2 -> 23.2.1 #5822
Improved Documentation¶
Added documentation on how to move or rename a project directory #5129
Removals and Deprecations¶
The
--skip-lockflag which was deprecated, has now been removed to unblock modernizing the pipenv resolver code. #5805
2023.7.23 (2023-07-23)¶
Features & Improvements¶
Upgrades
pip==23.2which includes everything from the pip changelog. Drops the “install_compatatability_finder” pip internals patch. #5808
Bug Fixes¶
Fix issue parsing some Pipfiles with separate packages.<pkg> sections (tomlkit OutOfOrderTableProxy) #5794
Fix all ruff linter warnings #5807
Restore running Resolver in sub-process using the project python by default; maintains ability to run directly by setting
PIPENV_RESOLVER_PARENT_PYTHONenvironment variable to 1 (useful for internal debugging). #5809Fix error when a Windows path begins with a ‘’ with
pythonfinder==2.0.5. #5812
Vendored Libraries¶
Remove usage of click.secho in some modules. #5804
2023.7.11 (2023-07-11)
Bug Fixes¶
2023.7.9 (2023-07-09)¶
Bug Fixes¶
2023.7.4 (2023-07-04)¶
Bug Fixes¶
2023.7.3 (2023-07-02)¶
Bug Fixes¶
Fix regression with
--systemflag usage. #5773
2023.7.1 (2023-07-01)¶
Bug Fixes¶
Patch
_get_requests_sessionmethod to considerPIP_CLIENT_CERTvalue when present. #5746Fix regression in
requirementscommand that was causing package installs after upgrade torequirementslib==3.0.0. #5755Fix
error: invalid command 'egg_info'edge case with requirementslib 3.0.0. It exposed pipenv resolver sometimes was using a different python than expected. #5760Fix issue in requirementslib 3.0.0 where dependencies defined in pyproject.toml were not being included in the lock file. #5766
Removals and Deprecations¶
Bump dparse to 0.6.3 #5750
2023.6.26 (2023-06-26)¶
Improved Documentation¶
Add missing environment variable descriptions back to documentation #missing_env_var_desc
2023.6.18 (2023-06-18)¶
Bug Fixes¶
Fixes resolver to only consider the default index for packages when a secondary index is not specified. This brings the code into alignment with stated assumptions about index restricted packages behavior of
pipenv. #5737
Removals and Deprecations¶
Deprecation of
--skip-lockflag as it bypasses the security benefits of pipenv. Plus it lacks proper deterministic support of installation from multiple package indexes. #5737
2023.6.12 (2023-06-11)¶
Bug Fixes¶
Remove the
sys.pathmodifications and as a result fixes keyring support. #5719
2023.6.11 (2023-06-11)¶
Vendored Libraries¶
Upgrades to
pipdeptree==2.8.0which fixes edge cases of thepipenv graphcommand. #5720
2023.6.2 (2023-06-02)¶
Features & Improvements¶
Resolver performance: package sources following PEP 503 will leverage package hashes from the URL fragment, without downloading the package. #5701
Bug Fixes¶
Vendored Libraries¶
2023.5.19 (2023-05-19)¶
Bug Fixes¶
Consider
--indexargument inupdateandupgradecommands. #5692
Vendored Libraries¶
Upgrade
pythonfinder==2.0.0which also brings inpydantic==1.10.7. #5677
2023.4.29 (2023-04-29)¶
Vendored Libraries¶
2023.4.20 (2023-04-20)¶
Features & Improvements¶
Checks environment variable
PIP_TRUSTED_HOSTSwhen evaluating an index specified at the command line when adding toPipfile.For example, this command line
PIP_TRUSTED_HOSTS=internal.mycompany.com pipenv install pypkg --index=https://internal.mycompany.com/pypi/simple
will add the following to the
Pipfile:[[source]] url = 'https://internal.mycompany.com/pypi/simple' verify_ssl = false name = 'Internalmycompany' [packages] pypkg = {version="*", index="Internalmycompany"}
This allows users with private indexes to add them to
Pipfileinitially from command line with correct permissions using environment variablePIP_TRUSTED_HOSTS. #5572Vendor in the updates, upgrades and fixes provided by
pip==23.1. #5655
Bug Fixes¶
Fix regression with
--skip-lockoption withinstallcommand. #5653
Vendored Libraries¶
Vendor in latest
python-dotenv==1.0.0#5656Vendor in latest available dependencies:
attrs==23.1.0click-didyoumean==0.3.0click==8.1.3markupsafe==2.1.2pipdeptree==2.7.0shellingham==1.5.0.post1tomlkit==0.11.7#5657Vendor in latest
requirementslib==2.2.5which includes updates for pip 23.1 #5659
Improved Documentation¶
Made documentation clear about tilde-equals operator for package versions. #5594
2023.3.20 (2023-03-19)¶
No significant changes.
2023.3.18 (2023-03-19)¶
Bug Fixes¶
Fix import error in virtualenv utility for creating new environments caused by
2023.3.18release. #5636
2023.3.18 (2023-03-18)¶
Features & Improvements¶
Provide a more powerful solution than
--keep-outdatedand--selective-upgradewhich are deprecated for removal. Introducing thepipenv upgradecommand which takes the same package specifiers aspipenv installand updates thePipfileandPipfile.lockwith a valid lock resolution that only effects the specified packages and their dependencies. Additionally, thepipenv updatecommand has been updated to use thepipenv upgraderoutine when packages are provided, which will install sync the new lock file as well. #5617
Vendored Libraries¶
Bump vistir to 0.8.0, requirementslib to 2.2.4. #5635
2023.2.18 (2023-02-18)¶
Features & Improvements¶
pipenvnow reads the systempip.conforpip.inifile in order to determine pre-defined indexes to use for package resolution and installation. #5297Behavior change for
pipenv checknow checks the default packages group of the lockfile. Specifying--categoriesto override which categories to check against. Pass--use-installedto get the prior behavior of checking the packages actually installed into the environment. #5600
Bug Fixes¶
Vendored Libraries¶
Improved Documentation¶
Make some improvements to the contributing guide. #5611
2023.2.4 (2023-02-04)¶
Bug Fixes¶
Removals and Deprecations¶
2022.12.19 (2022-12-19)¶
Bug Fixes¶
Fix for
requirementslibhanging during install of remote wheels files. #5546
2022.12.17 (2022-12-17)¶
Bug Fixes¶
virtualenv creation no longer uses
--creator=venvby default; introduced two environment variables:PIPENV_VIRTUALENV_CREATOR– May be specified to instruct virtualenv which--creator=to use.PIPENV_VIRTUALENV_COPIES– When specified as truthy, instructs virtualenv to not use symlinks. #5477Fix regression where
pathis not propagated to thePipfile.lock. #5479Solve issue where null markers were getting added to lock file when extras were provided. #5486
Fix:
update --outdatedraises NonExistentKey with outdated dev packages #5540
Vendored Libraries¶
2022.11.30 (2022-11-30)¶
Bug Fixes¶
Fix regression: pipenv does not sync indexes to lockfile. #5508
2022.11.25 (2022-11-24)¶
Bug Fixes¶
Solving issue where
pipenv checkcommand has been broken in the published wheel distribution. #5493
2022.11.24 (2022-11-24)¶
Bug Fixes¶
Stop building universal wheels since Python 2 is no longer supported. #5496
2022.11.23 (2022-11-23)¶
Features & Improvements¶
Find nushell activate scripts. #5470
Vendored Libraries¶
2022.11.11 (2022-11-11)¶
Bug Fixes¶
Fix regression of lock generation that caused the keep-outdated behavior to be default. #5456
2022.11.5 (2022-11-05)¶
Bug Fixes¶
Rollback the change in version of
coloramadue to regressions in core functionality. #5459
2022.11.4 (2022-11-04)¶
Features & Improvements¶
Allow pipenv settings to be explicitly disabled more easily by assigning to the environment variable a falsy value. #5451
Bug Fixes¶
Provide an install iteration per index when
install_search_all_sourcesisfalse(default behavior). This fixes regression where install phase was using unexpected index after updatingpip==22.3#5444
Vendored Libraries¶
Drop tomli, which is not used anymore. Bump attrs version see #5449. Drop distlib, colorama and platformdirs - use the ones from pip._vendor. #5450
2022.10.25 (2022-10-25)¶
Features & Improvements¶
Add support to export requirements file for a specified set of categories. #5431
Vendored Libraries¶
Remove appdirs.py in favor of platformdirs. #5420
Removals and Deprecations¶
Remove usage of vistir.cmdparse in favor of pipenv.cmdparse #5419
2022.10.12 (2022-10-12)¶
Improved Documentation¶
Update pipenv docs for with example for callabale package functions in Pipfile scripts #5396
2022.10.11 (2022-10-11)¶
Bug Fixes¶
Revert decision to change the default isolation level because it caused problems with existing workflows; solution is to recommend users that have issues requiring pre-requisites to pass –extra-pip-args=“–no-build-isolation” in their install or sync commands. #5399
2022.10.10 (2022-10-10)¶
Features & Improvements¶
Add ability for callable scripts in Pipfile under [scripts]. Callables can now be added like:
<pathed.module>:<func>and can also take arguments. For example:func = {call = "package.module:func('arg1', 'arg2')"}then this can be activated in the shell withpipenv run func#5294
Bug Fixes¶
Fixes regression from
2022.10.9wherePipfilewithpipenvsection began generating new hash, and also fix regression where lock phase did not update the hash value. #5394
2022.10.9 (2022-10-09)¶
Behavior Changes¶
New pipfiles show python_full_version under [requires] if specified. Previously creating a new pipenv project would only specify in the Pipfile the major and minor version, i.e. “python_version = 3.7”. Now if you create a new project with a fully named python version it will record both in the Pipfile. So: “python_version = 3.7” and “python_full_version = 3.7.2” #5345
Relates to dev process changes¶
Silence majority of pytest.mark warnings by registering custom marks. Can view a list of custom marks by running
pipenv run pytest --markers
2022.10.4 (2022-10-04)¶
Bug Fixes¶
Vendored Libraries¶
Drop vendored six - we no longer depend on this library, as we migrated from pipfile to plette. #5187
2022.9.24 (2022-09-24)¶
Bug Fixes¶
Update
requirementslib==2.0.3to always evaluate the requirement markers fresh (without lru_cache) to fix marker determinism issue. #4660
2022.9.21 (2022-09-21)¶
Bug Fixes¶
Fix regression to
install --skip-lockwith update toplette. #5368
2022.9.20 (2022-09-20)¶
Behavior Changes¶
Remove usage of pipfile module in favour of Plette. pipfile is not actively maintained anymore. Plette is actively maintained, and has stricter checking of the Pipefile and Pipefile.lock. As a result, Pipefile with unnamed package indices will fail to lock. If a Pipefile was hand crafeted, and the source is anonymous an error will be thrown. The solution is simple, add a name to your index, e.g, replace:
[[source]] url = "https://pypi.acme.com/simple" verify_ssl = true
With:
[[source]] url = "https://pypi.acme.com/simple" verify_ssl = true name = acmes_private_index `#5339 <https://github.com/pypa/pipenv/issues/5339>`_
Bug Fixes¶
Modernize
pipenvpath patch withimportlib.utilto eliminate import ofpkg_resources#5349
Vendored Libraries¶
Remove iso8601 from vendored packages since it was not used. #5346
2022.9.8 (2022-09-08)¶
Features & Improvements¶
It is now possible to supply additional arguments to
pipinstall by supplying--extra-pip-args="<arg1> <arg2>"See the updated documentationSupplying additional arguments to pipfor more details. #5283
Bug Fixes¶
Make editable detection better because not everyone specifies editable entry in the Pipfile for local editable installs. #4784
Add error handling for when the installed package setup.py does not contain valid markers. #5329
Load the dot env earlier so that
PIPENV_CUSTOM_VENV_NAMEis more useful across projects. #5334
Vendored Libraries¶
Removals and Deprecations¶
Add deprecation warning to the –three flag. Pipenv now uses python3 by default. #5328
Relates to dev process changes¶
Convert the test runner to use
pypiserveras a standalone process for all tests that referencce internalpypiartifacts. General refactoring of some test cases to create more variety in packages selected–preferring lighter weight packages–in existing test cases.
2022.9.4 (2022-09-04)¶
Bug Fixes¶
Fix the issue from
2022.9.2where tarball URL packages were being skipped on batch_install. #5306
2022.9.2 (2022-09-02)¶
Bug Fixes¶
Fix issue where unnamed constraints were provided but which are not allowed by
pipresolver. #5273
2022.8.31 (2022-08-31)¶
Features & Improvements¶
Performance optimization to
batch_installresults in a faster and less CPU intensivepipenv syncorpipenv installexperience. #5301
Bug Fixes¶
pipenvnow uses aNamedTemporaryFilefor rsolver constraints and drops internal env varPIPENV_PACKAGES. #4925
Removals and Deprecations¶
2022.8.30 (2022-08-30)¶
Bug Fixes¶
Fix an issue when using
pipenv install --systemon systems that having thepythonexecutable pointing to Python 2 and a Python 3 executable beingpython3. #5296Sorting
constraintsbefore resolving, which fixespipenv lockgenerates nondeterminism environment markers. #5299Fix #5273, use our own method for checking if a package is a valid constraint. #5309
Vendored Libraries¶
Vendor in
requirementslib==2.0.1which fixes issue with local install not marked editable, and vendor invistir==0.6.1which drops python2 support. Dropsorderedmultidictfrom vendoring. #5308
2022.8.24 (2022-08-24)¶
Bug Fixes¶
Remove eager and unnecessary importing of
setuptoolsandpkg_resourcesto avoid conflict upgradingsetuptools. Roll backsysconfigpatch ofpipbecause it was problematic for some--systemcommands. #5228
Vendored Libraries¶
2022.8.19 (2022-08-19)¶
Bug Fixes¶
Fix issue where resolver is provided with
install_requiresconstraints fromsetup.pythat depend on editable dependencies and could not resolve them. #5271Fix for
pipenv lockfails for packages with extras as of2022.8.13. #5274Revert the exclusion of
BAD_PACKAGESfrombatch_installin order forpipenvto install specific versions ofsetuptools. To prevent issue upgradingsetuptoolsthis patches_USE_SYSCONFIG_DEFAULTto usesysconfigfor3.7and above whereaspipdefault behavior was3.10and above. #5275
2022.8.17 (2022-08-17)¶
Bug Fixes¶
Fix “The Python interpreter can’t be found” error when running
pipenv install --systemwith a python3 but no python. #5261Revise pip import patch to include only
pipenvfrom site-packages and removed--ignore-installedargument from pip install in order to fix regressions with--use-site-packages. #5265
2022.8.15 (2022-08-15)¶
Bug Fixes¶
pip_installmethod was using a different way of finding the python executable than otherpipenvcommands, which caused an issue with skipping package installation if it was already installed in site-packages. #5254
2022.8.14 (2022-08-14)¶
Bug Fixes¶
Removed
packaginglibrary fromBAD_PACKAGESconstant to allow it to be installed, which fixes regression frompipenv==2022.8.13. #5247
2022.8.13 (2022-08-13)¶
Bug Fixes¶
If environment variable
CIorTF_BUILDis set but does not evaluate toFalseit is now treated asTrue. #5128Fix auto-complete crashing on ‘install’ and ‘uninstall’ keywords #5214
Address remaining
pipenvcommands that were still referencing the user or system installedpipto use the vendoredpipinternal topipenv. #5229Use
packagesas constraints when lockingdev-packagesin Pipfile. Usepackagesas constraints when installing newdev-packages. #5234
Vendored Libraries¶
Vendor in minor
pipupdate22.2.2#5230
Improved Documentation¶
Add documentation for environment variables the configure pipenv. #5235
Removals and Deprecations¶
The deprecated way of generating requirements
install -rorlock -rhas been removed in favor of thepipenv requirementscommand. #5200
2022.8.5 (2022-08-05)¶
Features & Improvements¶
support PIPENV_CUSTOM_VENV_NAME to be the venv name if specified, update relevant docs. #4974
Bug Fixes¶
Remove usages of
pip_shimsfrom the non vendoredpipenvcode, but retain initialization forrequirementslibstill has usages. #5204Fix case sensitivity of color name
redin exception when getting hashes from pypi in_get_hashes_from_pypi. #5206Write output from
subprocess_rundirectly tostdoutinstead of creating temporary file. Remove deprecateddistutils.sysconfig, usesysconfig. #5210
Vendored Libraries¶
Rename patched
notpiptopipin order to be clear that its a patched version of pip.Remove the part of _post_pip_import.patch that overrode the standalone pip to be the user installed pip, now we fully rely on our vendored and patched
pip, even for all types of installs.Vendor in the next newest version of
pip==22.2Modify patch for
pipdeptreeto not usepip-shims#5188Remove vendored
urllib3in favor of using it from vendored version inpip._vendor#5215
Removals and Deprecations¶
Remove tests that have been for a while been marked skipped and are no longer relevant. #5165
2022.7.24 (2022-07-24)¶
Bug Fixes¶
Re-enabled three installs tests again on the Windows CI as recent refactor work has fixed them. #5064
Support ANSI
NO_COLORenvironment variable and deprecatePIPENV_COLORBLINDvariable, which will be removed after this release. #5158Fixed edge case where a non-editable file, url or vcs would overwrite the value
no_depsfor all other requirements in the loop causing a retry condition. #5164Vendor in latest
requirementslibfor fix to lock when using editable VCS module with specific@git reference. #5179
Vendored Libraries¶
Remove crayons and replace with click.secho and click.styles per https://github.com/pypa/pipenv/issues/3741 #3741
Vendor in latest version of
pip==22.1.2which upgradespipenvfrompip==22.0.4. Vendor in latest version ofrequirementslib==1.6.7which includes a fix for tracebacks on encountering Annotated variables. Vendor in latest version ofpip-shims==0.7.3such that imports could be rewritten to utilizepackagingfrom vendor’dpip. Drop thepackagingrequirement from thevendordirectory inpipenv. #5147Remove unused vendored dependency
normailze-charset. #5161Remove obsolete package
funcsigs. #5168Bump vendored dependency
pyparsing==3.0.9. #5170
2022.7.4 (2022-07-04)¶
Behavior Changes¶
Adjust
pipenv requirementsto add markers and add an--exclude-markersoption to allow the exclusion of markers. #5092
Bug Fixes¶
Stopped expanding environment variables when using
pipenv requirements#5134
Vendored Libraries¶
Relates to dev process changes¶
Switch from using type comments to type annotations.
2022.5.3.dev0 (2022-06-07)¶
Bug Fixes¶
Adjust pipenv to work with the newly added
venvinstall scheme in Python. First check ifvenvis among the available install schemes, and use it if it is. Otherwise fall back to thentorposix_prefixinstall schemes as before. This should produce no change for environments where the install schemes were not redefined. #5096
2022.5.2 (2022-05-02)¶
Bug Fixes¶
Fixes issue of
pipenv lock -rcommand printing to stdout instead of stderr. #5091
2022.4.30 (2022-04-30)¶
Bug Fixes¶
Fixes issue of
requirementscommand problem by modifying to print-eand path of the editable package. #5070Revert specifier of
setuptoolsrequirement insetup.pyback to what it was in order to fixFileNotFoundError: [Errno 2]issue report. #5075Fixes issue of requirements command where git requirements cause the command to fail, solved by using existing convert_deps_to_pip function. #5076
Vendored Libraries¶
Vendor in
requirementslib==1.6.4to FixSetuptoolsDeprecationWarningsetuptools.config.read_configurationbecame deprecated. #5081
Removals and Deprecations¶
Remove more usage of misc functions of vistir. Many of this function are available in the STL or in another dependency of pipenv. #5078
2022.4.21 (2022-04-21)¶
Removals and Deprecations¶
2022.4.20 (2022-04-20)¶
Features & Improvements¶
Added new Pipenv option
install_search_all_sourcesthat allows installation of packages from an existingPipfile.lockto search all defined indexes for the constrained package version and hash signatures. #5041
Bug Fixes¶
Vendored Libraries¶
Updated vendor version of
pipfrom21.2.2to22.0.4which fixes a number of bugs including several reports of pipenv locking for an infinite amount of time when using certain package constraints. This also drops support for python 3.6 as it is EOL and support was removed in pip 22.x #4995
Removals and Deprecations¶
Relates to dev process changes¶
Added pytest-cov and basic configuration to the project for generating html testing coverage reports.
Make all CI jobs run only after the lint stage. Also added a makefile target for vendoring the packages.
2022.4.8 (2022-04-08)¶
Features & Improvements¶
Bug Fixes¶
Pipenv will now ignore
.venvin the project whenPIPENV_VENV_IN_PROJECTvariable is False. Unset variable maintains the existing behavior of preferring to use the project’s.venvshould it exist. #2763Fix an edge case of hash collection in index restricted packages whereby the hashes for some packages would be missing from the
Pipfile.lockfollowing package index restrictions added inpipenv==2022.3.23. #5023
Improved Documentation¶
Removals and Deprecations¶
Removes the optional
installargument--extra-index-urlas it was not compatible with index restricted packages. Using the--indexargument is the correct way to specify a package should be pulled from the non-default index. #5022
Relates to dev process changes¶
Added code linting using pre-commit-hooks, black, flake8, isort, pygrep-hooks, news-fragments and check-manifest. Very similar to pip’s configuration; adds a towncrier new’s type
processfor change to Development processes.
2022.3.28 (2022-03-27)¶
Bug Fixes¶
Environment variables were not being loaded when the
--quietflag was set #5010It would appear that
requirementslibwas not fully specifying the subdirectory tobuild_pep517and and when a new version ofsetuptoolswas released, the testtest_lock_nested_vcs_direct_urlbroke indicating the Pipfile.lock no longer contained the extra dependencies that should have been resolved. This regression affectedpipenv>=2021.11.9but has been fixed by a patch torequirementslib. #5019
Vendored Libraries¶
Vendor in pip==21.2.4 (from 21.2.2) in order to bring in requested bug fix for python3.6. Note: support for 3.6 will be dropped in a subsequent release. #5008
2022.3.24 (2022-03-23)¶
Features & Improvements¶
It is now possible to silence the
Loading .env environment variablesmessage onpipenv runwith the--quietflag or thePIPENV_QUIETenvironment variable. #4027
Bug Fixes¶
Fixes issue with new index safety restriction, whereby an unnamed extra sources index caused and error to be thrown during install. #5002
The text
Loading .env environment variables...has been switched back to stderr as to not break requirements.txt generation. Also it only prints now when a.envfile is actually present. #5003
2022.3.23 (2022-03-22)¶
Features & Improvements¶
Behavior Changes¶
Pattern expansion for arguments was disabled on Windows. #4935
Bug Fixes¶
Python versions on Windows can now be installed automatically through pyenv-win #4525
Patched our vendored Pip to fix: Pipenv Lock (Or Install) Does Not Respect Index Specified For A Package. #4637
If
PIP_TARGETis set to environment variables, Refer specified directory for calculate delta, instead default directory #4775Remove remaining mention of python2 and –two flag from codebase. #4938
Use
CIenvironment value, over mere existence of name #4944Environment variables from dot env files are now properly expanded when included in scripts. #4975
Vendored Libraries¶
Updated vendor version of
pythonfinderfrom1.2.9to1.2.10which fixes a bug with WSL (Windows Subsystem for Linux) when a path can not be read and Permission Denied error is encountered. #4976
Removals and Deprecations¶
Removes long broken argument
--codefrominstalland--unusedfromcheck. Check command no longer takes in arguments to ignore. Removed the vendored dependencies:pipreqsandyarg#4998
2022.1.8 (2022-01-08)¶
Bug Fixes¶
Remove the extra parentheses around the venv prompt. #4877
Fix a bug of installation fails when extra index url is given. #4881
Fix regression where lockfiles would only include the hashes for releases for the platform generating the lockfile #4885
Fix the index parsing to reject illegal requirements.txt. #4899
2021.11.23 (2021-11-23)¶
Bug Fixes¶
2021.11.15 (2021-11-15)¶
Bug Fixes¶
Vendored Libraries¶
Improved Documentation¶
Fix the documentation to reflect the fact that special characters must be percent-encoded in the URL. #4856
2021.11.9 (2021-11-09)¶
Features & Improvements¶
Replace
click-completionwithclick’s own completion implementation. #4786
Bug Fixes¶
Vendored Libraries¶
Update
pythonfinderfrom1.2.8to1.2.9. #4837
2021.11.5.post0 (2021-11-05)¶
Bug Fixes¶
2021.11.5 (2021-11-05)¶
Features & Improvements¶
Bug Fixes¶
Ignore empty .venv in rood dir and create project name base virtual environment #4790
Vendored Libraries¶
Update vendored dependencies -
attrsfrom20.3.0to21.2.0-cerberusfrom1.3.2to1.3.4-certififrom2020.11.8to2021.5.30-chardetfrom3.0.4to4.0.0-clickfrom7.1.2to8.0.1-distlibfrom0.3.1to0.3.2-idnafrom2.10to3.2-importlib-metadatafrom2.0.0to4.6.1-importlib-resourcesfrom3.3.0to5.2.0-jinja2from2.11.2to3.0.1-markupsafefrom1.1.1to2.0.1-more-itertoolsfrom5.0.0to8.8.0-packagingfrom20.8to21.0-pep517from0.9.1to0.11.0-pipdeptreefrom1.0.0to2.0.0-ptyprocessfrom0.6.0to0.7.0-python-dateutilfrom2.8.1to2.8.2-python-dotenvfrom0.15.0to0.19.0-pythonfinderfrom1.2.5to1.2.8-requestsfrom2.25.0to2.26.0-shellinghamfrom1.3.2to1.4.0-sixfrom1.15.0to1.16.0-tomlkitfrom0.7.0to0.7.2-urllib3from1.26.1to1.26.6-zippfrom1.2.0to3.5.0Add new vendored dependencies -
charset-normalizer 2.0.3-termcolor 1.1.0-tomli 1.1.0-wheel 0.36.2#4747Drop the dependencies for Python 2.7 compatibility purpose. #4751
Switch the dependency resolver from
pip-toolstopip.Update vendor libraries: - Update
requirementslibfrom1.5.16to1.6.1- Updatepip-shimsfrom0.5.6to0.6.0- New vendorplatformdirs 2.4.0#4759
Improved Documentation¶
2021.5.29 (2021-05-29)¶
Bug Fixes¶
Fix a bug where passing –skip-lock when PIPFILE has no [SOURCE] section throws the error: “tomlkit.exceptions.NonExistentKey: ‘Key “source” does not exist.’” #4141
Fix bug where environment wouldn’t activate in paths containing & and $ symbols #4538
Fix a bug that
importlib-metadatafrom the project’s dependencies conflicts with that frompipenv’s. #4549Fix a bug where
pep508checker.pydid not expect double-digit Python minor versions (e.g. “3.10”). #4602Fix bug where environment wouldn’t activate in paths containing () and [] symbols #4615
Fix bug preventing use of pipenv lock –pre #4642
Vendored Libraries¶
Update
packagingfrom20.4to20.8. #4591
2020.11.15 (2020-11-15)¶
Features & Improvements¶
Bug Fixes¶
Fix a bug that executable scripts with leading backslash can’t be executed via
pipenv run. #4368Fix a bug that VCS dependencies always satisfy even if the ref has changed. #4387
Restrict the acceptable hash type to SHA256 only. #4517
Fix the output of
pipenv scriptsunder Windows platform. #4523Fix a bug that the resolver takes wrong section to validate constraints. #4527
Vendored Libraries¶
- Update vendored dependencies:
coloramafrom0.4.3to0.4.4python-dotenvfrom0.10.3to0.15.0firstfrom2.0.1to2.0.2iso8601from0.1.12to0.1.13parsefrom1.15.0to1.18.0pipdeptreefrom0.13.2to1.0.0requestsfrom2.23.0to2.25.0idnafrom2.9to2.10urllib3from1.25.9to1.26.1certififrom2020.4.5.1to2020.11.8requirementslibfrom1.5.15to1.5.16attrsfrom19.3.0to20.3.0distlibfrom0.3.0to0.3.1packagingfrom20.3to20.4sixfrom1.14.0to1.15.0semverfrom2.9.0to2.13.0tomlfrom0.10.1to0.10.2cached-propertyfrom1.5.1to1.5.2yaspinfrom0.14.3to1.2.0resolvelibfrom0.3.0to0.5.2pep517from0.8.2to0.9.1zippfrom0.6.0to1.2.0importlib-metadatafrom1.6.0to2.0.0importlib-resourcesfrom1.5.0to3.3.0#4533
Improved Documentation¶
Fix suggested pyenv setup to avoid using shimmed interpreter #4534
2020.11.4 (2020-11-04)¶
Features & Improvements¶
Add a new command
pipenv scriptsto display shortcuts from Pipfile. #3686Retrieve package file hash from URL to accelerate the locking process. #3827
Add the missing
--systemoption topipenv sync. #4441Add a new option pair
--header/--no-headertopipenv lockcommand, which adds a header to the generated requirements.txt #4443
Bug Fixes¶
Fix a bug that percent encoded characters will be unquoted incorrectly in the file URL. #4089
Fix a bug where setting PIPENV_PYTHON to file path breaks environment name #4225
Fix a bug that paths are not normalized before comparison. #4330
Handle Python major and minor versions correctly in Pipfile creation. #4379
Fix a bug that non-wheel file requirements can be resolved successfully. #4386
Fix a bug that
pexept.exceptions.TIMEOUTis not caught correctly because of the wrong import path. #4424Fix a bug that compound TOML table is not parsed correctly. #4433
Fix a bug that invalid Python paths from Windows registry break
pipenv install. #4436Fix a bug that function calls in
setup.pycan’t be parsed rightly. #4446Fix a bug that dist-info inside
venvdirectory will be mistaken as the editable package’s metadata. #4480Make the order of hashes in resolution result stable. #4513
Vendored Libraries¶
Improved Documentation¶
Discourage homebrew installation in installation guides. #4013
2020.8.13 (2020-08-13)¶
Bug Fixes¶
Fixed behaviour of
pipenv uninstall --all-dev. From now on it does not uninstall regular packages. #3722Fix a bug that incorrect Python path will be used when
--systemflag is on. #4315Fix falsely flagging a Homebrew installed Python as a virtual environment #4316
Fix a bug that
pipenv uninstallthrows an exception that does not exist. #4321Fix a bug that Pipenv can’t locate the correct file of special directives in
setup.cfgof an editable package. #4335Fix a bug that
setup.pycan’t be parsed correctly when the assignment is type-annotated. #4342Fix a bug that
pipenv graphthrows an exception that PipenvCmdError(cmd_string, c.out, c.err, return_code). #4388Do not copy the whole directory tree of local file package. #4403
Correctly detect whether Pipenv in run under an activated virtualenv. #4412
Vendored Libraries¶
2020.6.2 (2020-06-02)¶
Features & Improvements¶
Pipenv will now detect existing
venvandvirtualenvbased virtual environments more robustly. #4276
Bug Fixes¶
+signs in URL authentication fragments will no longer be incorrectly replaced with space ( `` `` ) characters. #4271Fixed a regression which caused Pipenv to fail when running under
/. #4273setup.pyfiles withversionvariables read fromos.environare now able to be parsed successfully. #4274Fixed a bug which caused Pipenv to fail to install packages in a virtual environment if those packages were already present in the system global environment. #4276
Fix a bug that caused non-specific versions to be pinned in
Pipfile.lock. #4278Corrected a missing exception import and invalid function call invocations in
pipenv.cli.command. #4286Fixed an issue with resolving packages with names defined by function calls in
setup.py. #4292Fixed a regression with installing the current directory, or
., inside avenvbased virtual environment. #4295Fixed a bug with the discovery of python paths on Windows which could prevent installation of environments during
pipenv install. #4296Fixed an issue in the
requirementslibAST parser which prevented parsing ofsetup.pyfiles for dependency metadata. #4298Fix a bug where Pipenv doesn’t realize the session is interactive #4305
Vendored Libraries¶
2020.5.28 (2020-05-28)¶
Features & Improvements¶
pipenv installandpipenv syncwill no longer attempt to install satisfied dependencies during installation. #3057, #3506Added support for resolution of direct-url dependencies in
setup.pyfiles to respectPEP-508style URL dependencies. #3148Added full support for resolution of all dependency types including direct URLs, zip archives, tarballs, etc.
Improved error handling and formatting.
Introduced improved cross platform stream wrappers for better
stdoutandstderrconsistency. #3298
For consistency with other commands and the
--devoption description,pipenv lock --requirements --devnow emits both default and development dependencies. The new--dev-onlyoption requests the previous behaviour (e.g. to generate adev-requirements.txtfile). #3316Pipenv will now successfully recursively lock VCS sub-dependencies. #3328
Added support for
--verboseoutput topipenv run. #3348Pipenv will now discover and resolve the intrinsic dependencies of all VCS dependencies, whether they are editable or not, to prevent resolution conflicts. #3368
Added a new environment variable,
PIPENV_RESOLVE_VCS, to toggle dependency resolution off for non-editable VCS, file, and URL based dependencies. #3577Added the ability for Windows users to enable emojis by setting
PIPENV_HIDE_EMOJIS=0. #3595Allow overriding PIPENV_INSTALL_TIMEOUT environment variable (in seconds). #3652
Allow overriding PIP_EXISTS_ACTION environment variable (value is passed to pip install). Possible values here: https://pip.pypa.io/en/stable/reference/pip/#exists-action-option Useful when you need to
PIP_EXISTS_ACTION=i(ignore existing packages) - great for CI environments, where you need really fast setup. #3738Pipenv will no longer forcibly override
PIP_NO_DEPSon all vcs and file dependencies as resolution happens on these in a pre-lock step. #3763Improved verbose logging output during
pipenv lockwill now stream output to the console while maintaining a spinner. #3810Added support for automatic python installs via
asdfand associatedPIPENV_DONT_USE_ASDFenvironment variable. #4018Pyenv/asdf can now be used whether or not they are available on PATH. Setting PYENV_ROOT/ASDF_DIR in a Pipenv’s .env allows Pipenv to install an interpreter without any shell customizations, so long as pyenv/asdf is installed. #4245
Added
--keycommand line parameter for including personal PyUp.io API tokens when runningpipenv check. #4257
Behavior Changes¶
Make conservative checks of known exceptions when subprocess returns output, so user won’t see the whole traceback - just the error. #2553
Do not touch Pipfile early and rely on it so that one can do
pipenv syncwithout a Pipfile. #3386Re-enable
--helpoption forpipenv runcommand. #3844Make sure
pipenv lock -r --pypi-mirror {MIRROR_URL}will respect the pypi-mirror in requirements output. #4199
Bug Fixes¶
Raise
PipenvUsageErrorwhen [[source]] does not contain url field. #2373Fixed a bug which caused editable package resolution to sometimes fail with an unhelpful setuptools-related error message. #2722
Fixed an issue which caused errors due to reliance on the system utilities
whichandwherewhich may not always exist on some systems. - Fixed a bug which caused periodic failures in python discovery when executables namedpythonwere not present on the target$PATH. #2783Dependency resolution now writes hashes for local and remote files to the lockfile. #3053
Fixed a bug which prevented
pipenv graphfrom correctly showing all dependencies when running from withinpipenv shell. #3071Fixed resolution of direct-url dependencies in
setup.pyfiles to respectPEP-508style URL dependencies. #3148Fixed a bug which caused failures in warning reporting when running pipenv inside a virtualenv under some circumstances.
Fixed a bug with package discovery when running
pipenv clean. #3298
Quote command arguments with carets (
^) on Windows to work around unintended shell escapes. #3307Handle alternate names for UTF-8 encoding. #3313
Abort pipenv before adding the non-exist package to Pipfile. #3318
Don’t normalize the package name user passes in. #3324
Fix a bug where custom virtualenv can not be activated with pipenv shell #3339
Fix a bug that
--site-packagesflag is not recognized. #3351Fix a bug where pipenv –clear is not working #3353
Fix unhashable type error during
$ pipenv install --selective-upgrade#3384Dependencies with direct
PEP508compliant VCS URLs specified in theirinstall_requireswill now be successfully locked during the resolution process. #3396Fixed a keyerror which could occur when locking VCS dependencies in some cases. #3404
Fixed a bug that
ValidationErroris thrown when some fields are missing in source section. #3427Updated the index names in lock file when source name in Pipfile is changed. #3449
Fixed an issue which caused
pipenv install --helpto show duplicate entries for--pre. #3479Fix bug causing
[SSL: CERTIFICATE_VERIFY_FAILED]when Pipfile[[source]]has verify_ssl=false and url with custom port. #3502Fix
sync --sequentialignoringpip installerrors and logs. #3537Fix the issue that lock file can’t be created when
PIPENV_PIPFILEis not under working directory. #3584Pipenv will no longer inadvertently set
editable=Trueon all vcs dependencies. #3647The
--keep-outdatedargument topipenv installandpipenv lockwill now drop specifier constraints when encountering editable dependencies. - In addition,--keep-outdatedwill retain specifiers that would otherwise be dropped from any entries that have not been updated. #3656Fixed a bug which sometimes caused pipenv to fail to respect the
--site-packagesflag when passed withpipenv install. #3718Normalize the package names to lowercase when comparing used and in-Pipfile packages. #3745
pipenv update --outdatedwill now correctly handle comparisons between pre/post-releases and normal releases. #3766Fixed a
KeyErrorwhich could occur when pinning outdated VCS dependencies viapipenv lock --keep-outdated. #3768Resolved an issue which caused resolution to fail when encountering poorly formatted
python_versionmarkers insetup.pyandsetup.cfgfiles. #3786Fix a bug that installation errors are displayed as a list. #3794
Update
pythonfinderto fix a problem thatpython.exewill be mistakenly chosen for virtualenv creation under WSL. #3807Fixed several bugs which could prevent editable VCS dependencies from being installed into target environments, even when reporting successful installation. #3809
pipenv check --systemshould find the correct Python interpreter whenpythondoes not exist on the system. #3819Resolve the symlinks when the path is absolute. #3842
Pass
--preand--clearoptions topipenv update --outdated. #3879Fixed a bug which prevented resolution of direct URL dependencies which have PEP508 style direct url VCS sub-dependencies with subdirectories. #3976
Honor PIPENV_SPINNER environment variable #4045
Fixed an issue with
pipenv checkfailing due to an invalid API key frompyup.io. #4188Fixed a bug which caused versions from VCS dependencies to be included in
Pipfile.lockinadvertently. #4217Fixed a bug which caused pipenv to search non-existent virtual environments for
pipwhen installing using--system. #4220Requires-Pythonvalues specifying constraint versions of python starting from1.xwill now be parsed successfully. #4226Fix a bug of
pipenv update --outdatedthat can’t print output correctly. #4229Fixed a bug which caused pipenv to prefer source distributions over wheels from
PyPIduring the dependency resolution phase. Fixed an issue which prevented proper build isolation usingpep517based builders during dependency resolution. #4231Don’t fallback to system Python when no matching Python version is found. #4232
Vendored Libraries¶
Updated vendored dependencies:
attrs:
18.2.0=>19.1.0certifi:
2018.10.15=>2019.3.9cached_property:
1.4.3=>1.5.1cerberus:
1.2.0=>1.3.1click-completion:
0.5.0=>0.5.1colorama:
0.3.9=>0.4.1distlib:
0.2.8=>0.2.9idna:
2.7=>2.8jinja2:
2.10.0=>2.10.1markupsafe:
1.0=>1.1.1orderedmultidict:
(new)=>1.0packaging:
18.0=>19.0parse:
1.9.0=>1.12.0pathlib2:
2.3.2=>2.3.3pep517:
(new)=>0.5.0pexpect:
4.6.0=>4.7.0pipdeptree:
0.13.0=>0.13.2pyparsing:
2.2.2=>2.3.1python-dotenv:
0.9.1=>0.10.2pythonfinder:
1.1.10=>1.2.1pytoml:
(new)=>0.1.20requests:
2.20.1=>2.21.0requirementslib:
1.3.3=>1.5.0scandir:
1.9.0=>1.10.0shellingham:
1.2.7=>1.3.1six:
1.11.0=>1.12.0tomlkit:
0.5.2=>0.5.3urllib3:
1.24=>1.25.2vistir:
0.3.0=>0.4.1yaspin:
0.14.0=>0.14.3
Removed vendored dependency cursor. #3298
Updated
pip_shimsto support--outdatedwith new pip versions. #3766Update vendored dependencies and invocations
Update vendored and patched dependencies
Update patches on
piptools,pip,pip-shims,tomlkitFix invocations of dependencies
Fix custom
InstallCommandinstantiationUpdate
PackageFinderusageFix
Boolstringify attempts fromtomlkit
- Updated vendored dependencies:
attrs:
`18.2.0=>`19.1.0certifi:
`2018.10.15=>`2019.3.9cached_property:
`1.4.3=>`1.5.1cerberus:
`1.2.0=>`1.3.1click:
`7.0.0=>`7.1.1click-completion:
`0.5.0=>`0.5.1colorama:
`0.3.9=>`0.4.3contextlib2:
`(new)=>`0.6.0.post1distlib:
`0.2.8=>`0.2.9funcsigs:
`(new)=>`1.0.2importlib_metadata
`1.3.0=>`1.5.1importlib-resources:
`(new)=>`1.4.0idna:
`2.7=>`2.9jinja2:
`2.10.0=>`2.11.1markupsafe:
`1.0=>`1.1.1more-itertools:
`(new)=>`5.0.0orderedmultidict:
`(new)=>`1.0packaging:
`18.0=>`19.0parse:
`1.9.0=>`1.15.0pathlib2:
`2.3.2=>`2.3.3pep517:
`(new)=>`0.5.0pexpect:
`4.6.0=>`4.8.0pip-shims:
`0.2.0=>`0.5.1pipdeptree:
`0.13.0=>`0.13.2pyparsing:
`2.2.2=>`2.4.6python-dotenv:
`0.9.1=>`0.10.2pythonfinder:
`1.1.10=>`1.2.2pytoml:
`(new)=>`0.1.20requests:
`2.20.1=>`2.23.0requirementslib:
`1.3.3=>`1.5.4scandir:
`1.9.0=>`1.10.0shellingham:
`1.2.7=>`1.3.2six:
`1.11.0=>`1.14.0tomlkit:
`0.5.2=>`0.5.11urllib3:
`1.24=>`1.25.8vistir:
`0.3.0=>`0.5.0yaspin:
`0.14.0=>`0.14.3zipp:
`0.6.0
Removed vendored dependency cursor. #4169
Add and update vendored dependencies to accommodate
safetyvendoring: - safety(none)=>1.8.7- dparse(none)=>0.5.0- pyyaml(none)=>5.3.1- urllib31.25.8=>1.25.9- certifi2019.11.28=>2020.4.5.1- pyparsing2.4.6=>2.4.7- resolvelib0.2.2=>0.3.0- importlib-metadata1.5.1=>1.6.0- pip-shims0.5.1=>0.5.2- requirementslib1.5.5=>1.5.6#4188Updated vendored
pip=>20.0.2andpip-tools=>5.0.0. #4215Updated vendored dependencies to latest versions for security and bug fixes:
requirementslib
1.5.8=>1.5.9vistir
0.5.0=>0.5.1jinja2
2.11.1=>2.11.2click
7.1.1=>7.1.2dateutil
(none)=>2.8.1backports.functools_lru_cache
1.5.0=>1.6.1enum34
1.1.6=>1.1.10toml
0.10.0=>0.10.1importlib_resources
1.4.0=>1.5.0#4226
Changed attrs import path in vendored dependencies to always import from
pipenv.vendor. #4267
Improved Documentation¶
Added documentation about variable expansion in
Pipfileentries. #2317Consolidate all contributing docs in the rst file #3120
Update the out-dated manual page. #3246
Move CLI docs to its own page. #3346
Replace (non-existent) video on docs index.rst with equivalent gif. #3499
Clarify wording in Basic Usage example on using double quotes to escape shell redirection #3522
Ensure docs show navigation on small-screen devices #3527
Added a link to the TOML Spec under General Recommendations & Version Control to clarify how Pipfiles should be written. #3629
Updated the documentation with the new
pytestentrypoint. #3759Fix link to GIF in README.md demonstrating Pipenv’s usage, and add descriptive alt text. #3911
Added a line describing potential issues in fancy extension. #3912
Documental description of how Pipfile works and association with Pipenv. #3913
Clarify the proper value of
python_versionandpython_full_version. #3914Write description for –deploy extension and few extensions differences. #3915
More documentation for
.envfiles #4100Updated documentation to point to working links. #4137
Replace docs.pipenv.org with pipenv.pypa.io #4167
Added functionality to check spelling in documentation and cleaned up existing typographical issues. #4209
2018.11.26 (2018-11-26)¶
Bug Fixes¶
Environment variables are expanded correctly before running scripts on POSIX. #3178
Pipenv will no longer disable user-mode installation when the
--systemflag is passed in. #3222Fixed an issue with attempting to render unicode output in non-unicode locales. #3223
Fixed a bug which could cause failures to occur when parsing python entries from global pyenv version files. #3224
Fixed an issue which prevented the parsing of named extras sections from certain
setup.pyfiles. #3230Correctly detect the virtualenv location inside an activated virtualenv. #3231
Fixed a bug which caused spinner frames to be written to standard output during locking operations which could cause redirection pipes to fail. #3239
Fixed a bug that editable packages can’t be uninstalled correctly. #3240
Corrected an issue with installation timeouts which caused dependency resolution to fail for longer duration resolution steps. #3244
Adding normal pep 508 compatible markers is now fully functional when using VCS dependencies. #3249
Updated
requirementslibandpythonfinderfor multiple bug fixes. #3254Pipenv will now ignore hashes when installing with
--skip-lock. #3255Fixed an issue where pipenv could crash when multiple pipenv processes attempted to create the same directory. #3257
Fixed an issue which sometimes prevented successful creation of a project Pipfile. #3260
pipenv installwill now unset thePYTHONHOMEenvironment variable when not combined with--system. #3261Pipenv will ensure that warnings do not interfere with the resolution process by suppressing warnings’ usage of standard output and writing to standard error instead. #3273
Fixed an issue which prevented variables from the environment, such as
PIPENV_DEVorPIPENV_SYSTEM, from being parsed and implemented correctly. #3278Clear pythonfinder cache after Python install. #3287
Fixed a race condition in hash resolution for dependencies for certain dependencies with missing cache entries or fresh Pipenv installs. #3289
Pipenv will now respect top-level pins over VCS dependency locks. #3296
Vendored Libraries¶
- Update vendored dependencies to resolve resolution output parsing and python finding:
pythonfinder 1.1.9 -> 1.1.10requirementslib 1.3.1 -> 1.3.3vistir 0.2.3 -> 0.2.5#3280
2018.11.14 (2018-11-14)¶
Features & Improvements¶
Improved exceptions and error handling on failures. #1977
Added persistent settings for all CLI flags via
PIPENV_{FLAG_NAME}environment variables by enablingauto_envvar_prefix=PIPENVin click (implements PEEP-0002). #2200Added improved messaging about available but skipped updates due to dependency conflicts when running
pipenv update --outdated. #2411Added environment variable
PIPENV_PYUP_API_KEYto add ability to override the bundled PyUP.io API key. #2825Added additional output to
pipenv update --outdatedto indicate that the operation succeeded and all packages were already up to date. #2828Updated
crayonspatch to enable colors on native powershell but swap native blue for magenta. #3020Added support for
--baretopipenv clean, and fixedpipenv sync --bareto actually reduce output. #3041Added windows-compatible spinner via upgraded
vistirdependency. #3089Added support for python installations managed by
asdf. #3096
Improved runtime performance of no-op commands such as
pipenv --venvby around 2/3. #3158Do not show error but success for running
pipenv uninstall --allin a fresh virtual environment. #3170Improved asynchronous installation and error handling via queued subprocess parallelization. #3217
Bug Fixes¶
Remote non-PyPI artifacts and local wheels and artifacts will now include their own hashes rather than including hashes from
PyPI. #2394Non-ascii characters will now be handled correctly when parsed by pipenv’s
ToMLparsers. #2737Updated
pipenv uninstallto respect the--skip-lockargument. #2848Fixed a bug which caused uninstallation to sometimes fail to successfully remove packages from
Pipfileswith comments on preceding or following lines. #2885, #3099Pipenv will no longer fail when encountering python versions on Windows that have been uninstalled. #2983
Fixed unnecessary extras are added when translating markers #3026
Fixed a virtualenv creation issue which could cause new virtualenvs to inadvertently attempt to read and write to global site packages. #3047
Fixed an issue with virtualenv path derivation which could cause errors, particularly for users on WSL bash. #3055
Fixed a bug which caused
Unexpected EOFerrors to be thrown whenpipwas waiting for input from users who had put login credentials in environment variables. #3088Fixed a bug in
requirementslibwhich prevented successful installation from mercurial repositories. #3090Fixed random resource warnings when using pyenv or any other subprocess calls. #3094
Fixed a bug which sometimes prevented cloning and parsing
mercurialrequirements. #3096
Fixed an issue in
delegator.pyrelated to subprocess calls when usingPopenSpawnto stream output, which sometimes threw unexpectedEOFerrors. #3102, #3114, #3117Fix the path casing issue that makes
pipenv cleanfail on Windows #3104Pipenv will avoid leaving build artifacts in the current working directory. #3106
Fixed issues with broken subprocess calls leaking resource handles and causing random and sporadic failures. #3109
Fixed an issue which caused
pipenv cleanto sometimes clean packages from the basesite-packagesfolder or fail entirely. #3113Updated
pythonfinderto correct an issue with unnesting of nested paths when searching for python versions. #3121Added additional logic for ignoring and replacing non-ascii characters when formatting console output on non-UTF-8 systems. #3131
Fix virtual environment discovery when
PIPENV_VENV_IN_PROJECTis set, but the in-project.venvis a file. #3134Hashes for remote and local non-PyPI artifacts will now be included in
Pipfile.lockduring resolution. #3145Fix project path hashing logic in purpose to prevent collisions of virtual environments. #3151
Fix package installation when the virtual environment path contains parentheses. #3158
Azure Pipelines YAML files are updated to use the latest syntax and product name. #3164
Fixed new spinner success message to write only one success message during resolution. #3183
Pipenv will now correctly respect the
--preoption when used withpipenv install. #3185Fix a bug where exception is raised when run pipenv graph in a project without created virtualenv #3201
When sources are missing names, names will now be derived from the supplied URL. #3216
Vendored Libraries¶
Updated
pythonfinderto correct an issue with unnesting of nested paths when searching for python versions. #3061, #3121- Updated vendored dependencies:
certifi 2018.08.24 => 2018.10.15urllib3 1.23 => 1.24requests 2.19.1 => 2.20.0shellingham ``1.2.6 => 1.2.7tomlkit 0.4.4. => 0.4.6vistir 0.1.6 => 0.1.8pythonfinder 0.1.2 => 0.1.3requirementslib 1.1.9 => 1.1.10backports.functools_lru_cache 1.5.0 (new)cursor 1.2.0 (new)#3089
- Updated vendored dependencies:
requests 2.19.1 => 2.20.1tomlkit 0.4.46 => 0.5.2vistir 0.1.6 => 0.2.4pythonfinder 1.1.2 => 1.1.8requirementslib 1.1.10 => 1.3.0#3096
Switch to
tomlkitfor parsing and writing. Dropprettytomlandcontomlfrom vendors. #3191Updated
requirementslibto aid in resolution of local and remote archives. #3196
Improved Documentation¶
Expanded development and testing documentation for contributors to get started. #3074
2018.10.13 (2018-10-13)¶
Bug Fixes¶
Fixed a bug in
pipenv cleanwhich caused global packages to sometimes be inadvertently targeted for cleanup. #2849Fix broken backport imports for vendored vistir. #2950, #2955, #2961
Fixed a bug with importing local vendored dependencies when running
pipenv graph. #2952Fixed a bug which caused executable discovery to fail when running inside a virtualenv. #2957
Fix parsing of outline tables. #2971
Fixed a bug which caused
verify_sslto fail to drop through topip installcorrectly astrusted-host. #2979Fixed a bug which caused canonicalized package names to fail to resolve against PyPI. #2989
Enhanced CI detection to detect Azure Devops builds. #2993
Fixed a bug which prevented installing pinned versions which used redirection symbols from the command line. #2998
Fixed a bug which prevented installing the local directory in non-editable mode. #3005
Vendored Libraries¶
2018.10.9 (2018-10-09)¶
Features & Improvements¶
Added environment variables
PIPENV_VERBOSEandPIPENV_QUIETto control output verbosity without needing to pass options. #2527Updated test-PyPI add-on to better support json-API access (forward compatibility). Improved testing process for new contributors. #2568
Greatly enhanced python discovery functionality:
Added pep514 (windows launcher/finder) support for python discovery.
Introduced architecture discovery for python installations which support different architectures. #2582
Added support for
pipenv shellon msys and cygwin/mingw/git bash for Windows. #2641Enhanced resolution of editable and VCS dependencies. #2643
Deduplicate and refactor CLI to use stateful arguments and object passing. See this issue for reference. #2814
Behavior Changes¶
Virtual environment activation for
runis revised to improve interpolation with other Python discovery tools. #2503Improve terminal coloring to display better in Powershell. #2511
Invoke
virtualenvdirectly for virtual environment creation, instead of depending onpew. #2518pipenv --helpwill now include short help descriptions. #2542Add
COMSPECto fallback option (along withSHELLandPYENV_SHELL) if shell detection fails, improving robustness on Windows. #2651Fallback to shell mode if
runfails with Windows error 193 to handle non-executable commands. This should improve usability on Windows, where some users run non-executable files without specifying a command, relying on Windows file association to choose the current command. #2718
Bug Fixes¶
Fixed a bug which prevented installation of editable requirements using
ssh://style URLs #1393VCS Refs for locked local editable dependencies will now update appropriately to the latest hash when running
pipenv update. #1690.tar.gzand.zipartifacts will now have dependencies installed even when they are missing from the Lockfile. #2173The command line parser will now handle multiple
-e/--editabledependencies properly via click’s option parser to help mitigate future parsing issues. #2279Fixed the ability of pipenv to parse
dependency_linksfromsetup.pywhenPIP_PROCESS_DEPENDENCY_LINKSis enabled. #2434Fixed a bug which could cause
-i/--indexarguments to sometimes be incorrectly picked up in packages. This is now handled in the command line parser. #2494Fixed non-deterministic resolution issues related to changes to the internal package finder in
pip 10. #2499, #2529, #2589, #2666, #2767, #2785, #2795, #2801, #2824, #2862, #2879, #2894, #2933Fix subshell invocation on Windows for Python 2. #2515
Fixed a bug which sometimes caused pipenv to throw a
TypeErroror to run into encoding issues when writing a Lockfile on python 2. #2561Improve quoting logic for
pipenv runso it works better with Windows built-in commands. #2563Fixed a bug related to parsing VCS requirements with both extras and subdirectory fragments. Corrected an issue in the
requirementslibparser which led to some markers being discarded rather than evaluated. #2564Fixed multiple issues with finding the correct system python locations. #2582
Catch JSON decoding error to prevent exception when the lock file is of invalid format. #2607
Fixed a rare bug which could sometimes cause errors when installing packages with custom sources. #2610
Update requirementslib to fix a bug which could raise an
UnboundLocalErrorwhen parsing malformed VCS URIs. #2617Fixed an issue which prevented passing multiple
--ignoreparameters topipenv check. #2632Fixed a bug which caused attempted hashing of
ssh://style URIs which could cause failures during installation of private ssh repositories. - Corrected path conversion issues which caused certain editable VCS paths to be converted tossh://URIs improperly. #2639Fixed a bug which caused paths to be formatted incorrectly when using
pipenv shellin bash for windows. #2641Dependency links to private repositories defined via
ssh://schemes will now install correctly and skip hashing as long asPIP_PROCESS_DEPENDENCY_LINKS=1. #2643Fixed a bug which sometimes caused pipenv to parse the
trusted_hostargument to pip incorrectly when parsing source URLs which specifyverify_ssl = false. #2656Prevent crashing when a virtual environment in
WORKON_HOMEis faulty. #2676Fixed virtualenv creation failure when a .venv file is present in the project root. #2680
Fixed a bug which could cause the
-e/--editableargument on a dependency to be accidentally parsed as a dependency itself. #2714Correctly pass
verboseanddebugflags to the resolver subprocess so it generates appropriate output. This also resolves a bug introduced by the fix to #2527. #2732All markers are now included in
pipenv lock --requirementsoutput. #2748Fixed a bug in marker resolution which could cause duplicate and non-deterministic markers. #2760
Fixed a bug in the dependency resolver which caused regular issues when handling
setup.pybased dependency resolution. #2766- Updated vendored dependencies:
pip-tools(updated and patched to latest w/pip 18.0compatibility)pip 10.0.1 => 18.0click 6.7 => 7.0toml 0.9.4 => 0.10.0pyparsing 2.2.0 => 2.2.2delegator 0.1.0 => 0.1.1attrs 18.1.0 => 18.2.0distlib 0.2.7 => 0.2.8packaging 17.1.0 => 18.0passa 0.2.0 => 0.3.1pip_shims 0.1.2 => 0.3.1plette 0.1.1 => 0.2.2pythonfinder 1.0.2 => 1.1.0pytoml 0.1.18 => 0.1.19requirementslib 1.1.16 => 1.1.17shellingham 1.2.4 => 1.2.6tomlkit 0.4.2 => 0.4.4
Fixed a bug where
pipenvcrashes when theWORKON_HOMEdirectory does not exist. #2877Fixed pip is not loaded from pipenv’s patched one but the system one #2912
Fixed various bugs related to
pip 18.1release which prevented locking, installation, and syncing, and dumping to arequirements.txtfile. #2924
Vendored Libraries¶
Pew is no longer vendored. Entry point
pewtwo, packagespipenv.pewandpipenv.patched.peware removed. #2521Update
pythonfinderto major release1.0.0for integration. #2582Update requirementslib to fix a bug which could raise an
UnboundLocalErrorwhen parsing malformed VCS URIs. #2617Vendored new libraries
vistirandpip-shims,tomlkit,modutil, andplette.Update vendored libraries: -
scandirto1.9.0-click-completionto0.4.1-semverto2.8.1-shellinghamto1.2.4-pytomlto0.1.18-certifito2018.8.24-ptyprocessto0.6.0-requirementslibto1.1.5-pythonfinderto1.0.2-pipdeptreeto0.13.0-python-dotenvto0.9.1#2639
- Updated vendored dependencies:
pip-tools(updated and patched to latest w/pip 18.0compatibility)pip 10.0.1 => 18.0click 6.7 => 7.0toml 0.9.4 => 0.10.0pyparsing 2.2.0 => 2.2.2delegator 0.1.0 => 0.1.1attrs 18.1.0 => 18.2.0distlib 0.2.7 => 0.2.8packaging 17.1.0 => 18.0passa 0.2.0 => 0.3.1pip_shims 0.1.2 => 0.3.1plette 0.1.1 => 0.2.2pythonfinder 1.0.2 => 1.1.0pytoml 0.1.18 => 0.1.19requirementslib 1.1.16 => 1.1.17shellingham 1.2.4 => 1.2.6tomlkit 0.4.2 => 0.4.4
Improved Documentation¶
Simplified the test configuration process. #2568
Updated documentation to use working fortune cookie add-on. #2644
Added additional information about troubleshooting
pipenv shellby using the the$PIPENV_SHELLenvironment variable. #2671Added a link to
PEP-440version specifiers in the documentation for additional detail. #2674Added simple example to README.md for installing from git. #2685
Stopped recommending
--systemfor Docker contexts. #2762Fixed the example url for doing “pipenv install -e some-repository-url#egg=something”, it was missing the “egg=” in the fragment identifier. #2792
Fixed link to the “be cordial” essay in the contribution documentation. #2793
Clarify
pipenv installdocumentation #2844Replace reference to uservoice with PEEP-000 #2909
2018.7.1 (2018-07-01)¶
Features & Improvements¶
All calls to
pipenv shellare now implemented from the ground up using shellingham, a custom library which was purpose built to handle edge cases and shell detection. #2371Added support for python 3.7 via a few small compatibility / bug fixes. #2427, #2434, #2436
Added new flag
pipenv --supportto replace the diagnostic commandpython -m pipenv.help. #2477, #2478Improved import times and CLI run times with minor tweaks. #2485
Bug Fixes¶
Fixed an ongoing bug which sometimes resolved incompatible versions into the project Lockfile. #1901
Fixed a bug which caused errors when creating virtualenvs which contained leading dash characters. #2415
Fixed a logic error which caused
--deploy --systemto overwrite editable vcs packages in the Pipfile before installing, which caused any installation to fail by default. #2417Updated requirementslib to fix an issue with properly quoting markers in VCS requirements. #2419
Installed new vendored jinja2 templates for
click-completionwhich were causing template errors for users with completion enabled. #2422Added support for python 3.7 via a few small compatibility / bug fixes. #2427
Fixed an issue reading package names from
setup.pyfiles in projects which imported utilities such asversioneer. #2433Pipenv will now ensure that its internal package names registry files are written with unicode strings. #2450
Fixed a bug causing requirements input as relative paths to be output as absolute paths or URIs. Fixed a bug affecting normalization of
git+git@hostURLs. #2453Pipenv will now always use
pathlib2forPathbased filesystem interactions by default onpython<3.5. #2454Fixed a bug which prevented passing proxy PyPI indexes set with
--pypi-mirrorfrom being passed to pip during virtualenv creation, which could cause the creation to freeze in some cases. #2462Using the
python -m pipenv.helpcommand will now use proper encoding for the host filesystem to avoid encoding issues. #2466The new
jinja2templates forclick_completionwill now be included in pipenv source distributions. #2479Resolved a long-standing issue with re-using previously generated
InstallRequirementobjects for resolution which could causePKG-INFOfile information to be deleted, raising aTypeError. #2480Resolved an issue parsing usernames from private PyPI URIs in
Pipfilesby updatingrequirementslib. #2484
Vendored Libraries¶
All calls to
pipenv shellare now implemented from the ground up using shellingham, a custom library which was purpose built to handle edge cases and shell detection. #2371Updated requirementslib to fix an issue with properly quoting markers in VCS requirements. #2419
Installed new vendored jinja2 templates for
click-completionwhich were causing template errors for users with completion enabled. #2422Add patch to
prettytomlto support Python 3.7. #2426Patched
prettytoml.AbstractTable._enumerate_itemsto handleStopIterationerrors in preparation of release of python 3.7. #2427Fixed an issue reading package names from
setup.pyfiles in projects which imported utilities such asversioneer. #2433Updated
requirementslibto version1.0.9#2453Unraveled a lot of old, unnecessary patches to
pip-toolswhich were causing non-deterministic resolution errors. #2480Resolved an issue parsing usernames from private PyPI URIs in
Pipfilesby updatingrequirementslib. #2484
Improved Documentation¶
Added instructions for installing using Fedora’s official repositories. #2404
2018.6.25 (2018-06-25)¶
Features & Improvements¶
Pipenv-created virtualenvs will now be associated with a
.projectfolder (features can be implemented on top of this later or users may choose to usepipenv-pipesto take full advantage of this.) #1861Virtualenv names will now appear in prompts for most Windows users. #2167
Added support for cmder shell paths with spaces. #2168
Added nested JSON output to the
pipenv graphcommand. #2199Dropped vendored pip 9 and vendored, patched, and migrated to pip 10. Updated patched piptools version. #2255
PyPI mirror URLs can now be set to override instances of PyPI URLs by passing the
--pypi-mirrorargument from the command line or setting thePIPENV_PYPI_MIRRORenvironment variable. #2281Virtualenv activation lines will now avoid being written to some shell history files. #2287
Pipenv will now only search for
requirements.txtfiles when creating new projects, and during that time only if the user doesn’t specify packages to pass in. #2309Added support for mounted drives via UNC paths. #2331
Added support for Windows Subsystem for Linux bash shell detection. #2363
Pipenv will now generate hashes much more quickly by resolving them in a single pass during locking. #2384
pipenv runwill now avoid spawning additionalCOMSPECinstances to run commands in when possible. #2385Massive internal improvements to requirements parsing codebase, resolver, and error messaging. #2388
pipenv checknow may take multiple of the additional argument--ignorewhich takes a parametercve_idfor the purpose of ignoring specific CVEs. #2408
Behavior Changes¶
Pipenv will now parse & capitalize
platform_python_implementationmarkers … warning:: This could cause an issue if you have an out of datePipfilewhich lower-cases the comparison value (e.g.cpythoninstead ofCPython). #2123Pipenv will now only search for
requirements.txtfiles when creating new projects, and during that time only if the user doesn’t specify packages to pass in. #2309
Bug Fixes¶
Massive internal improvements to requirements parsing codebase, resolver, and error messaging. #1962, #2186, #2263, #2312
Pipenv will now parse & capitalize
platform_python_implementationmarkers. #2123Fixed a bug with parsing and grouping old-style
setup.pyextras during resolution #2142Fixed a bug causing pipenv graph to throw unhelpful exceptions when running against empty or non-existent environments. #2161
Fixed a bug which caused
--systemto incorrectly abort when users were in a virtualenv. #2181Removed vendored
cacert.pemwhich could cause issues for some users with custom certificate settings. #2193Fixed a regression which led to direct invocations of
virtualenv, rather than calling it by module. #2198Locking will now pin the correct VCS ref during
pipenv updateruns. Runningpipenv updatewith a new vcs ref specified in thePipfilewill now properly obtain, resolve, and install the specified dependency at the specified ref. #2209pipenv cleanwill now correctly ignore comments frompip freezewhen cleaning the environment. #2262Resolution bugs causing packages for incompatible python versions to be locked have been fixed. #2267
Fixed a bug causing pipenv graph to fail to display sometimes. #2268
Updated
requirementslibto fix a bug in Pipfile parsing affecting relative path conversions. #2269Windows executable discovery now leverages
os.pathext. #2298Fixed a bug which caused
--deploy --systemto inadvertently create a virtualenv before failing. #2301Fixed an issue which led to a failure to unquote special characters in file and wheel paths. #2302
VCS dependencies are now manually obtained only if they do not match the requested ref. #2304
Added error handling functionality to properly cope with single-digit
Requires-Pythonmetadata with no specifiers. #2377pipenv updatewill now always run the resolver and lock before ensuring dependencies are in sync with project Lockfile. #2379Resolved a bug in our patched resolvers which could cause nondeterministic resolution failures in certain conditions. Running
pipenv installwith no arguments in a project with only aPipfilewill now correctly lock first for dependency resolution before installing. #2384Patched
python-dotenvto ensure that environment variables always get encoded to the filesystem encoding. #2386
Improved Documentation¶
Vendored Libraries¶
Removed vendored
cacert.pemwhich could cause issues for some users with custom certificate settings. #2193Dropped vendored pip 9 and vendored, patched, and migrated to pip 10. Updated patched piptools version. #2255
Updated
requirementslibto fix a bug in Pipfile parsing affecting relative path conversions. #2269Added custom shell detection library
shellingham, a port of our changes topew. #2363Patched
python-dotenvto ensure that environment variables always get encoded to the filesystem encoding. #2386Updated vendored libraries. The following vendored libraries were updated:
distlib from version
0.2.6to0.2.7.jinja2 from version
2.9.5to2.10.pathlib2 from version
2.1.0to2.3.2.parse from version
2.8.0to2.8.4.pexpect from version
2.5.2to2.6.0.requests from version
2.18.4to2.19.1.idna from version
2.6to2.7.certifi from version
2018.1.16to2018.4.16.packaging from version
16.8to17.1.six from version
1.10.0to1.11.0.requirementslib from version
0.2.0to1.0.1.
In addition, scandir was vendored and patched to avoid importing host system binaries when falling back to pathlib2. #2368