Skip to content

Releases: pypa/pipenv

Release v2020.4.1b2

20 May 20:40
96df756
Compare
Choose a tag to compare
Version v2020.4.1b2

Features & Improvements
-----------------------

- pipenv install and pipenv sync will no longer attempt to install satisfied dependencies during installation.  _,
  _
- Added support for resolution of direct-url dependencies in setup.py files to respect PEP-508 style URL dependencies.  _
- Added 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 stdout and stderr consistency.  _
- For consistency with other commands and the --dev option
  description, pipenv lock --requirements --dev now emits
  both default and development dependencies.
  The new --dev-only option requests the previous
  behaviour (e.g. to generate a dev-requirements.txt file).  _
- Pipenv will now successfully recursively lock VCS sub-dependencies.  _
- Added support for --verbose output to pipenv run.  _
- Pipenv will now discover and resolve the intrinsic dependencies of **all** VCS dependencies, whether they are editable or not, to prevent resolution conflicts.  _
- Added a new environment variable, PIPENV_RESOLVE_VCS, to toggle dependency resolution off for non-editable VCS, file, and URL based dependencies.  _
- Added the ability for Windows users to enable emojis by setting PIPENV_HIDE_EMOJIS=0.  _
- Allow overriding PIPENV_INSTALL_TIMEOUT environment variable (in seconds).  _
- Allow overriding PIP_EXISTS_ACTION evironment 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  (ignore existing packages) - great for CI environments, where you need really fast setup.  _
- Pipenv will no longer forcibly override PIP_NO_DEPS on all vcs and file dependencies as resolution happens on these in a pre-lock step.  _
- Improved verbose logging output during pipenv lock will now stream output to the console while maintaining a spinner.  _
- Added support for automatic python installs via asdf and associated PIPENV_DONT_USE_ASDF environment variable.  _
- Pyenv/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.  _
- Added --key command line parameter for including personal PyUp.io API tokens when running pipenv check.  _

Behavior Changes
----------------

- Make conservative checks of known exceptions when subprocess returns output, so user won't see the whole traceback - just the error.  _
- Do not touch Pipfile early and rely on it so that one can do pipenv sync without a Pipfile.  _
- Re-enable --help option for pipenv run command.  _
- Make sure pipenv lock -r --pypi-mirror {MIRROR_URL} will respect the pypi-mirror in requirements output.  _

Bug Fixes
---------

- Raise  when [[source]] does not contain url field.  _
- Fixed a bug which caused editable package resolution to sometimes fail with an unhelpful setuptools-related error message.  _
- Fixed an issue which caused errors due to reliance on the system utilities which and where which may not always exist on some systems.
  - Fixed a bug which caused periodic failures in python discovery when executables named python were not present on the target /home/techalchemy/.virtualenvs/pipenv-0GBqCkUI/bin:/home/techalchemy/.pyenv/shims:/home/techalchemy/.pyenv/bin:/home/techalchemy/.local/bin:/home/techalchemy/bin:/home/techalchemy/go/bin:/home/techalchemy/.pyenv/versions/3.8.2/bin:/home/techalchemy/.pyenv/libexec:/home/techalchemy/.pyenv/plugins/python-build/bin:/home/techalchemy/.pyenv/plugins/pyenv-virtualenv/bin:/home/techalchemy/.pyenv/plugins/pyenv-update/bin:/home/techalchemy/.pyenv/plugins/pyenv-installer/bin:/home/techalchemy/.pyenv/plugins/pyenv-doctor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/techalchemy/.cargo/bin:/home/techalchemy/git/ubuntu-qa-tools/vm-tools.  _
- Dependency resolution now writes hashes for local and remote files to the lockfile.  _
- Fixed a bug which prevented pipenv graph from correctly showing all dependencies when running from within pipenv shell.  _
- Fixed resolution of direct-url dependencies in setup.py files to respect PEP-508 style URL dependencies.  _
- Fixed 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.  _
- Quote command arguments with carets (^) on Windows to work around unintended shell escapes.  _
- Handle alternate names for UTF-8 encoding.  _
- Abort pipenv before adding the non-exist package to Pipfile.  _
- Don't normalize the package name user passes in.  _
- Fix a bug where custom virtualenv can not be activated with pipenv shell  _
- Fix a bug that --site-packages flag is not recognized.  _
- Fix a bug where pipenv --clear is not working  _
- Fix unhashable type error during $ pipenv install --selective-upgrade  _
- Dependencies with direct PEP508 compliant VCS URLs specified in their install_requires will now be successfully locked during the resolution process.  _
- Fixed a keyerror which could occur when locking VCS dependencies in some cases.  _
- Fixed a bug that ValidationError is thrown when some fields are missing in source section.  _
- Updated the index names in lock file when source name in Pipfile is changed.  _
- Fixed an issue which caused pipenv install --help to show duplicate entries for --pre.  _
- Fix bug causing [SSL: CERTIFICATE_VERIFY_FAILED] when Pipfile [[source]] has verify_ssl=false and url with custom port.  _
- Fix sync --sequential ignoring pip install errors and logs.  _
- Fix the issue that lock file can't be created when PIPENV_PIPFILE is not under working directory.  _
- Pipenv will no longer inadvertently set editable=True on all vcs dependencies.  _
- The --keep-outdated argument to pipenv install and pipenv lock will now drop specifier constraints when encountering editable dependencies.
  - In addition, --keep-outdated will retain specifiers that would otherwise be dropped from any entries that have not been updated.  _
- Fixed a bug which sometimes caused pipenv to fail to respect the --site-packages flag when passed with pipenv install.  _
- Normalize the package names to lowercase when comparing used and in-Pipfile packages.  _
- pipenv update --outdated will now correctly handle comparisons between pre/post-releases and normal releases.  _
- Fixed a KeyError which could occur when pinning outdated VCS dependencies via pipenv lock --keep-outdated.  _
- Resolved an issue which caused resolution to fail when encountering poorly formatted python_version markers in setup.py and setup.cfg files.  _
- Fix a bug that installation errors are displayed as a list.  _
- Update pythonfinder to fix a problem that python.exe will be mistakenly chosen for
  virtualenv creation under WSL.  _
- Fixed several bugs which could prevent editable VCS dependencies from being installed into target environments, even when reporting successful installation.  _
- pipenv check --system should find the correct Python interpreter when python does not exist on the system.  _
- Resolve the symlinks when the path is absolute.  _
- Pass --pre and --clear options to pipenv update --outdated.  _
- Fixed a bug which prevented resolution of direct URL dependencies which have PEP508 style direct url VCS sub-dependencies with subdirectories.  _
- Honor PIPENV_SPINNER environment variable  _
- Fixed an issue with pipenv check failing due to an invalid API key from pyup.io.  _
- Fixed a bug which caused versions from VCS dependencies to be included in Pipfile.lock inadvertently.  _
- Fixed a bug which caused pipenv to search non-existent virtual environments for pip when installing using --system.  _
- Requires-Python values specifying constraint versions of python starting from 1.x will now be parsed successfully.  _
- Fix a bug of pipenv update --outdated that can't print output correctly.  _
- Fixed a bug which caused pipenv to prefer source distributions over wheels from PyPI during the dependency resolution phase.
  Fixed an issue which prevented proper build isolation using pep517 based builders during dependency resolution.  _
- Don't fallback to system Python when no matching Python version is found.  _

Vendored Libraries
------------------

- Updated vendored dependencies:

    - **attrs**: 18.2.0 => 19.1.0
    - **certifi**: 2018.10.15 => 2019.3.9
    - **cached_property**: 1.4.3 => 1.5.1
    - **cerberus**: 1.2.0 => 1.3.1
    - **click-completion**: 0.5.0 => 0.5.1
    - **colorama**: 0.3.9 => 0.4.1
    - **distlib**: 0.2.8 => 0.2.9
    - **idna**: 2.7 => 2.8
    - **jinja2**: 2.10.0 => 2.10.1
    - **markupsafe**: 1.0 => 1.1.1
    - **orderedmultidict**: (new) => 1.0
    - **packaging**: 18.0 => 19.0
    - **parse**: 1.9.0 => 1.12.0
    - **pathlib2**: 2.3.2 => 2.3.3
    - **pep517**: (new) => 0.5.0
    - **pexpect**: 4.6.0 => 4.7.0
    - **pipdeptree**: 0.13.0 => 0.13.2
    - **pyparsing**: 2.2.2 => 2.3.1
    - **python-dotenv**: 0.9.1 => 0.10.2
    - **pythonfinder**: 1.1.10 => 1.2.1
    - **pytoml**: (new) => 0.1.20
    - **requests**: 2.20.1 => 2.21.0
    - **requirementslib**: 1.3.3 => 1.5.0
    - **scandir**: 1.9.0 => 1.10.0
    - **shellingham**: 1.2.7 => 1.3.1
    - **six**: 1.11.0 => 1.12.0
    - **tomlkit**: 0.5.2 => 0.5.3
    - **urllib3**: 1.24 => 1.25.2
    - **vistir**: 0.3.0 => 0.4.1
    - **yaspin**: 0.14.0 => 0.14.3

  - Removed vendored dependency **cursor**.  _
- Updated pip_shims to support --outdated with new pip versions.  _
- Update vendored dependencies and invocations

  - Update vendored and patched dependencies
    - Update patches on piptools, pip, pip-shims, tomlkit instantiation
    - Update PackageFinder stringify attempts from tomlkit18.2.0 => 2018.10.15 => 1.4.3 => 1.2.0 => 7.0.0 => 0.5.0 => 0.3.9 => (new) => 0.2.8 => (new) => 1.3.0 => (new) => 2.7 => 2.10.0 => 1.0 => (new) => (new) => 18.0 => 1.9.0 => 2.3.2 => (new) => 4.6.0 => 0.2.0 => 0.13.0 => 2.2.2 => 0.9.1 => 1.1.10 => (new) => 2.20.1 => 1.3.3 => 1.9.0 => 1.2.7 => 1.11.0 => 0.5.2 => 1.24 => 0.3.0 => 0.14.0 => 0.6.0

  - Removed vendored dependency **cursor**.  _
- Add and update vendored dependencies to accommodate safety vendoring:
  - **safety** (none) => 1.8.7
  - **dparse** (none) => 0.5.0
  - **pyyaml** (none) => 5.3.1
  - **urllib3** 1.25.8 => 1.25.9
  - **certifi** 2019.11.28 => 2020.4.5.1
  - **pyparsing** 2.4.6 => 2.4.7
  - **resolvelib** 0.2.2 => 0.3.0
  - **importlib-metadata** 1.5.1 => 1.6.0
  - **pip-shims** 0.5.1 => 0.5.2
  - **requirementslib** 1.5.5 => 1.5.6  _
- Updated vendored pip => 20.0.2 and pip-tools => 5.0.0.  _
- Updated vendored dependencies to latest versions for security and bug fixes:

  - **requirementslib** 1.5.8 => 1.5.9
  - **vistir** 0.5.0 => 0.5.1
  - **jinja2** 2.11.1 => 2.11.2
  - **click** 7.1.1 => 7.1.2
  - **dateutil** (none) => 2.8.1
  - **backports.functools_lru_cache** 1.5.0 => 1.6.1
  - **enum34** 1.1.6 => 1.1.10
  - **toml** 0.10.0 => 0.10.1
  - **importlib_resources** 1.4.0 => 1.5.0  _

Improved Documentation
----------------------

- Added documenation about variable expansion in Pipfile entries.  _
- Consolidate all contributing docs in the rst file  _
- Update the out-dated manual page.  _
- Move CLI docs to its own page.  _
- Replace (non-existant) video on docs index.rst with equivalent gif.  _
- Clarify wording in Basic Usage example on using double quotes to escape shell redirection  _
- Ensure docs show navigation on small-screen devices  _
- Added a link to the TOML Spec under General Recommendations & Version Control to clarify how Pipfiles should be written.  _
- Updated the documentation with the new pytest entrypoint.  _
- Fix link to GIF in README.md demonstrating Pipenv's usage, and add descriptive alt text.  _
- Added a line describing potential issues in fancy extension.  _
- Documental description of how Pipfile works and association with Pipenv.  _
- Clarify the proper value of python_version and python_full_version.  _
- Write description for --deploy extension and few extensions differences.  _
- More documentation for .env files  _
- Updated documentation to point to working links.  _
- Replace docs.pipenv.org with pipenv.pypa.io  _
- Added functionality to check spelling in documentation and cleaned up existing typographical issues.  _

Release v2020.4.1b1

29 Apr 04:03
36a5a7c
Compare
Choose a tag to compare
Bumped version.

Signed-off-by: Dan Ryan <[email protected]>

Release v2020.4.1a2

29 Apr 00:56
4e7b6e6
Compare
Choose a tag to compare
Fix tag syntax in workflow yaml

Signed-off-by: Dan Ryan <[email protected]>

2018.11.26 (2018-11-26)

26 Nov 07:14
742ae1b
Compare
Choose a tag to compare

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
    --system flag is passed in. #3222
  • Fixed 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.py files. #3230
  • Correctly detect the virtualenv location inside an activated
    virtualenv. #3231
  • Fixed a bug which caused spinner frames to be written to stdout
    during locking operations which could cause redirection pipes to
    fail. #3239
  • Fixed a bug that editable pacakges 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 requirementslib and pythonfinder for multiple
    bugfixes. #3254
  • Pipenv will now ignore hashes when installing with
    --skip-lock. #3255
  • Fixed 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
    project pipfiles. #3260
  • pipenv install will now unset the PYTHONHOME environment
    variable when not combined with --system. #3261
  • Pipenv 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_DEV or PIPENV_SYSTEM, from being parsed and
    implemented correctly. #3278
  • Clear 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.10
    • requirementslib 1.3.1 => 1.3.3
    • vistir 0.2.3 => 0.2.5 #3280

2018.11.14 (2018-11-14)

15 Nov 00:02
6f07e72
Compare
Choose a tag to compare

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 enabling auto_envvar_prefix=PIPENV in
    click (implements PEEP-0002). #2200
  • Added improved messaging about available but skipped updates due to
    dependency conflicts when running
    pipenv update --outdated. #2411
  • Added environment variable PIPENV_PYUP_API_KEY to add ability to
    override the bundled pyup.io API key. #2825
  • Added additional output to pipenv update --outdated to indicate
    that the operation succeded and all packages were already up to
    date. #2828
  • Updated crayons patch to enable colors on native powershell but
    swap native blue for magenta. #3020
  • Added support for --bare to pipenv clean, and fixed
    pipenv sync --bare to actually reduce output. #3041
  • Added windows-compatible spinner via upgraded vistir dependency. #3089
  • Added support for python installations managed by
    asdf. #3096
  • Improved runtime performance of no-op commands such as
    pipenv --venv by around 2/3. #3158
  • Do not show error but success for running pipenv uninstall --all
    in a fresh virtual environment. #3170
  • Improved asynchronous installation and error handling via queued
    subprocess paralleization. #3217

Bug Fixes

  • Remote non-PyPI artifacts and local wheels and artifacts will now
    include their own hashes rather than including hashes from
    PyPI. #2394
  • Non-ascii characters will now be handled correctly when parsed by
    pipenv's ToML
    parsers. #2737
  • Updated pipenv uninstall to respect the --skip-lock
    argument. #2848
  • Fixed a bug which caused uninstallation to sometimes fail to
    successfullly remove packages from Pipfiles with comments on
    preceding or following
    lines. #2885, #3099
  • Pipenv 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 EOF errors to be thrown when
    pip was waiting for input from users who had put login credentials
    in environment variables. #3088
  • Fixed a bug in requirementslib which prevented successful
    installation from mercurial repositories. #3090
  • Fixed random resource warnings when using pyenv or any other
    subprocess calls. #3094
    • Fixed a bug which sometimes prevented cloning and parsing
      mercurial requirements. #3096
  • Fixed an issue in delegator.py related to subprocess calls when
    using PopenSpawn to stream output, which sometimes threw
    unexpected EOF errors. #3102, #3114, #3117
  • Fix the path casing issue that makes pipenv clean fail on
    Windows. #3104
  • Pipenv 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 clean to sometimes clean
    packages from the base site-packages folder or fail
    entirely. #3113
  • Updated pythonfinder to correct an issue with unnesting of nested
    paths when searching for python
    versions. #3121
  • Added 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_PROJECT is
    set, but the in-project .venv is a
    file. #3134
  • Hashes for remote and local non-PyPI artifacts will now be included
    in Pipfile.lock during
    resolution. #3145
  • Fix 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 --pre option when used with
    pipenv install. #3185
  • Fix 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 pythonfinder to correct an issue with unnesting of nested
    paths when searching for python
    versions. #3061, #3121

  • Updated vendored dependencies:

    • certifi 2018.08.24 => 2018.10.15
    • urllib3 1.23 => 1.24
    • requests 2.19.1 => 2.20.0
    • shellingham 1.2.6 => 1.2.7
    • tomlkit 0.4.4. => 0.4.6
    • vistir 0.1.6 => 0.1.8
    • pythonfinder 0.1.2 => 0.1.3
    • requirementslib 1.1.9 => 1.1.10
    • backports.functools_lru_cache 1.5.0 (new)
    • cursor 1.2.0 (new) #3089
  • Updated vendored dependencies:

    • requests 2.19.1 => 2.20.1
    • tomlkit 0.4.46 => 0.5.2
    • vistir 0.1.6 => 0.2.4
    • pythonfinder 1.1.2 => 1.1.8
    • requirementslib 1.1.10 => 1.3.0 #3096
  • Switch to tomlkit for parsing and writing. Drop prettytoml and
    contoml from
    vendors. #3191

  • Updated requirementslib to 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)

15 Nov 00:03
5e9433e
Compare
Choose a tag to compare

2018.10.13 (2018-10-13)

Bug Fixes

  • Fixed a bug in pipenv clean which caused global packages to
    sometimes be inadvertently targeted for cleanup. #2849
  • Fix broken backport imports for vendored vistir. #2950, #2955, #2961
  • Fixed a bug with importing local vendored dependencies when running
    pipenv graph. #2952
  • Fixed 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_ssl to fail to drop through to
    pip install correctly as trusted-host. #2979
  • Fixed 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

  • Updated requirementslib to version 1.1.9. #2989
  • Upgraded pythonfinder => 1.1.1 and vistir => 0.1.7. #3007

2018.10.9 (2018-10-09)

09 Oct 07:28
acc6d75
Compare
Choose a tag to compare

2018.10.9 (2018-10-09)

Features & Improvements

  • Added environment variables PIPENV_VERBOSE and PIPENV_QUIET to
    control output verbosity without needing to pass options. #2527
  • Updated test-pypi addon 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 shell on msys and cygwin/mingw/git bash
    for windows. #2641
  • Enhanced 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 run is revised to improve
    interpolation with other Python discovery tools. #2503
  • Improve terminal coloring to display better in Powershell. #2511
  • Invoke virtualenv directly for virtual environment creation,
    instead of depending on pew. #2518
  • pipenv --help will now include short help descriptions. #2542
  • Add COMSPEC to fallback option (along with SHELL and
    PYENV_SHELL) if shell detection fails, improving robustness on
    Windows. #2651
  • Fallback to shell mode if run fails 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 #1393

  • VCS Refs for locked local editable dependencies will now update
    appropriately to the latest hash when running pipenv update. #1690

  • .tar.gz and .zip artifacts will now have dependencies installed
    even when they are missing from the lockfile. #2173

  • The command line parser will now handle multiple -e/--editable
    dependencies properly via click's option parser to help mitigate
    future parsing issues. #2279

  • Fixed the ability of pipenv to parse dependency_links from
    setup.py when PIP_PROCESS_DEPENDENCY_LINKS is enabled. #2434

  • Fixed a bug which could cause -i/--index arguments to sometimes be
    incorrectly picked up in packages. This is now handled in the
    command line parser. #2494

  • Fixed 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, #2933

  • Fix subshell invocation on Windows for Python 2. #2515

  • Fixed a bug which sometimes caused pipenv to throw a TypeError or
    to run into encoding issues when writing lockfiles on python 2. #2561

  • Improve quoting logic for pipenv run so it works better with
    Windows built-in commands. #2563

  • Fixed a bug related to parsing vcs requirements with both extras and
    subdirectory fragments. Corrected an issue in the requirementslib
    parser which led to some markers being discarded rather than
    evaluated. #2564

  • Fixed 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
    UnboundLocalError when parsing malformed VCS URIs. #2617

  • Fixed an issue which prevented passing multiple --ignore
    parameters to pipenv check. #2632

  • Fixed 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 to ssh:// URIs improperly. #2639
  • Fixed a bug which caused paths to be formatted incorrectly when
    using pipenv shell in bash for windows. #2641

  • Dependency links to private repositories defined via ssh://
    schemes will now install correctly and skip hashing as long as
    PIP_PROCESS_DEPENDENCY_LINKS=1. #2643

  • Fixed a bug which sometimes caused pipenv to parse the
    trusted_host argument to pip incorrectly when parsing source URLs
    which specify verify_ssl = false. #2656

  • Prevent crashing when a virtual environment in WORKON_HOME is
    faulty. #2676

  • Fixed virtualenv creation failure when a .venv file is present in
    the project root. #2680

  • Fixed a bug which could cause the -e/--editable argument on a
    dependency to be accidentally parsed as a dependency itself. #2714

  • Correctly pass verbose and debug flags to the resolver subprocess so
    it generates appropriate output. This also resolves a bug introduced
    by the fix to #2527. #2732

  • All markers are now included in pipenv lock --requirements output. #2748

  • Fixed 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.py based dependency resolution. #2766

  • Updated vendored dependencies:

    • pip-tools (updated and patched to latest w/ pip 18.0
      compatibilty)
    • pip 10.0.1 => 18.0
    • click 6.7 => 7.0
    • toml 0.9.4 => 0.10.0
    • pyparsing 2.2.0 => 2.2.2
    • delegator 0.1.0 => 0.1.1
    • attrs 18.1.0 => 18.2.0
    • distlib 0.2.7 => 0.2.8
    • packaging 17.1.0 => 18.0
    • passa 0.2.0 => 0.3.1
    • pip_shims 0.1.2 => 0.3.1
    • plette 0.1.1 => 0.2.2
    • pythonfinder 1.0.2 => 1.1.0
    • pytoml 0.1.18 => 0.1.19
    • requirementslib 1.1.16 => 1.1.17
    • shellingham 1.2.4 => 1.2.6
    • tomlkit 0.4.2 => 0.4.4
    • vistir 0.1.4 => 0.1.6 #2802, #2867, #2880
  • Fixed a bug where pipenv crashes when the WORKON_HOME directory
    does not exist. #2877

  • Fixed pip is not loaded from pipenv's patched one but the system one #2912

  • Fixed various bugs related to pip 18.1 release which prevented
    locking, installation, and syncing, and dumping to a
    requirements.txt file. #2924

Vendored Libraries

  • Pew is no longer vendored. Entry point pewtwo, packages
    pipenv.pew and pipenv.patched.pew are removed. #2521

  • Update pythonfinder to major release 1.0.0 for integration. #2582

  • Update requirementslib to fix a bug which could raise an
    UnboundLocalError when parsing malformed VCS URIs. #2617

  • Vendored new libraries vistir and pip-shims, tomlkit,
    modutil, and plette.

  • Update vendored libraries:

    • scandir to 1.9.0
    • click-completion to 0.4.1
    • semver to 2.8.1
    • shellingham to 1.2.4
    • pytoml to 0.1.18
    • certifi to 2018.8.24
    • ptyprocess to 0.6.0
    • requirementslib to 1.1.5
    • pythonfinder to 1.0.2
    • pipdeptree to 0.13.0
    • python-dotenv to 0.9.1 #2639
  • Updated vendored dependencies:

    • pip-tools (updated and patched to latest w/ pip 18.0
      compatibilty)
    • pip 10.0.1 => 18.0
    • click 6.7 => 7.0
    • toml 0.9.4 => 0.10.0
    • pyparsing 2.2.0 => 2.2.2
    • delegator 0.1.0 => 0.1.1
    • attrs 18.1.0 => 18.2.0
    • distlib 0.2.7 => 0.2.8
    • packaging 17.1.0 => 18.0
    • passa 0.2.0 => 0.3.1
    • pip_shims 0.1.2 => 0.3.1
    • plette 0.1.1 => 0.2.2
    • pythonfinder 1.0.2 => 1.1.0
    • pytoml 0.1.18 => 0.1.19
    • requirementslib 1.1.16 => 1.1.17
    • shellingham 1.2.4 => 1.2.6
    • tomlkit 0.4.2 => 0.4.4
    • vistir 0.1.4 => 0.1.6 #2902, #2935

Improved Documentation

  • Simplified the test configuration process. #2568
  • Updated documentation to use working fortune cookie addon. #2644
  • Added additional information about troubleshooting pipenv shell by
    using the the $PIPENV_SHELL environment variable. #2671
  • Added a link to PEP-440 version specifiers in the documentation
    for additional detail. #2674
  • Added simple example to README.md for installing from git. #2685
  • Stopped recommending --system for Docker contexts. #2762
  • Fixed the example url for doing "pipenv install -e
    some-repo-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 install documentation #2844
  • Replace reference to uservoice with PEEP-000 #2909

2018.7.1 (2018-07-01)

01 Jul 21:27
46ba42b
Compare
Choose a tag to compare

2018.7.1 (2018-07-01)

Features & Improvements

  • All calls to pipenv shell are now implemented from the ground up using shellingham, a custom library which was purpose built to handle edge cases and shell detection. #2371
  • Added support for python 3.7 via a few small compatibility / bugfixes. #2427,
    #2434, #2436
  • Added new flag pipenv --support to replace the diagnostic command python -m pipenv.help. #2477, #2478
  • Improved import times and CLI runtimes with minor tweaks. #2485

Bug Fixes

  • Fixed an ongoing bug which sometimes resolved incompatible versions into lockfiles. #1901
  • Fixed a bug which caused errors when creating virtualenvs which contained leading dash characters. #2415
  • Fixed a logic error which caused --deploy --system to overwrite editable vcs packages in the pipfile before installing, which caused any installation to fail by default. #2417
  • Updated requirementslib to fix an issue with properly quoting markers in VCS requirements. #2419
  • Installed new vendored jinja2 templates for click-completion which were causing template errors for users with completion enabled. #2422
  • Added support for python 3.7 via a few small compatibility / bugfixes. #2427
  • Fixed an issue reading package names from setup.py files in projects which imported utilities such as versioneer. #2433
  • Pipenv 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@host uris. #2453
  • Pipenv will now always use pathlib2 for Path based filesystem interactions by default on python<3.5. #2454
  • Fixed a bug which prevented passing proxy PyPI indexes set with --pypi-mirror from being passed to pip during virtualenv creation, which could cause the creation to freeze in some cases. #2462
  • Using the python -m pipenv.help command will now use proper encoding for the host filesystem to avoid encoding issues. #2466
  • The new jinja2 templates for click_completion will now be included in pipenv source distributions.
    #2479
  • Resolved a long-standing issue with re-using previously generated InstallRequirement objects for resolution which could cause PKG-INFO file information to be deleted, raising a TypeError. #2480
  • Resolved an issue parsing usernames from private PyPI URIs in Pipfiles by updating requirementslib. #2484

Vendored Libraries

  • All calls to pipenv shell are now implemented from the ground up using shellingham, a custom library which was purpose built to handle edge cases and shell detection. #2371
  • Updated requirementslib to fix an issue with properly quoting markers in VCS requirements. #2419
  • Installed new vendored jinja2 templates for click-completion which were causing template errors for users with completion enabled. #2422
  • Add patch to prettytoml to support Python 3.7. #2426
  • Patched prettytoml.AbstractTable._enumerate_items to handle StopIteration errors in preparation of release of python 3.7. #2427
  • Fixed an issue reading package names from setup.py files in projects which imported utilities such as versioneer. #2433
  • Updated requirementslib to version 1.0.9 #2453
  • Unraveled a lot of old, unnecessary patches to pip-tools which were causing non-deterministic resolution errors. #2480
  • Resolved an issue parsing usernames from private PyPI URIs in Pipfiles by updating requirementslib. #2484

Improved Documentation

  • Added instructions for installing using Fedora's official repositories. #2404

2018.6.25 (2018-06-25)

25 Jun 15:28
eb2a7c1
Compare
Choose a tag to compare

2018.6.25 (2018-06-25)

Features & Improvements

  • Pipenv-created virtualenvs will now be associated with a .project folder (features can be implemented on top of this later or users may choose to use pipenv-pipes to take full advantage of this.) #1861
  • Virtualenv 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 graph command. #2199
  • Dropped 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-mirror argument from the command line or setting the PIPENV_PYPI_MIRROR environment variable. #2281
  • Virtualenv activation lines will now avoid being written to some shell history files. #2287
  • Pipenv will now only search for requirements.txt files when creating new projects, and during that time only if the user doesn't specify packages to pass in. #2309
  • Added 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 run will now avoid spawning additional COMSPEC instances to run commands in when possible. #2385
  • Massive internal improvements to requirements parsing codebase, resolver, and error messaging. #2388
  • pipenv check now may take multiple of the additional argument --ignore which takes a parameter cve_id for the purpose of ignoring specific CVEs. #2408

Behavior Changes

  • Pipenv will now parse & capitalize platform_python_implementation markers
    • This could cause an issue if you have an out of date Pipfile which lowercases the comparison value (e.g. cpython instead of CPython). #2123
  • Pipenv will now only search for requirements.txt files 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_implementation markers. #2123
  • Fixed a bug with parsing and grouping old-style setup.py extras during resolution #2142
  • Fixed a bug causing pipenv graph to throw unhelpful exceptions when running against empty or non-existent environments. #2161
  • Fixed a bug which caused --system to incorrectly abort when users were in a virtualenv. #2181
  • Removed vendored cacert.pem which could cause issues for some users with custom certificate settings. #2193
  • Fixed a regression which led to direct invocations of virtualenv, rather than calling it by module. #2198
  • Locking will now pin the correct VCS ref during pipenv update runs. Running pipenv update with a new vcs ref specified in the Pipfile will now properly obtain, resolve, and install the specified dependency at the specified ref. #2209
  • pipenv clean will now correctly ignore comments from pip freeze when cleaning the environment. #2262
  • Resolution 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 requirementslib to fix a bug in pipfile parsing affecting relative path conversions. #2269
  • Windows executable discovery now leverages os.pathext. #2298
  • Fixed a bug which caused --deploy --system to inadvertently create a virtualenv before failing. #2301
  • Fixed 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-Python metatdata with no specifiers. #2377
  • pipenv update will now always run the resolver and lock before ensuring your dependencies are in sync with your lockfile. #2379
  • Resolved a bug in our patched resolvers which could cause nondeterministic resolution failures in certain conditions. Running pipenv install with no arguments in a project with only a Pipfile will now correctly lock first for dependency resolution before installing. #2384
  • Patched python-dotenv to ensure that environment variables always get encoded to the filesystem encoding. #2386

Improved Documentation

  • Update documentation wording to clarify Pipenv's overall role in the packaging ecosystem. #2194
  • Added contribution documentation and guidelines. #2205
  • Added instructions for supervisord compatibility. #2215
  • Fixed broken links to development philosophy and contribution documentation. #2248

Vendored Libraries

  • Removed vendored cacert.pem which could cause issues for some users with custom certificate settings. #2193

  • Dropped vendored pip 9 and vendored, patched, and migrated to pip 10. Updated patched piptools version. #2255

  • Updated requirementslib to fix a bug in pipfile parsing affecting relative path conversions. #2269

  • Added custom shell detection library shellingham, a port of our changes to pew. #2363

  • Patched python-dotenv to ensure that environment variables always get encoded to the filesystem encoding. #2386

  • Updated vendored libraries. The following vendored libraries were updated:

    • distlib from version 0.2.6 to 0.2.7.
    • jinja2 from version 2.9.5 to 2.10.
    • pathlib2 from version 2.1.0 to 2.3.2.
    • parse from version 2.8.0 to 2.8.4.
    • pexpect from version 2.5.2 to 2.6.0.
    • requests from version 2.18.4 to 2.19.1.
    • idna from version 2.6 to 2.7.
    • certifi from version 2018.1.16 to 2018.4.16.
    • packaging from version 16.8 to 17.1.
    • six from version 1.10.0 to 1.11.0.
    • requirementslib from version 0.2.0 to 1.0.1.

    In addition, scandir was vendored and patched to avoid importing host system binaries when falling back to pathlib2. #2368