Python Development Workflow for Humans.

Overview

Pipenv: Python Development Workflow for Humans

image image Azure Pipelines Build Status image


[ ~ Dependency Scanning by PyUp.io ~ ]

Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the Python world. Windows is a first-class citizen, in our world.

It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages. It also generates the ever-important Pipfile.lock, which is used to produce deterministic builds.

GIF demonstrating Pipenv's usage

The problems that Pipenv seeks to solve are multi-faceted:

  • You no longer need to use pip and virtualenv separately. They work together.
  • Managing a requirements.txt file can be problematic, so Pipenv uses the upcoming Pipfile and Pipfile.lock instead, which is superior for basic use cases.
  • Hashes are used everywhere, always. Security. Automatically expose security vulnerabilities.
  • Give you insight into your dependency graph (e.g. $ pipenv graph).
  • Streamline development workflow by loading .env files.

You can quickly play with Pipenv right in your browser:

Try in browser

Installation

If you're using Debian Buster+:

$ sudo apt install pipenv

Or, if you're using Fedora:

$ sudo dnf install pipenv

Or, if you're using FreeBSD:

# pkg install py36-pipenv

When none of the above is an option, it is recommended to use Pipx:

$ pipx install pipenv

Otherwise, refer to the documentation for instructions.

🍰

☤ User Testimonials

David Gang---

: This package manager is really awesome. For the first time I know exactly what my dependencies are which I installed and what the transitive dependencies are. Combined with the fact that installs are deterministic, makes this package manager first class, like cargo.

Justin Myles Holmes---

: Pipenv is finally an abstraction meant to engage the mind instead of merely the filesystem.

☤ Features

  • Enables truly deterministic builds, while easily specifying only what you want.
  • Generates and checks file hashes for locked dependencies.
  • Automatically install required Pythons, if pyenv is available.
  • Automatically finds your project home, recursively, by looking for a Pipfile.
  • Automatically generates a Pipfile, if one doesn't exist.
  • Automatically creates a virtualenv in a standard location.
  • Automatically adds/removes packages to a Pipfile when they are un/installed.
  • Automatically loads .env files, if they exist.

The main commands are install, uninstall, and lock, which generates a Pipfile.lock. These are intended to replace $ pip install usage, as well as manual virtualenv management (to activate a virtualenv, run $ pipenv shell).

Basic Concepts

  • A virtualenv will automatically be created, when one doesn't exist.
  • When no parameters are passed to install, all packages [packages] specified will be installed.
  • To initialize a Python 3 virtual environment, run $ pipenv --three.
  • To initialize a Python 2 virtual environment, run $ pipenv --two.
  • Otherwise, whatever virtualenv defaults to will be the default.

Other Commands

  • shell will spawn a shell with the virtualenv activated.
  • run will run a given command from the virtualenv, with any arguments forwarded (e.g. $ pipenv run python).
  • check asserts that PEP 508 requirements are being met by the current environment.
  • graph will print a pretty graph of all your installed dependencies.

Shell Completion

For example, with fish, put this in your ~/.config/fish/completions/pipenv.fish:

eval (pipenv --completion)

Alternatively, with bash, put this in your .bashrc or .bash_profile:

eval "$(pipenv --completion)"

Magic shell completions are now enabled! There is also a fish plugin, which will automatically activate your subshells for you!

Fish is the best shell. You should use it.

☤ Usage

$ pipenv
Usage: pipenv [OPTIONS] COMMAND [ARGS]...

Options:
  --where          Output project home information.
  --venv           Output virtualenv information.
  --py             Output Python interpreter information.
  --envs           Output Environment Variable options.
  --rm             Remove the virtualenv.
  --bare           Minimal output.
  --completion     Output completion (to be eval'd).
  --man            Display manpage.
  --three / --two  Use Python 3/2 when creating virtualenv.
  --python TEXT    Specify which version of Python virtualenv should use.
  --site-packages  Enable site-packages for the virtualenv.
  --version        Show the version and exit.
  -h, --help       Show this message and exit.


Usage Examples:
   Create a new project using Python 3.7, specifically:
   $ pipenv --python 3.7

   Remove project virtualenv (inferred from current directory):
   $ pipenv --rm

   Install all dependencies for a project (including dev):
   $ pipenv install --dev

   Create a lockfile containing pre-releases:
   $ pipenv lock --pre

   Show a graph of your installed dependencies:
   $ pipenv graph

   Check your installed dependencies for security vulnerabilities:
   $ pipenv check

   Install a local setup.py into your virtual environment/Pipfile:
   $ pipenv install -e .

   Use a lower-level pip command:
   $ pipenv run pip freeze

Commands:
  check      Checks for security vulnerabilities and against PEP 508 markers
             provided in Pipfile.
  clean      Uninstalls all packages not specified in Pipfile.lock.
  graph      Displays currently–installed dependency graph information.
  install    Installs provided packages and adds them to Pipfile, or (if no
             packages are given), installs all packages from Pipfile.
  lock       Generates Pipfile.lock.
  open       View a given module in your editor.
  run        Spawns a command installed into the virtualenv.
  scripts    Displays the shortcuts in the (optional) [scripts] section of 
             Pipfile. 
  shell      Spawns a shell within the virtualenv.
  sync       Installs all packages specified in Pipfile.lock.
  uninstall  Un-installs a provided package and removes it from Pipfile.

Locate the project:

$ pipenv --where
/Users/kennethreitz/Library/Mobile Documents/com~apple~CloudDocs/repos/kr/pipenv/test

Locate the virtualenv:

$ pipenv --venv
/Users/kennethreitz/.local/share/virtualenvs/test-Skyy4vre

Locate the Python interpreter:

$ pipenv --py
/Users/kennethreitz/.local/share/virtualenvs/test-Skyy4vre/bin/python

Install packages:

$ pipenv install
Creating a virtualenv for this project...
...
No package provided, installing all dependencies.
Virtualenv location: /Users/kennethreitz/.local/share/virtualenvs/test-EJkjoYts
Installing dependencies from Pipfile.lock...
...

To activate this project's virtualenv, run the following:
$ pipenv shell

Installing from git:

You can install packages with pipenv from git and other version control systems using URLs formatted according to the following rule:

<vcs_type>+<scheme>://<location>/<user_or_organization>/<repository>@<branch_or_tag>#<package_name>

The only optional section is the @<branch_or_tag> section. When using git over SSH, you may use the shorthand vcs and scheme alias [email protected]<location>:<user_or_organization>/<repository>@<branch_or_tag>#<package_name>. Note that this is translated to git+ssh://[email protected]<location> when parsed.

Valid values for <vcs_type> include git, bzr, svn, and hg. Valid values for <scheme> include http,, https, ssh, and file. In specific cases you also have access to other schemes: svn may be combined with svn as a scheme, and bzr can be combined with sftp and lp.

Note that it is strongly recommended that you install any version-controlled dependencies in editable mode, using pipenv install -e, in order to ensure that dependency resolution can be performed with an up to date copy of the repository each time it is performed, and that it includes all known dependencies.

Below is an example usage which installs the git repository located at https://github.com/requests/requests.git from tag v2.19.1 as package name requests:

$ pipenv install -e git+https://github.com/requests/[email protected]#egg=requests
Creating a Pipfile for this project...
Installing -e git+https://github.com/requests/[email protected]#egg=requests...
[...snipped...]
Adding -e git+https://github.com/requests/[email protected]#egg=requests to Pipfile's [packages]...
[...]

You can read more about pip's implementation of vcs support here.

Install a dev dependency:

$ pipenv install pytest --dev
Installing pytest...
...
Adding pytest to Pipfile's [dev-packages]...

Show a dependency graph:

$ pipenv graph
requests==2.18.4
  - certifi [required: >=2017.4.17, installed: 2017.7.27.1]
  - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
  - idna [required: >=2.5,<2.7, installed: 2.6]
  - urllib3 [required: <1.23,>=1.21.1, installed: 1.22]

Generate a lockfile:

$ pipenv lock
Assuring all dependencies from Pipfile are installed...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Note: your project now has only default [packages] installed.
To install [dev-packages], run: $ pipenv install --dev

Install all dev dependencies:

$ pipenv install --dev
Pipfile found at /Users/kennethreitz/repos/kr/pip2/test/Pipfile. Considering this to be the project home.
Pipfile.lock out of date, updating...
Assuring all dependencies from Pipfile are installed...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...

Uninstall everything:

$ pipenv uninstall --all
No package provided, un-installing all dependencies.
Found 25 installed package(s), purging...
...
Environment now purged and fresh!

Use the shell:

$ pipenv shell
Loading .env environment variables...
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
$ ▯

☤ Documentation

Documentation resides over at pipenv.pypa.io.

Issues
  • pipenv install is very slow

    pipenv install is very slow

    Running pipenv install after changing one dependency takes about ~5 minutes for me, on a windows 10 machine with an SSD.

    The vast majority of that time is spent inside Locking [packages] dependencies...

    It seems like there might be some quadratic-or-worse complexity in this step?

    I've included most of our pipfile below, but I had to remove some of our private repo dependencies:

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    
    [packages]
    alembic = "==0.8.4"
    amqp = "==1.4.7"
    analytics-python = "==1.2.5"
    anyjson = "==0.3.3"
    billiard = "==3.3.0.20"
    braintree = "==3.20.0"
    celery = "==3.1.18"
    coverage = "==4.0.3"
    docopt = "==0.4.0"
    eventlet = "==0.19.0"
    flake8 = "==3.0.4"
    Flask-Cors = "==2.1.2"
    Flask-Login = "==0.3.2"
    Flask = "==0.12.1"
    funcsigs = "==0.4"
    fuzzywuzzy = "==0.12.0"
    gcloud = "==0.14.0"
    html2text = "==2016.9.19"
    itsdangerous = "==0.24"
    Jinja2 = "==2.8"
    jsonpatch = "==1.15"
    jsonschema = "==2.5.1"
    PyJWT = "==1.4.2"
    kombu = "==3.0.30"
    LayerClient = "==0.1.9"
    MarkupSafe = "==0.23"
    mixpanel = "==4.3.0"
    mock = "==1.3.0"
    nose-exclude = "==0.4.1"
    nose = "==1.3.7"
    numpy = "==1.12.1"
    pdfrw = "==0.3"
    Pillow = "==4.1.0"
    pusher = "==1.6"
    pycountry = "==1.20"
    pycryptodome = "==3.4.5"
    pymongo = "==3.2"
    PyMySQL = "==0.7.4"
    python-dateutil = "<=2.5.1"
    python-Levenshtein = "==0.12.0"
    python-magic = "==0.4.6"
    python-coveralls = "==2.9.0"
    pytz = "==2015.6"
    raygun4py = "==3.1.2"
    "repoze.retry" = "==1.3"
    requests = "==2.8.1"
    sendgrid = "==2.2.1"
    slacker = "==0.7.3"
    SQLAlchemy-Enum34 = "==1.0.1"
    SQLAlchemy-Utils = "==0.31.6"
    SQLAlchemy = "==1.1.9"
    typing = "==3.5.2.2"
    twilio = "==5.6.0"
    Unidecode = "==0.4.19"
    voluptuous = "==0.8.11"
    Wand = "==0.4.4"
    watchdog = "==0.8.3"
    Werkzeug = "==0.12.1"
    wheel = "==0.24.0"
    WTForms = "==2.0.2"
    xmltodict = "==0.9.2"
    zeep = "==0.24.0"
    
    opened by Diggsey 107
  • 11.1.8+ broke pipenv lock/install of --dev -e .

    11.1.8+ broke pipenv lock/install of --dev -e .

    Sorry I don’t have the time for the full template dance, but I woke up to a broken pipenv update and could pinpoint it to:

    • pipenv install --dev -e .
    • pipenv lock if the Pipfile contains -e .
    • starting with 11.1.8

    This is what I get with latest pipenv on lock:

    Locking [dev-packages] dependencies…
    ate(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 102, in resolve
        has_changed, best_matches = self._resolve_one_round()
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
        for dep in self._iter_dependencies(best_match):
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 275, in _iter_dependencies
        for dependency in self.repository.get_dependencies(ireq):
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 182, in get_dependencies
        'Please run "$ pipenv-resolver {0!r} --verbose" to debug.'.format(str(ireq.req))
    ValueError: Your dependencies could not be resolved.
    Please run "$ pipenv-resolver 'None' --verbose" to debug.
    

    This is what I get with latest pipenv on pipenv install --dev -e . :

    Installing -e .…
    Obtaining file:///Users/hynek/tmp/t
    Installing collected packages: t
      Found existing installation: t 1.0
        Uninstalling t-1.0:
          Successfully uninstalled t-1.0
      Running setup.py develop for t
    Successfully installed t
    
    Adding -e . to Pipfile's [dev-packages]…
    Pipfile.lock not found, creating…
    Locking [dev-packages] dependencies…
    ate(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 102, in resolve
        has_changed, best_matches = self._resolve_one_round()
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
        for dep in self._iter_dependencies(best_match):
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 275, in _iter_dependencies
        for dependency in self.repository.get_dependencies(ireq):
      File "/Users/hynek/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 182, in get_dependencies
        'Please run "$ pipenv-resolver {0!r} --verbose" to debug.'.format(str(ireq.req))
    ValueError: Your dependencies could not be resolved.
    Please run "$ pipenv-resolver 'None' --verbose" to debug.
    
    Type: Bug :bug: 
    opened by hynek 101
  • `pipenv install XYZ` command sometimes hangs indefinitely at

    `pipenv install XYZ` command sometimes hangs indefinitely at "Locking [packages] dependencies"

    Similar to these issues:

    • https://github.com/pypa/pipenv/issues/356
    • https://github.com/pypa/pipenv/issues/278
    Summary

    When using pipenv install XYZ, the process hangs indefinitely at "Locking [packages] dependencies".

    This doesn't happen every time, and may be related to which package is being installed. This morning it is happening every time I try to install tensorflow. Last night it was happening for numpy as well, but today numpy is fine.

    The hanged response seems to last indefinitely (though I did manually terminate the process after an hour). The Pipfile.lock is not written, but the Pipfile is written and the expected packages are installed and listed when I run pipenv run pip freeze.

    I was able to reproduce this using various permutations of:

    • (L)ubuntu 16.04 and (X)ubuntu 17.10
    • pipenv --three and pipenv --two
    • pipenv installed through python 2.7 and pipenv installed through python 3.5
    • ...and I downloaded the pipenv source and installed that in an isolated environment to see if the issue was specific to pipenv version 11.8.3. I experienced the same behavior in 11.9.0.

    I am also able to reproduce it by simply running pipenv lock or pipenv update if I have tensorflow (or whatever package is currently causing me trouble) listed in my Pipfile.

    $ python -m pipenv.help output

    Pipenv version: '11.8.3'

    Pipenv location: '/home/mary/.local/lib/python2.7/site-packages/pipenv'

    Python location: '/usr/bin/python'

    Other Python installations in PATH:

    • 2.7: /usr/bin/python2.7

    • 2.7: /usr/bin/python2.7

    • 3.5: /usr/bin/python3.5m

    • 3.5: /usr/bin/python3.5

    • 2.7.12: /usr/bin/python

    • 2.7.12: /usr/bin/python2

    • 3.5.2: /usr/bin/python3

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '0',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '4.13.0-37-generic',
     'platform_system': 'Linux',
     'platform_version': '#42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018',
     'python_full_version': '2.7.12',
     'python_version': '2.7',
     'sys_platform': 'linux2'}
    

    System environment variables:

    • MANDATORY_PATH
    • _LXSESSION_PID
    • XDG_GREETER_DATA_DIR
    • PROJECT_HOME
    • LC_CTYPE
    • PYTHONDONTWRITEBYTECODE
    • XDG_CURRENT_DESKTOP
    • XDG_SESSION_TYPE
    • LOGNAME
    • XDG_SEAT
    • PATH
    • XDG_VTNR
    • QT_PLATFORM_PLUGIN
    • PYTHONUNBUFFERED
    • VIRTUALENVWRAPPER_SCRIPT
    • ZSH
    • DISPLAY
    • SSH_AGENT_PID
    • LANG
    • TERM
    • SHELL
    • XDG_SESSION_PATH
    • XAUTHORITY
    • LANGUAGE
    • SHLVL
    • QT_LINUX_ACCESSIBILITY_ALWAYS_ON
    • QT_QPA_PLATFORMTHEME
    • SESSION_FOLDER
    • QT_ACCESSIBILITY
    • WINDOWID
    • LIBVIRT_DEFAULT_URI
    • HOME
    • XDG_SESSION_DESKTOP
    • SAL_USE_VCLPLUGIN
    • XDG_RUNTIME_DIR
    • WORKON_HOME
    • SSH_AUTH_SOCK
    • VTE_VERSION
    • GDMSESSION
    • VIRTUALENVWRAPPER_WORKON_CD
    • XDG_SEAT_PATH
    • PIP_PYTHON_PATH
    • XDG_SESSION_ID
    • DBUS_SESSION_BUS_ADDRESS
    • _
    • VIRTUALENVWRAPPER_HOOK_DIR
    • VIRTUALENVWRAPPER_PROJECT_FILENAME
    • DESKTOP_SESSION
    • LSCOLORS
    • XDG_CONFIG_DIRS
    • DEFAULTS_PATH
    • XDG_CONFIG_HOME
    • OLDPWD
    • LS_COLORS
    • GDM_LANG
    • XDG_DATA_DIRS
    • PWD
    • XDG_MENU_PREFIX
    • LESS
    • PAGER
    • USER

    Pipenv–specific environment variables:

    Debug–specific environment variables:

    • PATH: /home/mary/bin:/home/mary/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    • SHELL: /usr/bin/zsh
    • LANG: en_US.UTF-8
    • PWD: /home/mary/Development/Projects/poor_mans_smart_camera

    Contents of Pipfile ('/home/mary/Development/Projects/poor_mans_smart_camera/Pipfile'):

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [dev-packages]
    
    [packages]
    numpy = "*"
    tensorflow = "*"
    
    [requires]
    python_version = "3.5"
    
    

    Expected result

    I expect the step in which the Pipfile.lock is generated to take at most a minute.

    I have good hardware with lots of free memory and processing power, so I don't think this is a resource constraint. My internet speed is 60 Mbps, so I doubt it is a networking issue when requesting packages.

    Actual result

    verbose_output.txt

    While this screenshot doesn't show verbose output like the file above, it does visually demonstrate what I am experiencing. image

    Steps to replicate
    1. Spin up new virtualenv using pipenv --three or pipenv --two.
    2. Confirm things are working as expected with a package you know is installing fine such as pipenv install pylint.
    3. Now cause it to hang by installing a package that is not working for whatever reason such as pipenv install tensorflow.

    Pipfile

    opened by MarenstainBear 78
  • Proposal: `pipenv` patterns and antipatterns for python library project

    Proposal: `pipenv` patterns and antipatterns for python library project

    Hacking maya I learned few lessons which resulted in my following proposal of recommended usage of pipenv in python libraries. I expect others to review the proposal and if we reach agreement, the (updated) text could end up in pipenv docs.

    pipenv patterns and antipatterns for python library project

    EDIT Following is best applicable for general (mostly Open Source) python libraries, which are supposed to run on different python versions and OSes. Libraries developed in strict Enterprise environment may be different case (be sure to review all the Problems sections anyway).

    END OF EDIT

    TL;DR: Adding pipenv files into python library project is likely to introduce extra complexity and can hide some errors while not adding anything to library security. For this reason, keep Pipfile, Pipfile.lock and .env out of library source control.

    You will be able to use full power of pipenv regardless of it's files living in .gitignore.

    Python library versus python application

    By python library I mean a project, typically having setup.py, being targeted for distribution and usage on various platform differing in python version and/or OS.

    Examples being maya, requests, flask etc.

    On the other side (not python library) there are applications targeted for specific python interpreter, OS and often being deployed in strictly consistent environment.

    pipfile describes these differences very well in it's Pipfile vs setup.py.

    What is pipenv (deployment tool)

    I completely agree on the statement, that pipenv is deployment tool as it allows to:

    • define strict requirements (Pipfile.lock) for deployment of virtual environment
    • apply those strict requirements in reproducible manner on different machines

    It helps when one has to deploy an application or develop in python environment very consistent across multiple developers.

    To call pipenv packaging tool is misleading if one expects it to create python libraries or to be deeply involved in creation of them. Yes, pipenv can help a lot (in local development of libraries) but can possibly harm (often in CI tests when used without deeper thought).

    Applying "security reasons" in wrong context

    TL;DR: pipenv provides secure environment via applying approved concrete dependencies described in Pipfile.lock file and python library is only allowed to define abstract dependencies (thus cannot provide Pipfile.lock).

    pipenv shines in deployment scenarios following these steps:

    • define abstract dependencies (via Pipfile)
    • generate from it concrete dependencies resulting in Pipfile.lock
    • create (virtual) python environment reflecting those concrete dependencies
    • run tests to make sure, given environment works as expected and is secure
    • release the tested "golden" Pipfile.lock as definition of approved python environment
    • others can use pipenv sync to apply "the golden" Pipfile.lock elsewhere getting identical python environment.

    With development of python library one cannot achieve such security, because libraries must not define concrete dependencies. Breaking this rule (thus trying to declare concrete dependencies by python library) results in problems such as:

    • problems to find satisfying version of shared libraries (each strict package defines exact version of shared library and it is very likely the versions will differ and prevent finding commonly acceptable version)
    • concrete dependencies may depend on python version, OS or other environment markers and trying to install the package in diferent context can easily fail to satisfy some of rules defined in original abstract dependencies.

    Problem: Hiding broken setup.py defined dependencies

    setup.py shall define all abstract dependencies via install_requires.

    If Pipfile defines those dependencies too, it may easily hide problems such as:

    • missing dependency in install_requires
    • Pipfile defines specific rules (version ranges etc.) for a dependency and install_requires does not.

    To prevent it, follow these rules:

    • library defined dependencies must not appear in Pipfile
    • the [packages] section in Pipfile shall be either empty or define only single dependency on the library itself.

    Problem: Pipfile.lock in repository

    Keeping Pipfile.lock (typically for "security reasons") in library repository is wrong, because:

    • described dependencies are likely to be invalid for different python versions or in another OS
    • developers are forced to update the file not only when they add/remove some dependency, but also when other libraries are updated and may be usable within the library.

    To prevent it, one should:

    • remove Pipfile.lock from repository and add it into .gitignore

    Problem: Competing with tox (hiding usedevelop)

    If tox.ini contains in it's commands section entries such as:

    • pipenv install
    • pipenv install --dev
    • pipenv lock

    it is often a problem, because:

    • pipenv install shall install only the library itself, and tox is (by default) doing it too. Apart from duplicity it also prevents of usedevelop=True and usedevelop=False in tox.ini because Pipenv is able to express it only in one variant (and tox.ini allows differencies in different environments).

    To prevent it, one should:

    Problem: Breaking builds, if pipenv fails

    pipenv is under heavy development and things break sometime. If such issue breaks your CI build, there is a failure which could be prevented by not using pipenv and using traditional tools (which are often a bit more mature).

    To prevent it, one should:

    • think twice before adding pipenv into a CI build script, tox.ini or similar place. Do you know what value you get from adding it? Could be the job done with existing tooling?
    • do not add it "just for security reasons" or because "everybody does".

    Summary

    Key questions regarding pipenv role in development of python library are:

    • What value pipenv really brings? A: Virtualenv management tool.
    • What is relevent use case for pipenv? A: Manage virtualenv.
    • Shall it appear in the library repository? A: NO.

    Few more details and tricks follow.

    pipenv will not add any security to your package

    Do not push it into project just because everybody does it or because you expect extra security. It will disappoint you.

    Securing by using concrete (and approved) dependencies shall take place in later phase in the application going to use your library.

    Keep Pipfile, Pipfile.lock and .env files out of repository

    Put the files into .gitignore.

    Pipfile is easy to recreate as demonstrated below as most or all requirements are already defined in your setup.py. And the .env file probably contains private information, which shall not be shared.

    Keeping these files out of repository will prevent all the problems, which may happen with CI builds when using pipenv in situations, which are not appropriate.

    pipenv as developer's private toolbox

    pipenv may simplify developer's work as virtualenv management tool.

    The trick is to learn, how to quickly recreate your (private) pipenv related files, e.g.:

    $ cd <project_repository>
    $ # your library will bring the dependencies (via install_requires in setup.py)
    $ pipenv install -e .   
    $ # add more dev tools you preffer 
    $ pipenv install --dev ipython pdbpp
    $ # start hacking
    $ pipenv shell
    ...
    

    Use .env file if you need convenient method for setting up environment variables.

    Remember: Keep pipenv usage out of your CI builds and your life will be simpler.

    Trick: Use setup.py ability to declare extras dependencies

    In your setup.py use the extras_requires section:

    from setuptools import setup
    
    setup(
        name='mypackage',
        ....,
        install_requires=["jinja2", "simplejson"],
        extras_require={
            'tests': ['pytest', 'pyyaml'],
            'pg': ['psycopg2'],
        },
        ....
    )
    

    To install all dependencies declared for tests extra:

    $ pipenv install -e .[tests]
    

    Note, that it will always include the install_requires dependencies.

    This method does not allow spliting dependencies into default and dev sections, but this shall not be real problem in expected scenarios.

    Type: Documentation :book: Type: Discussion 
    opened by vlcinsky 74
  • April (then May) 2020 Release Tracking Issue

    April (then May) 2020 Release Tracking Issue

    This is an internal tracking issue which will tie in the related issues which will be tackled/still need to be updated for the purposes of cutting the release. It's been a long time coming (see https://github.com/pypa/pipenv/issues/4058#issuecomment-565550646 and https://github.com/pypa/pipenv/issues/3742#issuecomment-492100711 for some past comments on that) and there's a tentative goal of getting a pre-release out in March 2020.

    (Edited by @brainwane to say: fixing some brokenness in the continuous integration setup is delaying this release 2020.04.1a1 till -- new estimate -- 21 April 2020.)

    (Edited by @brainwane to say: the prerelease 2020.4.1b1 is now out, as of 29 April, and Dan aims to get the next release out in about a week.)

    (Edited by @brainwane in conversation with Dan on 5 March 2020 and then throughout March & April)

    • [x] Other Items in the March 2020 release milestone:
      • [x] #3613 Pipenv installs wrong packages (ignoring package lock)
      • [x] #4137 Update README and Read the Docs project to point to docs at pipenv.pypa.io
    • [x] Fix pip-shims test failures (merge the bugfix/56 branch)
    • [x] requirementslib fixes:
      • [x] sarugaku/requirementslib#204 requirementslib issue AST parsing of setup.py fails on non-addition type binOps
      • [x] sarugaku/requirementslib#205 AST parsing fails on non-utf8 setup.py files
      • [x] sarugaku/requirementslib/issues/214 We shouldn't install upgraded versions of test dependencies in CI
      • [x] sarugaku/requirementslib#219 calculator Add requirement calculator for artifacts in PyPI
      • [x] Review requirements-lib issues for other pipenv release blockers
    • [x] Make new releases of related libraries:
    • [x] Finish, approve and merge #4169 to address missing dependencies/imports
      • [x] Fix news entry/entries
      • [x] Fix broken CI configuration
      • [x] Get tests to pass
    • [x] Fix #4188 by either getting pyup API key working again or choosing and implementing an alternative
    • [x] Get GitHub tests to pass on master (skipping the test mentioned in #4201)
    • [x] Improve release automation to allow generation of prereleases
      • [x] Generate changelog in draft mode
      • [x] Don't autotag & push tag to repo
    • [x] Update and run through "Test locally" and "Uploading the release" for packaging/release checklist
    • [x] Package and upload pipenv prerelease version 2020.04.1a1 to PyPI

    That's what Dan aims to do by 21 April 2020. Then:

    • [x] Make another new release of requirementslib that incorporates a fix to https://github.com/sarugaku/requirementslib/issues/216
      • [x] Relock requirementslib dependencies
    • [x] Publicize pre-release and ask for a week of testing
      • [x] Especially testing on Windows against PEP 517 backends and involving virtualenvs
    • [x] After ~1 week (if no showstopper bugs), publish new release

    How others can help:

    opened by techalchemy 72
  • Installation error from requirements.txt with -e

    Installation error from requirements.txt with -e

    Still having errors, with pipenv 7.6.9, trying to port a project. Here's a reduced/simplified case showing a reproducible error:

    $ cat requirements.txt 
    Flask==0.9
    -e git+ssh://[email protected]/closeio/[email protected]#egg=Flask-SQLAlchemy
    flask-migrate==1.8.0
    
    $ pipenv install
    Creating a virtualenv for this project…
    ⠋New python executable in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/bin/python2.7
    Also creating executable in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/bin/python
    Installing setuptools, pip, wheel...done.
    
    Virtualenv location: /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ
    Requirements.txt found, instead of Pipfile! Converting…
    Warning: Your Pipfile now contains pinned versions, if your requirements.txt did. 
    We recommend updating your Pipfile to specify the "*" version, instead.
    No package provided, installing all dependencies.
    Pipfile.lock not found, creating…
    Locking [dev-packages] dependencies…
    Locking [packages] dependencies…
    No handlers could be found for logger "pip.vcs.git"
    Updated Pipfile.lock!
    Installing dependencies from Pipfile.lock…
      🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 13/13 — 00:00:04
    An error occured while installing -e git+ssh://[email protected]/closeio/[email protected]#egg=flask-sqlalchemy! Will try again.
    Installing initially–failed dependencies…
    Obtaining flask-sqlalchemy from git+ssh://[email protected]/closeio/[email protected]#egg=flask-sqlalchemy
      Skipping because already up-to-date.
    Requirement already satisfied: Flask>=0.9 in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages (from flask-sqlalchemy)
    Requirement already satisfied: SQLAlchemy>=0.7 in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages (from flask-sqlalchemy)
    Requirement already satisfied: Werkzeug>=0.7 in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages (from Flask>=0.9->flask-sqlalchemy)
    Requirement already satisfied: Jinja2>=2.4 in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages (from Flask>=0.9->flask-sqlalchemy)
    Requirement already satisfied: MarkupSafe>=0.23 in /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages (from Jinja2>=2.4->Flask>=0.9->flask-sqlalchemy)
    Installing collected packages: flask-sqlalchemy
      Found existing installation: Flask-SQLAlchemy 2.1
    
    Exception:
    Traceback (most recent call last):
      File "/Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
        status = self.run(options, args)
      File "/Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
        prefix=options.prefix_path,
      File "/Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages/pip/req/req_set.py", line 778, in install
        requirement.uninstall(auto_confirm=True)
      File "/Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/lib/python2.7/site-packages/pip/req/req_install.py", line 703, in uninstall
        '(at %s)' % (link_pointer, self.name, dist.location)
    AssertionError: Egg-link /Users/philfreo/.local/share/virtualenvs/pipenv-problem-qZknlxgQ/src/flask-sqlalchemy does not match installed location of flask-sqlalchemy (at /Users/philfreo/Sites/foo/pipenv-problem)
    
      ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00
    
    opened by philfreo 72
  • pipenv lock hangs. It really does.

    pipenv lock hangs. It really does.

    This is a followup to #2681, which was closed without addressing the issue for some users. Also #3812, #3829, SO and someone's blog rant.

    Summary pipenv lock downloads every available artifact of installed packages and their dependencies. It does this to calculate their hashes, even when the artifact url includes the hash in a fragment. For some large packages, such as scipy, which have large dependencies and many artifacts per version, this behavior can result in unreasonably long delays for some users (893MB vs. 50MB download). It's also bad netiquette towards pypi.

    Symptoms

    • @connormclaud noted that lock seems peculiarly sensitive to network conditions before it disappeared by itself.
    • @Pithikos complained of pipenv lock hanging when installing scipy
    • @jackiekazil was surprised that the problem later seemed to disappear of its own.

    #2681 was closed by @techalchemy with a comment suggesting the delay is due to lengthy build times (which don't affect pipenv lock), but asked users to provide steps to reproduce.

    note: All the packages fetched have wheels.

    Details

    pipenv.lock calls Resolver.resolve() which enables all artifacts https://github.com/pypa/pipenv/blob/4c003521052d3b607be5abedf989744a5c172bda/pipenv/patched/piptools/resolver.py#L68-L73

    For a common setup consisting of scipy, pandas and numpy, here's the list of artifacts:

    Artifacts Queued for Hash Retrieval
    https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl#sha256=3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c
    https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz#sha256=d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73
    https://files.pythonhosted.org/packages/ad/99/5b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c/python-dateutil-2.8.0.tar.gz#sha256=c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
    https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl#sha256=7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb
    https://files.pythonhosted.org/packages/28/c1/901d7b80bf7793352fd0b2e6a8688d44bf2cba8d8772b8ca25f71f129f77/scipy-1.3.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=4907040f62b91c2e170359c3d36c000af783f0fa1516a83d6c1517cde0af5340
    https://files.pythonhosted.org/packages/94/b2/03c3f3a2e5d07014103370d49415eccaaae2c07c2b25164be6f8a76913c6/scipy-1.3.0-cp35-cp35m-manylinux1_i686.whl#sha256=1db9f964ed9c52dc5bd6127f0dd90ac89791daa690a5665cc01eae185912e1ba
    https://files.pythonhosted.org/packages/14/49/8f13fa215e10a7ab0731cc95b0e9bb66cf83c6a98260b154cfbd0b55fb19/scipy-1.3.0-cp35-cp35m-manylinux1_x86_64.whl#sha256=adadeeae5500de0da2b9e8dd478520d0a9945b577b2198f2462555e68f58e7ef
    https://files.pythonhosted.org/packages/7a/ed/877f676c9e736b62385d1220602ceee3ca5c574bbb95c582a6b74bf047e2/scipy-1.3.0-cp35-cp35m-win32.whl#sha256=03b1e0775edbe6a4c64effb05fff2ce1429b76d29d754aa5ee2d848b60033351
    https://files.pythonhosted.org/packages/ff/c5/64e6312d301c77f2a7acb5e755238bb8ba57e93feaade41ed73334ae2768/scipy-1.3.0-cp35-cp35m-win_amd64.whl#sha256=a7695a378c2ce402405ea37b12c7a338a8755e081869bd6b95858893ceb617ae
    https://files.pythonhosted.org/packages/81/ae/125c21f09b202c3009ad7d9fb0263fb7d6053813d4b67ccbbe4d65f7f53a/scipy-1.3.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=826b9f5fbb7f908a13aa1efd4b7321e36992f5868d5d8311c7b40cf9b11ca0e7
    https://files.pythonhosted.org/packages/42/df/cf4801dc7205d5535ddbdc426daa64a6e2120fb312dbb01d27814c9400a9/scipy-1.3.0-cp36-cp36m-manylinux1_i686.whl#sha256=b283a76a83fe463c9587a2c88003f800e08c3929dfbeba833b78260f9c209785
    https://files.pythonhosted.org/packages/72/4c/5f81e7264b0a7a8bd570810f48cd346ba36faedbd2ba255c873ad556de76/scipy-1.3.0-cp36-cp36m-manylinux1_x86_64.whl#sha256=db61a640ca20f237317d27bc658c1fc54c7581ff7f6502d112922dc285bdabee
    https://files.pythonhosted.org/packages/0b/27/fda16e2b06d6b2202f3c83efc6dea67fbf96aa158d00cc29a8aa6d645e88/scipy-1.3.0-cp36-cp36m-win32.whl#sha256=409846be9d6bdcbd78b9e5afe2f64b2da5a923dd7c1cd0615ce589489533fdbb
    https://files.pythonhosted.org/packages/9e/fd/9a995b7fc18c6c17ce570b3cfdabffbd2718e4f1830e94777c4fd66e1179/scipy-1.3.0-cp36-cp36m-win_amd64.whl#sha256=c19a7389ab3cd712058a8c3c9ffd8d27a57f3d84b9c91a931f542682bb3d269d
    https://files.pythonhosted.org/packages/04/66/ec5f1283d6a290a9153881a896837487338c44639c1305cc59e1c7b69cc9/scipy-1.3.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=09d008237baabf52a5d4f5a6fcf9b3c03408f3f61a69c404472a16861a73917e
    https://files.pythonhosted.org/packages/9a/38/9f5aa6814c7062318ba147cbfcddacea71ac15ddf69dced0765fe8fea39d/scipy-1.3.0-cp37-cp37m-manylinux1_i686.whl#sha256=a84c31e8409b420c3ca57fd30c7589378d6fdc8d155d866a7f8e6e80dec6fd06
    https://files.pythonhosted.org/packages/5d/bd/c0feba81fb60e231cf40fc8a322ed5873c90ef7711795508692b1481a4ae/scipy-1.3.0-cp37-cp37m-manylinux1_x86_64.whl#sha256=c5ea60ece0c0c1c849025bfc541b60a6751b491b6f11dd9ef37ab5b8c9041921
    https://files.pythonhosted.org/packages/be/cc/6f7842a4d9aa7f51155f849185631e1201df255742de84d724ac33bff723/scipy-1.3.0-cp37-cp37m-win32.whl#sha256=6c0543f2fdd38dee631fb023c0f31c284a532d205590b393d72009c14847f5b1
    https://files.pythonhosted.org/packages/53/17/9dfd64540b6645fae581462ed2d1c8e680b7e946ca2789c5149693660392/scipy-1.3.0-cp37-cp37m-win_amd64.whl#sha256=10325f0ffac2400b1ec09537b7e403419dcd25d9fee602a44e8a32119af9079e
    https://files.pythonhosted.org/packages/cb/97/361c8c6ceb3eb765371a702ea873ff2fe112fa40073e7d2b8199db8eb56e/scipy-1.3.0.tar.gz#sha256=c3bb4bd2aca82fb498247deeac12265921fe231502a6bc6edea3ee7fe6c40a7a
    https://files.pythonhosted.org/packages/8f/0b/1a2c21bb69138337dc079841aa4a45e5b2fc7a4260c0907f5254fb08f02e/numpy-1.16.4-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=b5554368e4ede1856121b0dfa35ce71768102e4aa55e526cb8de7f374ff78722
    https://files.pythonhosted.org/packages/f2/34/8de93582f74bf3b9a277054b436b9cf53128d7b84820bc6eb859d0afac74/numpy-1.16.4-cp27-cp27m-manylinux1_i686.whl#sha256=e8baab1bc7c9152715844f1faca6744f2416929de10d7639ed49555a85549f52
    https://files.pythonhosted.org/packages/20/2c/4d64f1cd4d2170b91d24ae45725de837bd40c34c9c04c94255c0f51c513d/numpy-1.16.4-cp27-cp27m-manylinux1_x86_64.whl#sha256=2a04dda79606f3d2f760384c38ccd3d5b9bb79d4c8126b67aff5eb09a253763e
    https://files.pythonhosted.org/packages/13/2d/0fa2e8de7022a4a39497f4a9e384b8b129dbcf5d1b059f1043e21f6f0a48/numpy-1.16.4-cp27-cp27m-win32.whl#sha256=94f5bd885f67bbb25c82d80184abbf7ce4f6c3c3a41fbaa4182f034bba803e69
    https://files.pythonhosted.org/packages/a6/db/18770d6b8419188d56b8ddd9794cb34c2d9f1d272ed8b40fa1ee38a3ca06/numpy-1.16.4-cp27-cp27m-win_amd64.whl#sha256=7dc253b542bfd4b4eb88d9dbae4ca079e7bf2e2afd819ee18891a43db66c60c7
    https://files.pythonhosted.org/packages/35/51/7eae9042f5904463cb27fea567afc15e90956bd4b7cba98ec1969e58f74a/numpy-1.16.4-cp27-cp27mu-manylinux1_i686.whl#sha256=0778076e764e146d3078b17c24c4d89e0ecd4ac5401beff8e1c87879043a0633
    https://files.pythonhosted.org/packages/1f/c7/198496417c9c2f6226616cff7dedf2115a4f4d0276613bab842ec8ac1e23/numpy-1.16.4-cp27-cp27mu-manylinux1_x86_64.whl#sha256=b0348be89275fd1d4c44ffa39530c41a21062f52299b1e3ee7d1c61f060044b8
    https://files.pythonhosted.org/packages/48/b4/266431019b3b2e0f343a4f98db31add8a5ce2d464e30cdd9deaca29a8751/numpy-1.16.4-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=52c40f1a4262c896420c6ea1c6fda62cf67070e3947e3307f5562bd783a90336
    https://files.pythonhosted.org/packages/38/61/3704bcbedb6fbcef9b92fe66d08af2b4328d10f199251e9b7a6db71547dc/numpy-1.16.4-cp35-cp35m-manylinux1_i686.whl#sha256=141c7102f20abe6cf0d54c4ced8d565b86df4d3077ba2343b61a6db996cefec7
    https://files.pythonhosted.org/packages/bb/ef/d5a21cbc094d3f4d5b5336494dbcc9550b70c766a8345513c7c24ed18418/numpy-1.16.4-cp35-cp35m-manylinux1_x86_64.whl#sha256=6e4f8d9e8aa79321657079b9ac03f3cf3fd067bf31c1cca4f56d49543f4356a5
    https://files.pythonhosted.org/packages/58/13/f5e2b4057707b62457085d48f27cde6caa594bfa0254aceb29405fb8b5a4/numpy-1.16.4-cp35-cp35m-win32.whl#sha256=d79f18f41751725c56eceab2a886f021d70fd70a6188fd386e29a045945ffc10
    https://files.pythonhosted.org/packages/b4/1b/36bd20a4a1f41729c406014974925598edaeca1ca2510a2843892329b2f1/numpy-1.16.4-cp35-cp35m-win_amd64.whl#sha256=14270a1ee8917d11e7753fb54fc7ffd1934f4d529235beec0b275e2ccf00333b
    https://files.pythonhosted.org/packages/0f/c9/3526a357b6c35e5529158fbcfac1bb3adc8827e8809a6d254019d326d1cc/numpy-1.16.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=a89e188daa119ffa0d03ce5123dee3f8ffd5115c896c2a9d4f0dbb3d8b95bfa3
    https://files.pythonhosted.org/packages/e4/ca/037f4d2b7788bd077af2bbe887f7225c74c5df8bab4824514d7decb8a904/numpy-1.16.4-cp36-cp36m-manylinux1_i686.whl#sha256=ec31fe12668af687b99acf1567399632a7c47b0e17cfb9ae47c098644ef36797
    https://files.pythonhosted.org/packages/87/2d/e4656149cbadd3a8a0369fcd1a9c7d61cc7b87b3903b85389c70c989a696/numpy-1.16.4-cp36-cp36m-manylinux1_x86_64.whl#sha256=27e11c7a8ec9d5838bc59f809bfa86efc8a4fd02e58960fa9c49d998e14332d5
    https://files.pythonhosted.org/packages/73/98/cecf557b7f3f1dfac93171392887e4f7a606d6867752311c56a30742d581/numpy-1.16.4-cp36-cp36m-win32.whl#sha256=dc2ca26a19ab32dc475dbad9dfe723d3a64c835f4c23f625c2b6566ca32b9f29
    https://files.pythonhosted.org/packages/20/ed/e036d31a9b2c750f270cbb1cfc1c0f94ac78ae504eea7eec3267be4e294a/numpy-1.16.4-cp36-cp36m-win_amd64.whl#sha256=ad3399da9b0ca36e2f24de72f67ab2854a62e623274607e37e0ce5f5d5fa9166
    https://files.pythonhosted.org/packages/6b/be/608b7f72b851472388eafc010a5d46dae5d41610d0ac5df4c98c2ed1b865/numpy-1.16.4-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=f58ac38d5ca045a377b3b377c84df8175ab992c970a53332fa8ac2373df44ff7
    https://files.pythonhosted.org/packages/dd/40/27395e0ab15dbcc5015899f4cc4ecbb535864db17cfb3b9a5bae66a98ea7/numpy-1.16.4-cp37-cp37m-manylinux1_i686.whl#sha256=f12b4f7e2d8f9da3141564e6737d79016fe5336cc92de6814eba579744f65b0a
    https://files.pythonhosted.org/packages/fc/d1/45be1144b03b6b1e24f9a924f23f66b4ad030d834ad31fb9e5581bd328af/numpy-1.16.4-cp37-cp37m-manylinux1_x86_64.whl#sha256=cbddc56b2502d3f87fda4f98d948eb5b11f36ff3902e17cb6cc44727f2200525
    https://files.pythonhosted.org/packages/07/46/656c25b39fc152ea525eef14b641993624a6325a8ae815b200de57cff0bc/numpy-1.16.4-cp37-cp37m-win32.whl#sha256=3c26010c1b51e1224a3ca6b8df807de6e95128b0908c7e34f190e7775455b0ca
    https://files.pythonhosted.org/packages/ce/61/be72eee50f042db3acf0b1fb86650ad36d6c0d9be9fc29f8505d3b9d6baa/numpy-1.16.4-cp37-cp37m-win_amd64.whl#sha256=dd9bcd4f294eb0633bb33d1a74febdd2b9018b8b8ed325f861fffcd2c7660bb8
    https://files.pythonhosted.org/packages/d3/4b/f9f4b96c0b1ba43d28a5bdc4b64f0b9d3fbcf31313a51bc766942866a7c7/numpy-1.16.4.zip#sha256=7242be12a58fec245ee9734e625964b97cf7e3f2f7d016603f9e56660ce479c7
    https://files.pythonhosted.org/packages/52/ff/912fe03a623a70bcf297d466013a0b4f4c68c3b60f86bf226682d061fc09/pandas-0.24.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=17916d818592c9ec891cbef2e90f98cc85e0f1e89ed0924c9b5220dc3209c846
    https://files.pythonhosted.org/packages/34/cc/1911d56b9464de76f7ef34c6b1c66e82d3a394fd6d0925d5203e903d4eee/pandas-0.24.2-cp27-cp27m-win32.whl#sha256=42e5ad741a0d09232efbc7fc648226ed93306551772fc8aecc6dce9f0e676794
    https://files.pythonhosted.org/packages/61/57/6c233cc63597c6aa6337e717bdeabf791e8b618e9c893922a223e4e41cf4/pandas-0.24.2-cp27-cp27m-win_amd64.whl#sha256=c9a4b7c55115eb278c19aa14b34fcf5920c8fe7797a09b7b053ddd6195ea89b3
    https://files.pythonhosted.org/packages/95/dd/295a1fa20c0d6207ba8df5c53c9c2340ca370f6a230b173c89c479761526/pandas-0.24.2-cp27-cp27mu-manylinux1_i686.whl#sha256=5149a6db3e74f23dc3f5a216c2c9ae2e12920aa2d4a5b77e44e5b804a5f93248
    https://files.pythonhosted.org/packages/db/83/7d4008ffc2988066ff37f6a0bb6d7b60822367dcb36ba5e39aa7801fda54/pandas-0.24.2-cp27-cp27mu-manylinux1_x86_64.whl#sha256=cc8fc0c7a8d5951dc738f1c1447f71c43734244453616f32b8aa0ef6013a5dfb
    https://files.pythonhosted.org/packages/da/82/1bc41a30737b70863c9b50983ca0413aa47905d215892ee136de3217bf3b/pandas-0.24.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=17450e25ae69e2e6b303817bdf26b2cd57f69595d8550a77c308be0cd0fd58fa
    https://files.pythonhosted.org/packages/b1/57/069982c126d22bbdb4de71912eec2c1d8d303149a0d7b17927797479a0ed/pandas-0.24.2-cp35-cp35m-manylinux1_i686.whl#sha256=366f30710172cb45a6b4f43b66c220653b1ea50303fbbd94e50571637ffb9167
    https://files.pythonhosted.org/packages/74/24/0cdbf8907e1e3bc5a8da03345c23cbed7044330bb8f73bb12e711a640a00/pandas-0.24.2-cp35-cp35m-manylinux1_x86_64.whl#sha256=4e718e7f395ba5bfe8b6f6aaf2ff1c65a09bb77a36af6394621434e7cc813204
    https://files.pythonhosted.org/packages/f2/7a/f2ed4fde495eb8d13dc595382c33f8aa2b58e0911ca4b12c1ca825872493/pandas-0.24.2-cp35-cp35m-win32.whl#sha256=8c872f7fdf3018b7891e1e3e86c55b190e6c5cee70cab771e8f246c855001296
    https://files.pythonhosted.org/packages/b3/59/38c88e1b26779b287a82c3d7601ec42c15e4acef09196e870c4fe9b77bd4/pandas-0.24.2-cp35-cp35m-win_amd64.whl#sha256=a3352bacac12e1fc646213b998bce586f965c9d431773d9e91db27c7c48a1f7d
    https://files.pythonhosted.org/packages/2a/67/0a59cb257c72bb837575ca0ddf5f0fe2a482e98209b7a1bed8cde68ddb46/pandas-0.24.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=d7b460bc316064540ce0c41c1438c416a40746fd8a4fb2999668bf18f3c4acf1
    https://files.pythonhosted.org/packages/7f/99/9c508429078eb4e103e22b4a191d12f7a9ceccee8db7ff18266cbe84e6c9/pandas-0.24.2-cp36-cp36m-manylinux1_i686.whl#sha256=c1bd07ebc15285535f61ddd8c0c75d0d6293e80e1ee6d9a8d73f3f36954342d0
    https://files.pythonhosted.org/packages/19/74/e50234bc82c553fecdbd566d8650801e3fe2d6d8c8d940638e3d8a7c5522/pandas-0.24.2-cp36-cp36m-manylinux1_x86_64.whl#sha256=071e42b89b57baa17031af8c6b6bbd2e9a5c68c595bc6bf9adabd7a9ed125d3b
    https://files.pythonhosted.org/packages/65/3e/16260dcad8d28167f8622dd5e600700fa1665a9dc0b245bb6068a34f657c/pandas-0.24.2-cp36-cp36m-win32.whl#sha256=2538f099ab0e9f9c9d09bbcd94b47fd889bad06dc7ae96b1ed583f1dc1a7a822
    https://files.pythonhosted.org/packages/d0/4e/9db3468e504ac9aeadb37eb32bcf0a74d063d24ad1471104bd8a7ba20c97/pandas-0.24.2-cp36-cp36m-win_amd64.whl#sha256=83c702615052f2a0a7fb1dd289726e29ec87a27272d775cb77affe749cca28f8
    https://files.pythonhosted.org/packages/fc/43/fd867e3347559845c8f993059d410c50a1e18709f1c4d4b3b47323a06a37/pandas-0.24.2-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#sha256=627594338d6dd995cfc0bacd8e654cd9e1252d2a7c959449228df6740d737eb8
    https://files.pythonhosted.org/packages/22/e6/2d47835f91eb010036be207581fa113fb4e3822ec1b4bafb0d3d105fede6/pandas-0.24.2-cp37-cp37m-manylinux1_x86_64.whl#sha256=4fe0d7e6438212e839fc5010c78b822664f1a824c0d263fd858f44131d9166e2
    https://files.pythonhosted.org/packages/04/8b/a1d5f257bfee6aab440e763505c65368bbf713309c9dc70ceeb8d4677c2e/pandas-0.24.2-cp37-cp37m-win32.whl#sha256=bcdd06007cca02d51350f96debe51331dec429ac8f93930a43eb8fb5639e3eb5
    https://files.pythonhosted.org/packages/61/c7/f943fceb712579bc538700e2c157dc4972e16abfe29bd4969149bad98c74/pandas-0.24.2-cp37-cp37m-win_amd64.whl#sha256=90f116086063934afd51e61a802a943826d2aac572b2f7d55caaac51c13db5b5
    https://files.pythonhosted.org/packages/b2/4c/b6f966ac91c5670ba4ef0b0b5613b5379e3c7abdfad4e7b89a87d73bae13/pandas-0.24.2.tar.gz#sha256=4f919f409c433577a501e023943e582c57355d50a724c589e78bc1d551a535a2
    https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl#sha256=303879e36b721603cc54604edcac9d20401bdbe31e1e4fdee5b9f98d5d31dfda
    https://files.pythonhosted.org/packages/df/d5/3e3ff673e8f3096921b3f1b79ce04b832e0100b4741573154b72b756a681/pytz-2019.1.tar.gz#sha256=d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141
    

    That's a lot of sequential network round-trips to wait through, and most of these are for different platforms than the installation. But that's not all.

    Each artifact is passed to HashCache.get_hash. https://github.com/pypa/pipenv/blob/4c003521052d3b607be5abedf989744a5c172bda/pipenv/patched/piptools/repositories/pypi.py#L60-L71

    The pypi artifact urls includes the sha256 hash, parsed into new_location.hash, but it isn't used. If the HashCache doesn't already hold the location key, the artifact is downloaded, hashed and then the hash is stored. This is the root cause of the delay, and in the above examples results in downloading 893MB of artifacts, compared to the 50MBs-worth which are installed.

    The problem disappears if the user is patient enough to wait it out, or if the connection is fast. However, it seems most users are surprised by the delay (me included), and expect it to be more or less instantaneous once the packages are installed.

    As a quick verification, I patched the get_hash method to use the hash fragment from the url if available, and the pipenv lock run time dropped to a few seconds.

    Sidenote, --verbose does not log network requests, so this was masked from view even when trying to debug.

    Type: Enhancement :bulb: Type: Discussion Category: Dependency Resolution Category: Performance 
    opened by ghost 60
  • pip 18.1 causes

    pip 18.1 causes "TypeError: 'module' object is not callable"

    Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

    Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

    Make sure to mention your debugging experience if the documented solution failed.

    Issue description

    New version of pip breaks pipenv, exactly on this line https://github.com/pypa/pipenv/blob/51cbc2e2f76a7c60f879a608fd96e95faca35f2e/pipenv/vendor/pip_shims/shims.py#L101

    Expected result

    The _strip_extras not be a module.

    Actual result
    ...
     File "/opt/myproj/.tox/py36/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line
    
        line, extras = _strip_extras(line)
    
    TypeError: 'module' object is not callable
    
    Steps to replicate

    Provide the steps to replicate (which usually at least includes the commands and the Pipfile).


    Please run $ pipenv --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting.

    If you're on macOS, run the following:

    $ pipenv --support | pbcopy
    

    If you're on Windows, run the following:

    > pipenv --support | clip
    

    If you're on Linux, run the following:

    $ pipenv --support | xclip
    
    opened by rafaelcaricio 56
  • pipenv lock missing dependencies

    pipenv lock missing dependencies

    I am installing django-oidc-provider and have noticed that Pipfile.lock is missing its dependencies. When I install from the lock file the dependencies are not installed leading to import errors.

    I did notice that if I pin django-oidc-provider to 0.5.2 everything works. 0.5.3 was released today I believe.

    Pipenv version: '11.2.0'

    Pipenv location: '/Users/brian/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv'

    Python location: '/Users/brian/.local/venvs/pipenv/bin/python'

    Other Python installations in PATH:

    • 2.7: /Users/brian/.pyenv/shims/python2.7

    • 2.7: /Users/brian/.pyenv/shims/python2.7

    • 2.7: /usr/bin/python2.7

    • 3.6: /Users/brian/.pyenv/shims/python3.6m

    • 3.6: /Users/brian/.pyenv/shims/python3.6

    • 3.6: /usr/local/bin/python3.6

    • 3.6.4: /Users/brian/.pyenv/shims/python

    • 3.6.4: /usr/local/bin/python

    • 2.7.10: /usr/bin/python

    • 2.7.14: /Users/brian/.pyenv/shims/python2

    • 3.6.4: /Users/brian/.pyenv/shims/python3

    • 3.6.4: /usr/local/bin/python3

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '3.6.4',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '17.4.0',
     'platform_system': 'Darwin',
     'platform_version': 'Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST '
                         '2017; root:xnu-4570.41.2~1/RELEASE_X86_64',
     'python_full_version': '3.6.4',
     'python_version': '3.6',
     'sys_platform': 'darwin'}
    

    System environment variables:

    • TERM_SESSION_ID
    • SSH_AUTH_SOCK
    • Apple_PubSub_Socket_Render
    • COLORFGBG
    • ITERM_PROFILE
    • XPC_FLAGS
    • LANG
    • PWD
    • SHELL
    • TERM_PROGRAM_VERSION
    • TERM_PROGRAM
    • PATH
    • COLORTERM
    • TERM
    • HOME
    • TMPDIR
    • USER
    • XPC_SERVICE_NAME
    • LOGNAME
    • __CF_USER_TEXT_ENCODING
    • ITERM_SESSION_ID
    • SHLVL
    • OLDPWD
    • NVM_DIR
    • NVM_CD_FLAGS
    • NVM_BIN
    • PYENV_ROOT
    • PYENV_SHELL
    • EDITOR
    • PYTHONDONTWRITEBYTECODE
    • GPGKEY
    • SSH_KEY_PATH
    • CLICOLOR
    • LSCOLORS
    • VIRTUAL_ENV_DISABLE_PROMPT
    • PYTHONSTARTUP
    • GPG_TTY
    • GIT_PS1_SHOWDIRTYSTATE
    • _
    • PIP_PYTHON_PATH

    Pipenv–specific environment variables:

    Debug–specific environment variables:

    • PATH: /Users/brian/.local/bin:/Users/brian/.cargo/bin:/Users/brian/.config/yarn/global/node_modules/.bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/Users/brian/.pyenv/shims:/Users/brian/.pyenv/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
    • SHELL: /usr/local/bin/zsh
    • EDITOR: nvim
    • LANG: en_US.UTF-8
    • PWD: /Users/brian/o

    Contents of Pipfile ('/Users/brian/o/Pipfile'):

    [[source]]
    
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    
    [packages]
    
    django-oidc-provider = "*"
    
    
    [dev-packages]
    
    
    
    [requires]
    
    python_version = "3.6"
    
    

    Contents of Pipfile.lock ('/Users/brian/o/Pipfile.lock'):

    {
        "_meta": {
            "hash": {
                "sha256": "c9edf25ec27dba42bb0e2a4bedbbbc4481eed9dae2b64f565d0e25d437b7fee4"
            },
            "pipfile-spec": 6,
            "requires": {
                "python_version": "3.6"
            },
            "sources": [
                {
                    "name": "pypi",
                    "url": "https://pypi.python.org/simple",
                    "verify_ssl": true
                }
            ]
        },
        "default": {
            "django-oidc-provider": {
                "hashes": [
                    "sha256:963b39ebc1e289e1812d462eb5913a0dd4e6ac1d6f178581b411fa838b3f62b1"
                ],
                "version": "==0.5.3"
            }
        },
        "develop": {}
    }
    
    

    Expected result

    The dependencies of django-oidc-provider locked in Pipfile.lock.

    Actual result

    See above Pipfile.lock from python -m pipenv.help.

    Steps to replicate
    pipenv install django-oidc-provider
    

    Like I mentioned above when using 0.5.2 it works. Here's the Pipfile.lock when using 0.5.2:

    {
        "_meta": {
            "hash": {
                "sha256": "7c52ead668bf09236495d2b396f9a43ba490e99ef36c264d58f8a039bc51502a"
            },
            "pipfile-spec": 6,
            "requires": {
                "python_version": "3.6"
            },
            "sources": [
                {
                    "name": "pypi",
                    "url": "https://pypi.python.org/simple",
                    "verify_ssl": true
                }
            ]
        },
        "default": {
            "certifi": {
                "hashes": [
                    "sha256:14131608ad2fd56836d33a71ee60fa1c82bc9d2c8d98b7bdbc631fe1b3cd1296",
                    "sha256:edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d"
                ],
                "version": "==2018.1.18"
            },
            "chardet": {
                "hashes": [
                    "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
                    "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
                ],
                "version": "==3.0.4"
            },
            "django-oidc-provider": {
                "hashes": [
                    "sha256:9981855f2965893c053353bd7d0a8bb7217f92d8fc94178ae9dd6bad5120a271"
                ],
                "version": "==0.5.2"
            },
            "future": {
                "hashes": [
                    "sha256:e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb"
                ],
                "version": "==0.16.0"
            },
            "idna": {
                "hashes": [
                    "sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f",
                    "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4"
                ],
                "version": "==2.6"
            },
            "pycryptodomex": {
                "hashes": [
                    "sha256:16ab612ca9164e971dc00f8fe895ac835e8bfe64c3174b368f80172ff5a98300",
                    "sha256:299a79efba6152ea438cc37f7349161e7bbd914f918342cad6316a4a5f29f2d7",
                    "sha256:2a55e8fd69c84287b44e2c9c07eaad314e76680b86e873774314c27266728670",
                    "sha256:2f71dc2b91288cf4a164287858eaccdc7053bf5765ebc47c5188f94eccc35e80",
                    "sha256:2f81caf3ee08f00a957fd074c33430e8781958c616e864c5a1e709fb954750bc",
                    "sha256:3d4c77f1d4273ae753e49dac5c916f2278b0dd354a0c5f2a29fcf88bbae4efa9",
                    "sha256:563512542dcab3e95d8cef70e45cc5a43ef35ff84bc040c388b305015343e51e",
                    "sha256:5d058decae88f86833a430afc0517df815d9efa4255b3a6d576c7fb305cb56d4",
                    "sha256:5ec5903197d256b4559ff5c6a4756c34219ec81aff92be1174681623ba1e6383",
                    "sha256:67f6573ff84ce7f7ea8ffc01ba5821c15dc85bf43291e4f8e11d7b6e2d5f504e",
                    "sha256:729da9aa2b8ea0bd8e35bc89ecd1ff4e482e6e9c2275e2e19de8b68dd8156fb5",
                    "sha256:82df0a7cda5c94e9e4c62fb8d6507d5418f6593c8ed1b40b538a771ca003b597",
                    "sha256:91b87c3abb24da1a980cb0f05e150eb0525235129bc5cb59277ea96860677f0a",
                    "sha256:a02b1b17d7c86b12bc1d4ede75846a7971e7df6d75508cd0696e383c18cad4ce",
                    "sha256:a36d5a5b73e51d66e3f1da53ce00e56de860a9c529f2811bb8d95374d9da06df",
                    "sha256:a7d836d6284c4734841c7c9d851be546650302ebca281de851129c22f1298ad5",
                    "sha256:bb60d38111ebc383a5a1c909545562926c66c846d03fc65ba7b8a3487cb23078",
                    "sha256:bf2e6cf6e78c8e6d63eeaa9641cad5008a382af98f2dc25cb7c6444f13133df9",
                    "sha256:e303a4a1b242d3277e8dea07ab4e3737d0d1ed122990c713d6f88b0dda10c378",
                    "sha256:e378bd7a09257a7a9a58f7f04b088991cf23a99847e9f42d6f996b4e52a11c33",
                    "sha256:e75e7fe725dd5989e89da25a2fe7e3d35ed8123ac30eaae2f2340d0ba0431a88",
                    "sha256:eac46844350302c93f3fd3eaa37353ee9e25cffcd1c574dfffb22de157ddce17",
                    "sha256:f0ca00abf69827e78415050780cf838c7af9f378e591611210e25a03d6d0ea90"
                ],
                "version": "==3.5.1"
            },
            "pyjwkest": {
                "hashes": [
                    "sha256:128e3c81d02993ac4cd7e29ef7aac767d91daa59380e6883ae589092945e4aad"
                ],
                "version": "==1.4.0"
            },
            "requests": {
                "hashes": [
                    "sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b",
                    "sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"
                ],
                "version": "==2.18.4"
            },
            "six": {
                "hashes": [
                    "sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
                    "sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
                ],
                "version": "==1.11.0"
            },
            "urllib3": {
                "hashes": [
                    "sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",
                    "sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
                ],
                "version": "==1.22"
            }
        },
        "develop": {}
    }
    
    Type: Bug :bug: 
    opened by brosner 54
  • setup.py best practices?

    setup.py best practices?

    I'm trying to understand the best practices for handling setup.py files with pipenv. Running into a few issues.

    1. it seems as though requests[security] is not respected? I'm getting an ImportError: No module named ipaddress after doing a pipenv install. I do see idna and pyopenssl getting installed though.
    2. when I change dependencies in my setup.py, and then try to run pipenv install or pipenv update those changes seem to not be respected since it's using the Pipfile.lock. I have to do some combination of deleting the Pipfile.lock or pipenv --rm before I can get the changes to register.

    what's the best way to handle this type of stuff?

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    "286599a" = {path = ".", editable = true}
    
    [dev-packages]
    
    from setuptools import setup, find_packages
    
    setup(
        name='congressionalrecord2',
        version='0.9.1',
        description='Parse the U.S. Congressional Record from FDsys.',
        url='https://github.com/unitedstates/congressional-record',
        author='Nick Judd',
        author_email='[email protected]',
        license='BSD3',
        packages=find_packages(),
        install_requires=[
            'beautifulsoup4 >= 4.4.0',
            'lxml >= 3.3.5',
            'numpy >= 1.9.0',
            'psycopg2 >= 2.6.1',
            'pyelasticsearch >= 1.4',
            'SQLAlchemy >= 1.0.8',
            'requests[security]',
            'PyYAML >= 3.11',
            'enum34',
            'unicodecsv',
            'future'
            ],
            zip_safe=False
        )
    
    opened by AlJohri 54
  • `PIP_INDEX_URL` does not work when `pipenv install` directly against `Pipfile`

    `PIP_INDEX_URL` does not work when `pipenv install` directly against `Pipfile`

    Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

    Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

    Make sure to mention your debugging experience if the documented solution failed.

    Issue description

    When running pipenv install -v (with Pipfile exists in the same directory and no specific packages), seems PIP_INDEX_URL and PIP_EXTRA_INDEX_URL will not take effects, but pipenv install -v [specific-package] seems to work.

    P.S. Setting PIPENV_PYPI_MIRROR overrides the behavior but might not be a fix to this bug I think.

    Expected result

    $ ['/root/.local/share/virtualenvs/-x-v5uFv0/bin/pip', 'install', '--verbose', '--upgrade', '--exists-action=i', '-r', '/tmp/pipenv-y1y1ullx-requirements/pipenv-xwj6d0w7-requirement.txt', '-i', '<customized_pypi_mirror>', '--extra-index-url', 'https://pypi.org/simple']
    

    Actual result

    $ ['/root/.local/share/virtualenvs/-x-v5uFv0/bin/pip', 'install', '--verbose', '--upgrade', '--require-hashes', '--no-deps', '--exists-action=i', '-r', '/tmp/pipenv-xgumh48f-requirements/pipenv-n4appqla-requirement.txt', '-i', 'https://pypi.org/simple']
    

    Steps to replicate

    Provide the steps to replicate (which usually at least includes the commands and the Pipfile).

    The Pipfile

    [dev-packages]
    
    [packages]
    requests = "*"
    
    [requires]
    python_version = "3.9"
    
    [[source]]
    name = "pypi"
    url = "https://pypi.org/simple"
    verify_ssl = true
    

    Run in python docker container for example

    docker pull python:3.9
    docker run --rm -it --entrypoint bash -v <path/to/Pipfile>:/Pipfile python:3.9
    

    Commands inside the container

    export PIP_INDEX_URL=<customized_pypi_mirror>
    pip install pipenv # Install pipenv from <customized_pypi_mirror>
    pipenv install -v # This only installs from pypi.org
    pipenv --rm # Clean
    pipenv install -v requests # This installs from the specified <customized_pypi_mirror>
    

    $ pipenv --support

    Pipenv version: '2021.5.29'

    Pipenv location: '/usr/local/lib/python3.9/site-packages/pipenv'

    Python location: '/usr/local/bin/python'

    Python installations found:

    • 3.9.7: /usr/local/bin/python3.9
    • 3.9.7: /usr/local/bin/python3
    • 3.9.2: /usr/bin/python3.9
    • 3.9.2: /usr/bin/python3

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '3.9.7',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '5.10.47-linuxkit',
     'platform_system': 'Linux',
     'platform_version': '#1 SMP Sat Jul 3 21:51:47 UTC 2021',
     'python_full_version': '3.9.7',
     'python_version': '3.9',
     'sys_platform': 'linux'}
    

    System environment variables:

    • HOSTNAME
    • PYTHON_VERSION
    • PWD
    • PYTHON_SETUPTOOLS_VERSION
    • HOME
    • LANG
    • PIP_EXTRA_INDEX_URL
    • GPG_KEY
    • TERM
    • SHLVL
    • PYTHON_PIP_VERSION
    • PYTHON_GET_PIP_SHA256
    • PYTHON_GET_PIP_URL
    • PATH
    • _
    • PIP_DISABLE_PIP_VERSION_CHECK
    • PYTHONDONTWRITEBYTECODE
    • PIP_SHIMS_BASE_MODULE
    • PIP_PYTHON_PATH
    • PYTHONFINDER_IGNORE_UNSUPPORTED

    Pipenv–specific environment variables:

    Debug–specific environment variables:

    • PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • LANG: C.UTF-8
    • PWD: /

    Contents of Pipfile ('/Pipfile'):

    [dev-packages]
    
    [packages]
    requests = "*"
    
    [requires]
    python_version = "3.9"
    
    [[source]]
    name = "pypi"
    url = "https://pypi.org/simple"
    verify_ssl = true
    
    

    Contents of Pipfile.lock ('/Pipfile.lock'):

    {
        "_meta": {
            "hash": {
                "sha256": "b8c2e1580c53e383cfe4254c1f16560b855d984fde8b2beb3bf6ee8fc2fe5a22"
            },
            "pipfile-spec": 6,
            "requires": {
                "python_version": "3.9"
            },
            "sources": [
                {
                    "name": "pypi",
                    "url": "https://pypi.org/simple",
                    "verify_ssl": true
                }
            ]
        },
        "default": {
            "certifi": {
                "hashes": [
                    "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872",
                    "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"
                ],
                "version": "==2021.10.8"
            },
            "charset-normalizer": {
                "hashes": [
                    "sha256:e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0",
                    "sha256:f7af805c321bfa1ce6714c51f254e0d5bb5e5834039bc17db7ebe3a4cec9492b"
                ],
                "markers": "python_version >= '3'",
                "version": "==2.0.7"
            },
            "idna": {
                "hashes": [
                    "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
                    "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
                ],
                "markers": "python_version >= '3'",
                "version": "==3.3"
            },
            "requests": {
                "hashes": [
                    "sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24",
                    "sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
                ],
                "index": "pypi",
                "version": "==2.26.0"
            },
            "urllib3": {
                "hashes": [
                    "sha256:4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece",
                    "sha256:c4fdf4019605b6e5423637e01bc9fe4daef873709a7973e195ceba0a62bbc844"
                ],
                "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
                "version": "==1.26.7"
            }
        },
        "develop": {}
    }
    
    
    opened by huxuan 0
  • Rename the default branch to `main`

    Rename the default branch to `main`

    Hi everybody!

    I have noticed that many PyPA repositories have renamed its default branch to main. Can this project do the same?

    opened by DiddiLeija 5
  • 403 on pipenv website

    403 on pipenv website

    Hello, the pipenv website returns a 403 error code : https://pipenv.pypa.io/en/latest/ image

    opened by leogout 4
  • ModuleNotFoundError: No module named 'pip._vendor.six'

    ModuleNotFoundError: No module named 'pip._vendor.six'

    Issue description

    I installed pipenv on my Ubuntu 20 system using /usr/bin/pip3 install --user pipenv. When I try installing any package I get the following error:

    ➜  pipenv install requests
    Installing requests...
    Installing package: requests
    Writing supplied requirement line to temporary file: 'requests'
    Installing 'requests'
    ⠙ Installing requests...$ ['/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/bin/pip', 'install', '--verbose', '--upgrade', '--exists-action=i', '-r', '/tmp/pipenv-bq9czv9c-requirements/pipenv-3e94mp9s-requirement.txt', '-i', 'https://pypi.org/simple']
    Using source directory: '/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/src'
    Error:  An error occurred while installing requests!
    Error text:
    Traceback (most recent call last):
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/bin/pip", line 5, in <module>
        from pip._internal.cli.main import main
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 10, in <module>
        from pip._internal.cli.autocompletion import autocomplete
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
        from pip._internal.cli.main_parser import create_main_parser
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
        from pip._internal.cli import cmdoptions
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
        from pip._internal.exceptions import CommandError
      File "/home/ben/.local/share/virtualenvs/blockbuster-yhSJSr9y/lib/python3.8/site-packages/pip/_internal/exceptions.py", line 10, in <module>
        from pip._vendor.six import iteritems
    ModuleNotFoundError: No module named 'pip._vendor.six'
    

    I can imagine this might be related to interference from pyenv. Simply trying to install the missing six package just tells me it's already installed. Thanks for any help!

    Expected result

    Installing packages works.

    Actual result

    See above.

    Steps to replicate

    This happens in an empty folder as well, i.e. doesn't seem related to any pipenv file of mine.


    $ pipenv --support

    Pipenv version: '2021.5.29'

    Pipenv location: '/home/ben/.local/lib/python3.8/site-packages/pipenv'

    Python location: '/usr/bin/python3'

    Python installations found:

    • 3.9.1: /home/ben/.pyenv/versions/tf/bin/python3.9
    • 3.9.1: /home/ben/.pyenv/versions/d39/bin/python3.9
    • 3.9.1: /home/ben/.pyenv/versions/minerl/bin/python3.9
    • 3.9.1: /home/ben/.pyenv/versions/gen_coco/bin/python3.9
    • 3.9.1: /home/ben/.pyenv/versions/3.9.1/bin/python3.9
    • 3.8.10: /usr/bin/python3
    • 3.8.10: /usr/bin/python3.8
    • 3.8.10: /bin/python3
    • 3.8.10: /bin/python3.8
    • 3.8.7: /home/ben/.pyenv/versions/3.8.7/bin/python3
    • 3.8.7: /home/ben/.pyenv/versions/d38_pt12/bin/python3
    • 3.8.7: /home/ben/.pyenv/versions/d38/bin/python3
    • 3.7.9: /home/ben/.pyenv/versions/d37/bin/python3.7
    • 3.7.9: /home/ben/.pyenv/versions/3.7.9/bin/python3.7m
    • 3.7.9: /home/ben/.pyenv/versions/d37_pd/bin/python3.7

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '3.8.10',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '5.11.0-34-generic',
     'platform_system': 'Linux',
     'platform_version': '#36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021',
     'python_full_version': '3.8.10',
     'python_version': '3.8',
     'sys_platform': 'linux'}
    

    System environment variables:

    • LC_TERMINAL
    • LC_CTYPE
    • LC_TERMINAL_VERSION
    • USER
    • LOGNAME
    • HOME
    • PATH
    • SHELL
    • TERM
    • SSH_AUTH_SOCK
    • XDG_SESSION_ID
    • XDG_RUNTIME_DIR
    • DBUS_SESSION_BUS_ADDRESS
    • XDG_SESSION_TYPE
    • XDG_SESSION_CLASS
    • MOTD_SHOWN
    • LANG
    • LC_NUMERIC
    • LC_TIME
    • LC_MONETARY
    • LC_PAPER
    • LC_NAME
    • LC_ADDRESS
    • LC_TELEPHONE
    • LC_MEASUREMENT
    • LC_IDENTIFICATION
    • SSH_CLIENT
    • SSH_CONNECTION
    • SSH_TTY
    • SHLVL
    • PWD
    • OLDPWD
    • ZSH
    • PAGER
    • LESS
    • LSCOLORS
    • LS_COLORS
    • PYENV_SHELL
    • PYENV_VIRTUALENV_INIT
    • _
    • PIP_DISABLE_PIP_VERSION_CHECK
    • PYTHONDONTWRITEBYTECODE
    • PIP_SHIMS_BASE_MODULE
    • PIP_PYTHON_PATH
    • PYTHONFINDER_IGNORE_UNSUPPORTED

    Pipenv–specific environment variables:

    Debug–specific environment variables:

    • PATH: /home/ben/.cargo/bin:/usr/local/bin:/home/ben/.npm-global/bin:/home/ben/.pyenv/plugins/pyenv-virtualenv/shims:/home/ben/.pyenv/shims:/home/ben/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ben/.local/bin
    • SHELL: /bin/zsh
    • LANG: en_US.UTF-8
    • PWD: /home/ben/devel/adv/test_folder

    Contents of Pipfile ('/media/ben/data/devel/test_folder/Pipfile'):

    [[source]]
    url = "https://pypi.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    
    [dev-packages]
    
    [requires]
    python_version = "3.9"
    
    
    opened by b-hahn 3
  • Certain numpy version constraints leads to crash with cryptic error

    Certain numpy version constraints leads to crash with cryptic error

    Issue description

    When constraining numpy to the following and running pipenv install the locking fails with a cryptic error

    Pipfile:

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    numpy= ">=1.18.2,<1.20.1"
    
    [requires]
    python_version = "3.8"
    

    the following pipfile works (but is located in a subdependency for me):

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    numpy= ">=1.18.2,<1.20"
    
    [requires]
    python_version = "3.8"
    

    Expected result

    pipenv install completes succesfully

    Actual result

    actual error output (username redacted)

    ERROR:pip.subprocessor:Command errored out with exit status 1:
     command: [...].local/share/virtualenvs/reproduce_pipenv-41i3Pkp5/bin/python /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/kx/sv3rr52s1lz56tw13ht8961m0000gn/T/pip-build-env-qowi68e0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.python.org/simple --trusted-host gitlab.understand.ai -- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0'
         cwd: None
    Complete output (20 lines):
    Traceback (most recent call last):
      File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
        exec(code, run_globals)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/__main__.py", line 18, in <module>
        from pipenv.patched.notpip._internal.cli.main import main as _main  # isort:skip # noqa
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/__init__.py", line 23, in <module>
        from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/vendor/vistir/__init__.py", line 4, in <module>
        from .compat import (
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/vendor/vistir/compat.py", line 202, in <module>
        IS_TYPE_CHECKING = os.environ.get("MYPY_RUNNING", is_type_checking())
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/vendor/vistir/compat.py", line 196, in is_type_checking
        from typing import TYPE_CHECKING
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/typing.py", line 1357, in <module>
        class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/typing.py", line 1005, in __new__
        self._abc_registry = extra._abc_registry
    AttributeError: type object 'Callable' has no attribute '_abc_registry'
    ----------------------------------------
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/resolver.py", line 764, in <module>
        main()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/resolver.py", line 758, in main
        _main(parsed.pre, parsed.clear, parsed.verbose, parsed.system, parsed.write,
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/resolver.py", line 741, in _main
        resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/resolver.py", line 702, in resolve_packages
        results, resolver = resolve(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/resolver.py", line 684, in resolve
        return resolve_deps(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/utils.py", line 1397, in resolve_deps
        results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps
        resolver.resolve()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/utils.py", line 825, in resolve
        results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve
        has_changed, best_matches = self._resolve_one_round()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 268, in _resolve_one_round
        their_constraints.extend(self._iter_dependencies(best_match))
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 383, in _iter_dependencies
        dependencies = self.repository.get_dependencies(ireq)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 229, in get_dependencies
        legacy_results = self.get_legacy_dependencies(ireq)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 350, in get_legacy_dependencies
        results, ireq = self.resolve_reqs(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 306, in resolve_reqs
        results = resolver._resolve_one(reqset, ireq)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 339, in _resolve_one
        abstract_dist = self._get_abstract_dist_for(req_to_install)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 287, in _get_abstract_dist_for
        abstract_dist = self.preparer.prepare_linked_requirement(req)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 508, in prepare_linked_requirement
        abstract_dist = _get_prepared_distribution(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
        abstract_dist.prepare_distribution_metadata(finder, build_isolation)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
        self._setup_isolation(finder)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 66, in _setup_isolation
        self.req.build_env.install_requirements(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/build_env.py", line 202, in install_requirements
        call_subprocess(args, spinner=spinner)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/utils/subprocess.py", line 242, in call_subprocess
        raise InstallationError(exc_msg)
    pipenv.patched.notpip._internal.exceptions.InstallationError: Command errored out with exit status 1: [...]/virtualenvs/reproduce_pipenv-41i3Pkp5/bin/python /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/kx/sv3rr52s1lz56tw13ht8961m0000gn/T/pip-build-env-qowi68e0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.python.org/simple --- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0' Check the logs for full command output.
    

    Steps to replicate

    See also my repo to reproduce: https://github.com/Germandrummer92/reproduce_pipenv

    $ pipenv --support

    Pipenv version: '2021.5.29'

    Pipenv location: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pipenv'

    Python location: '/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8'

    Python installations found:

    • 3.9.7: /usr/local/bin/python3
    • 3.9.7: /usr/local/bin/python3.9
    • 3.8.12: /usr/local/opt/[email protected]/bin/python3
    • 3.8.12: /usr/local/opt/[email protected]/bin/python3.8
    • 3.8.11: /Applications/miniconda3/envs/reproduce_pipenv/bin/python3
    • 3.8.11: /Applications/miniconda3/envs/reproduce_pipenv/bin/python3.8
    • 3.8.9: /usr/bin/python3
    • 3.8.0: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
    • 3.8.0: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
    • 2.7.16: /usr/bin/python2
    • 2.7.16: /usr/bin/python2.7

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '3.8.0',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '20.6.0',
     'platform_system': 'Darwin',
     'platform_version': 'Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT '
                         '2021; root:xnu-7195.141.6~3/RELEASE_X86_64',
     'python_full_version': '3.8.0',
     'python_version': '3.8',
     'sys_platform': 'darwin'}
    

    System environment variables:

    • PATH
    • __CFBundleIdentifier
    • SHELL
    • TERM
    • USER
    • TMPDIR
    • COMMAND_MODE
    • TERMINAL_EMULATOR
    • LOGIN_SHELL
    • __INTELLIJ_COMMAND_HISTFILE__
    • SSH_AUTH_SOCK
    • XPC_FLAGS
    • TERM_SESSION_ID
    • __CF_USER_TEXT_ENCODING
    • LOGNAME
    • XPC_SERVICE_NAME
    • HOME
    • SHLVL
    • PWD
    • OLDPWD
    • P9K_TTY
    • _P9K_TTY
    • LC_CTYPE
    • ZSH
    • LDFLAGS
    • PKG_CONFIG_PATH
    • PAGER
    • LESS
    • LSCOLORS
    • P9K_SSH
    • CLOUDSDK_PYTHON
    • INTERNAL_PYPI_TOKEN
    • PYPI_TOKEN_OLD
    • GITLAB_TOKEN
    • GITLAB_TOKEN_2
    • KEYCLOAK_USERNAME
    • KEYCLOAK_PASSWORD
    • WANDB_API_KEY
    • PYTHONIOENCODING
    • CONDA_EXE
    • _CE_M
    • _CE_CONDA
    • CONDA_PYTHON_EXE
    • CONDA_SHLVL
    • CONDA_PREFIX
    • CONDA_DEFAULT_ENV
    • CONDA_PROMPT_MODIFIER
    • CONDA_PREFIX_1
    • _
    • PIP_DISABLE_PIP_VERSION_CHECK
    • PYTHONDONTWRITEBYTECODE
    • PIP_SHIMS_BASE_MODULE
    • PIP_PYTHON_PATH
    • PYTHONFINDER_IGNORE_UNSUPPORTED

    Pipenv–specific environment variables:

    Debug–specific environment variables:

    • PATH: /usr/local/sbin:/Applications/miniconda3/envs/reproduce_pipenv/bin:/Applications/miniconda3/condabin:/Users/ddraper/google-cloud-sdk/bin:/Users/ddraper/bin:/usr/local/opt/[email protected]/bin:/Users/ddraper/.cargo/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
    • SHELL: /bin/zsh
    • PWD: /Users/ddraper/dev/reproduce_pipenv

    Contents of Pipfile ('/Users/ddraper/dev/reproduce_pipenv/Pipfile'):

    [[source]]
    url = "https://pypi.python.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    numpy= ">=1.18.2,<1.20.1"
    
    [requires]
    python_version = "3.8"
    
    

    Contents of Pipfile.lock ('/Users/ddraper/dev/reproduce_pipenv/Pipfile.lock'):

    {
        "_meta": {
            "hash": {
                "sha256": "82c09f90b1dfff00c721e75a631fba3e4c57566549408f7c6845a11f94954d8f"
            },
            "pipfile-spec": 6,
            "requires": {
                "python_version": "3.8"
            },
            "sources": [
                {
                    "name": "pypi",
                    "url": "https://pypi.python.org/simple",
                    "verify_ssl": true
                }
            ]
        },
        "default": {
            "numpy": {
                "hashes": [
                    "sha256:012426a41bc9ab63bb158635aecccc7610e3eff5d31d1eb43bc099debc979d94",
                    "sha256:06fab248a088e439402141ea04f0fffb203723148f6ee791e9c75b3e9e82f080",
                    "sha256:0eef32ca3132a48e43f6a0f5a82cb508f22ce5a3d6f67a8329c81c8e226d3f6e",
                    "sha256:1ded4fce9cfaaf24e7a0ab51b7a87be9038ea1ace7f34b841fe3b6894c721d1c",
                    "sha256:2e55195bc1c6b705bfd8ad6f288b38b11b1af32f3c8289d6c50d47f950c12e76",
                    "sha256:2ea52bd92ab9f768cc64a4c3ef8f4b2580a17af0a5436f6126b08efbd1838371",
                    "sha256:36674959eed6957e61f11c912f71e78857a8d0604171dfd9ce9ad5cbf41c511c",
                    "sha256:384ec0463d1c2671170901994aeb6dce126de0a95ccc3976c43b0038a37329c2",
                    "sha256:39b70c19ec771805081578cc936bbe95336798b7edf4732ed102e7a43ec5c07a",
                    "sha256:400580cbd3cff6ffa6293df2278c75aef2d58d8d93d3c5614cd67981dae68ceb",
                    "sha256:43d4c81d5ffdff6bae58d66a3cd7f54a7acd9a0e7b18d97abb255defc09e3140",
                    "sha256:50a4a0ad0111cc1b71fa32dedd05fa239f7fb5a43a40663269bb5dc7877cfd28",
                    "sha256:603aa0706be710eea8884af807b1b3bc9fb2e49b9f4da439e76000f3b3c6ff0f",
                    "sha256:6149a185cece5ee78d1d196938b2a8f9d09f5a5ebfbba66969302a778d5ddd1d",
                    "sha256:759e4095edc3c1b3ac031f34d9459fa781777a93ccc633a472a5468587a190ff",
                    "sha256:7fb43004bce0ca31d8f13a6eb5e943fa73371381e53f7074ed21a4cb786c32f8",
                    "sha256:811daee36a58dc79cf3d8bdd4a490e4277d0e4b7d103a001a4e73ddb48e7e6aa",
                    "sha256:8b5e972b43c8fc27d56550b4120fe6257fdc15f9301914380b27f74856299fea",
                    "sha256:99abf4f353c3d1a0c7a5f27699482c987cf663b1eac20db59b8c7b061eabd7fc",
                    "sha256:a0d53e51a6cb6f0d9082decb7a4cb6dfb33055308c4c44f53103c073f649af73",
                    "sha256:a12ff4c8ddfee61f90a1633a4c4afd3f7bcb32b11c52026c92a12e1325922d0d",
                    "sha256:a4646724fba402aa7504cd48b4b50e783296b5e10a524c7a6da62e4a8ac9698d",
                    "sha256:a76f502430dd98d7546e1ea2250a7360c065a5fdea52b2dffe8ae7180909b6f4",
                    "sha256:a9d17f2be3b427fbb2bce61e596cf555d6f8a56c222bd2ca148baeeb5e5c783c",
                    "sha256:ab83f24d5c52d60dbc8cd0528759532736b56db58adaa7b5f1f76ad551416a1e",
                    "sha256:aeb9ed923be74e659984e321f609b9ba54a48354bfd168d21a2b072ed1e833ea",
                    "sha256:c843b3f50d1ab7361ca4f0b3639bf691569493a56808a0b0c54a051d260b7dbd",
                    "sha256:cae865b1cae1ec2663d8ea56ef6ff185bad091a5e33ebbadd98de2cfa3fa668f",
                    "sha256:cc6bd4fd593cb261332568485e20a0712883cf631f6f5e8e86a52caa8b2b50ff",
                    "sha256:cf2402002d3d9f91c8b01e66fbb436a4ed01c6498fffed0e4c7566da1d40ee1e",
                    "sha256:d051ec1c64b85ecc69531e1137bb9751c6830772ee5c1c426dbcfe98ef5788d7",
                    "sha256:d6631f2e867676b13026e2846180e2c13c1e11289d67da08d71cacb2cd93d4aa",
                    "sha256:dbd18bcf4889b720ba13a27ec2f2aac1981bd41203b3a3b27ba7a33f88ae4827",
                    "sha256:df609c82f18c5b9f6cb97271f03315ff0dbe481a2a02e56aeb1b1a985ce38e60"
                ],
                "index": "pypi",
                "version": "==1.19.5"
            }
        },
        "develop": {}
    }
    
    
    opened by Germandrummer92 0
  • Release notes for 2021.5.29

    Release notes for 2021.5.29

    It would be very helpful if release 2021.5.29 could be accompanied by some release notes. Thanks in advance. :-)

    opened by dennisvang 1
  • Fixes #4788: incorrect returncode

    Fixes #4788: incorrect returncode

    The issue

    As described in issue #4788 , --py option returns incorrect return code if no virtualenv is found.

    bash-3.2$ pipenv --version
    pipenv, version 2021.5.29
    bash-3.2$ cd / && pipenv --py
    No virtualenv has been created for this project (/) yet!
    bash-3.2$ echo $?
    0
    

    The fix

    pass ctx to do_py and abort if virtualenv is not found. The output is like this.

    [email protected]:/pipenv# python pipenv --py
    No virtualenv has been created for this project (/pipenv) yet!
    Aborted!
    [email protected]:/pipenv# echo $?
    1
    

    The checklist

    • [ ] Associated issue
    • [ ] A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.
    opened by kobayashi 2
  • Fixes #4790: behaving as no .venv if .venv is in project root and empty

    Fixes #4790: behaving as no .venv if .venv is in project root and empty

    The issue

    fix issue #4790

    The fix

    This is to prevent an user from choosing own workon home as the virtual environment or deleting all virtual environments accidentally under the workon dir. pipenv ignores the content with this change, so that it uses project name base virtual environment If an empty .venv is set in root.

    The checklist

    • [ ] Associated issue
    • [ ] A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.
    opened by kobayashi 0
  • Pipenv can't lock after installing package from private Python repo in Google Artifact Registry

    Pipenv can't lock after installing package from private Python repo in Google Artifact Registry

    Issue description

    After installing a simple proof-of-concept package, poc, from a private Python Repo in Google Artifact Registry, I run pipenv lock to update Pipfile.lock, but the lock fails with pipenv.exceptions.ResolutionFailure.

    Interestingly, I am able to install and lock pip's sampleproject from my same Python Repo in Google Artifact Registry.

    Steps to Replicate

    1. Used twine to upload my poc package to my private repo in Google Artifact Registry
    2. Created a new pipenv environment and run pipenv shell
    3. Installed keyrings.google-artifactregistry-auth in the virtual environment
    4. Installed poc with pipenv install --skip-lock -i https://us-central1-python.pkg.dev/my-project/quickstart-python-repo/simple/ poc
    5. Tried locking with pipenv lock

    Expected result

    I expect a simple update to the lockfile. My poc package has just one dependency: numpy. No other packages in the environment require numpy, so I am confident there is no issue with conflicting requirements.

    NOTE sampleproject also has a single requirement: peppercorn. I've tried installing and locking sampleproject with peppercorn also being present in my private repo, and not being present. In both cases I am able to install and successfully lock.

    This leads me to think that perhaps there is something weird about how I've constructed my package, since the sampleproject package can install perfectly well, regardless of whether its dependencies exist with it on my private repo, or elsewhere on the standard pypi repo. In case it's relevant, I'm attaching a zip file containing the poc package files as it is after running python setup.py sdist bdist_wheel: python-quickstart.zip

    Actual result

    When I run pipenv lock --verbose this is what I see:

    (with-pipenv) ➜  with-pipenv pipenv lock --verbose                                                                                          
    Locking [dev-packages] dependencies...
    Locking [packages] dependencies...
    Building requirements...
    Resolving dependencies...
    ⠙ Locking...
                              ROUND 1                           
    ✘ Locking Failed! 
    Current constraints:
      keyrings.google-artifactregistry-auth (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 3))
      poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
      sampleproject (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 4))
    
    Finding the best candidates:
      found candidate keyrings.google-artifactregistry-auth==0.0.3 (constraint was <any>)
    Traceback (most recent call last):
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 825, in resolve
        results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve
        has_changed, best_matches = self._resolve_one_round()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 260, in _resolve_one_round
        best_matches = {self.get_best_match(ireq) for ireq in constraints}
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 260, in <setcomp>
        best_matches = {self.get_best_match(ireq) for ireq in constraints}
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 319, in get_best_match
        best_match = self.repository.find_best_match(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 205, in find_best_match
        raise NoCandidateFound(ireq, all_candidates, self.finder)
    pipenv.patched.piptools.exceptions.NoCandidateFound: Could not find a version that matches poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
    No versions found
    Was https://pypi.org/simple reachable?
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 764, in <module>
        main()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 758, in main
        _main(parsed.pre, parsed.clear, parsed.verbose, parsed.system, parsed.write,
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 741, in _main
        resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 702, in resolve_packages
        results, resolver = resolve(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 684, in resolve
        return resolve_deps(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1397, in resolve_deps
        results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps
        resolver.resolve()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 835, in resolve
        raise ResolutionFailure(message=str(e))
    pipenv.exceptions.ResolutionFailure: ERROR: Could not find a version that matches poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
    No versions found
    Was https://pypi.org/simple reachable?
    ROUND 1                           
    Current constraints:
      keyrings.google-artifactregistry-auth (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 3))
      poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
      sampleproject (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 4))
    
    Finding the best candidates:
      found candidate keyrings.google-artifactregistry-auth==0.0.3 (constraint was <any>)
    Traceback (most recent call last):
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 825, in resolve
        results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve
        has_changed, best_matches = self._resolve_one_round()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 260, in _resolve_one_round
        best_matches = {self.get_best_match(ireq) for ireq in constraints}
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 260, in <setcomp>
        best_matches = {self.get_best_match(ireq) for ireq in constraints}
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 319, in get_best_match
        best_match = self.repository.find_best_match(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 205, in find_best_match
        raise NoCandidateFound(ireq, all_candidates, self.finder)
    pipenv.patched.piptools.exceptions.NoCandidateFound: Could not find a version that matches poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
    No versions found
    Was https://pypi.org/simple reachable?
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 764, in <module>
        main()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 758, in main
        _main(parsed.pre, parsed.clear, parsed.verbose, parsed.system, parsed.write,
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 741, in _main
        resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 702, in resolve_packages
        results, resolver = resolve(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 684, in resolve
        return resolve_deps(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1397, in resolve_deps
        results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps
        resolver.resolve()
      File "/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv/utils.py", line 835, in resolve
        raise ResolutionFailure(message=str(e))
    pipenv.exceptions.ResolutionFailure: ERROR: Could not find a version that matches poc (from -r /tmp/pipenvbej_ih0orequirements/pipenv-bsbdg8rz-constraints.txt (line 2))
    No versions found
    Was https://pypi.org/simple reachable?
    

    (with-pipenv) ➜ with-pipenv pipenv --support

    $ pipenv --support

    Pipenv version: '2021.5.29'

    Pipenv location: '/home/nathanbudd/.local/lib/python3.8/site-packages/pipenv'

    Python location: '/usr/bin/python3'

    Python installations found:

    • 3.9.5: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn/bin/python3.9
    • 3.9.5: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn/bin/python3
    • 3.9.5: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn/bin/python3.9
    • 3.9.5: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn/bin/python3
    • 3.9.5: /usr/bin/python3.9
    • 3.9.5: /bin/python3.9
    • 3.8.10: /usr/bin/python3.8
    • 3.8.10: /usr/bin/python3
    • 3.8.10: /bin/python3.8
    • 3.8.10: /bin/python3
    • 2.7.18: /usr/bin/python2.7
    • 2.7.18: /usr/bin/python2
    • 2.7.18: /bin/python2.7
    • 2.7.18: /bin/python2

    PEP 508 Information:

    {'implementation_name': 'cpython',
     'implementation_version': '3.8.10',
     'os_name': 'posix',
     'platform_machine': 'x86_64',
     'platform_python_implementation': 'CPython',
     'platform_release': '5.8.0-44-generic',
     'platform_system': 'Linux',
     'platform_version': '#50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021',
     'python_full_version': '3.8.10',
     'python_version': '3.8',
     'sys_platform': 'linux'}
    

    System environment variables:

    • GJS_DEBUG_TOPICS
    • SSH_AUTH_SOCK
    • SESSION_MANAGER
    • GNOME_TERMINAL_SCREEN
    • SSH_AGENT_PID
    • XDG_CURRENT_DESKTOP
    • LANG
    • LANGUAGE
    • DEFAULTS_PATH
    • DISPLAY
    • COLORTERM
    • QT_IM_MODULE
    • GPG_AGENT_INFO
    • DESKTOP_SESSION
    • USER
    • XDG_MENU_PREFIX
    • HOME
    • GJS_DEBUG_OUTPUT
    • DBUS_SESSION_BUS_ADDRESS
    • PWD
    • GTK_MODULES
    • _
    • XDG_CONFIG_DIRS
    • XDG_SESSION_DESKTOP
    • JOURNAL_STREAM
    • WINDOWPATH
    • GNOME_DESKTOP_SESSION_ID
    • MANAGERPID
    • MANDATORY_PATH
    • LOGNAME
    • GNOME_TERMINAL_SERVICE
    • VTE_VERSION
    • PATH
    • XDG_RUNTIME_DIR
    • QT_ACCESSIBILITY
    • XMODIFIERS
    • XDG_SESSION_TYPE
    • GNOME_SHELL_SESSION_MODE
    • USERNAME
    • SHELL
    • INVOCATION_ID
    • SHLVL
    • XAUTHORITY
    • XDG_DATA_DIRS
    • XDG_SESSION_CLASS
    • TERM
    • GDMSESSION
    • IM_CONFIG_PHASE
    • OLDPWD
    • ZSH
    • PAGER
    • LESS
    • LSCOLORS
    • LS_COLORS
    • PIP_DISABLE_PIP_VERSION_CHECK
    • PYTHONDONTWRITEBYTECODE
    • PIP_PYTHON_PATH
    • PIPENV_ACTIVE
    • VIRTUAL_ENV
    • PS1
    • PIP_SHIMS_BASE_MODULE
    • PYTHONFINDER_IGNORE_UNSUPPORTED

    Pipenv–specific environment variables:

    • PIPENV_ACTIVE: 1

    Debug–specific environment variables:

    • PATH: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn/bin:/home/nathanbudd/.poetry/bin:/home/nathanbudd/.local/bin:/home/nathanbudd/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/nathanbudd/.dotnet/tools
    • SHELL: /bin/bash
    • LANG: en_CA.UTF-8
    • PWD: /home/nathanbudd/dev/test/car-python-quickstart/with-pipenv
    • VIRTUAL_ENV: /home/nathanbudd/.local/share/virtualenvs/with-pipenv-l5yzpNOn

    Contents of Pipfile ('/home/nathanbudd/dev/test/car-python-quickstart/with-pipenv/Pipfile'):

    [[source]]
    url = "https://pypi.org/simple"
    verify_ssl = true
    name = "pypi"
    
    [packages]
    "keyrings.google-artifactregistry-auth" = "*"
    sampleproject = {version = "*", index = "https://us-central1-python.pkg.dev/nathan-budd/quickstart-python-repo/simple/"}
    poc = {version = "*", index = "https://us-central1-python.pkg.dev/nathan-budd/quickstart-python-repo/simple/"}
    
    [dev-packages]
    
    [requires]
    python_version = "3.9"
    
    

    Contents of Pipfile.lock ('/home/nathanbudd/dev/test/car-python-quickstart/with-pipenv/Pipfile.lock'):

    {
        "_meta": {
            "hash": {
                "sha256": "dcdd190140ce03cbefcea1fe7b0be58872b0bbd7fb51a4acdfc43c0db9196a1d"
            },
            "pipfile-spec": 6,
            "requires": {
                "python_version": "3.9"
            },
            "sources": [
                {
                    "name": "pypi",
                    "url": "https://pypi.org/simple",
                    "verify_ssl": true
                }
            ]
        },
        "default": {
            "cachetools": {
                "hashes": [
                    "sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693",
                    "sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1"
                ],
                "markers": "python_version ~= '3.5'",
                "version": "==4.2.4"
            },
            "certifi": {
                "hashes": [
                    "sha256:2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee",
                    "sha256:50b1e4f8446b06f41be7dd6338db18e0990601dce795c2b1686458aa7e8fa7d8"
                ],
                "version": "==2021.5.30"
            },
            "cffi": {
                "hashes": [
                    "sha256:06c54a68935738d206570b20da5ef2b6b6d92b38ef3ec45c5422c0ebaf338d4d",
                    "sha256:0c0591bee64e438883b0c92a7bed78f6290d40bf02e54c5bf0978eaf36061771",
                    "sha256:19ca0dbdeda3b2615421d54bef8985f72af6e0c47082a8d26122adac81a95872",
                    "sha256:22b9c3c320171c108e903d61a3723b51e37aaa8c81255b5e7ce102775bd01e2c",
                    "sha256:26bb2549b72708c833f5abe62b756176022a7b9a7f689b571e74c8478ead51dc",
                    "sha256:33791e8a2dc2953f28b8d8d300dde42dd929ac28f974c4b4c6272cb2955cb762",
                    "sha256:3c8d896becff2fa653dc4438b54a5a25a971d1f4110b32bd3068db3722c80202",
                    "sha256:4373612d59c404baeb7cbd788a18b2b2a8331abcc84c3ba40051fcd18b17a4d5",
                    "sha256:487d63e1454627c8e47dd230025780e91869cfba4c753a74fda196a1f6ad6548",
                    "sha256:48916e459c54c4a70e52745639f1db524542140433599e13911b2f329834276a",
                    "sha256:4922cd707b25e623b902c86188aca466d3620892db76c0bdd7b99a3d5e61d35f",
                    "sha256:55af55e32ae468e9946f741a5d51f9896da6b9bf0bbdd326843fec05c730eb20",
                    "sha256:57e555a9feb4a8460415f1aac331a2dc833b1115284f7ded7278b54afc5bd218",
                    "sha256:5d4b68e216fc65e9fe4f524c177b54964af043dde734807586cf5435af84045c",
                    "sha256:64fda793737bc4037521d4899be780534b9aea552eb673b9833b01f945904c2e",
                    "sha256:6d6169cb3c6c2ad50db5b868db6491a790300ade1ed5d1da29289d73bbe40b56",
                    "sha256:7bcac9a2b4fdbed2c16fa5681356d7121ecabf041f18d97ed5b8e0dd38a80224",
                    "sha256:80b06212075346b5546b0417b9f2bf467fea3bfe7352f781ffc05a8ab24ba14a",
                    "sha256:818014c754cd3dba7229c0f5884396264d51ffb87ec86e927ef0be140bfdb0d2",
                    "sha256:8eb687582ed7cd8c4bdbff3df6c0da443eb89c3c72e6e5dcdd9c81729712791a",
                    "sha256:99f27fefe34c37ba9875f224a8f36e31d744d8083e00f520f133cab79ad5e819",
                    "sha256:9f3e33c28cd39d1b655ed1ba7247133b6f7fc16fa16887b120c0c670e35ce346",
                    "sha256:a8661b2ce9694ca01c529bfa204dbb144b275a31685a075ce123f12331be790b",
                    "sha256:a9da7010cec5a12193d1af9872a00888f396aba3dc79186604a09ea3ee7c029e",
                    "sha256:aedb15f0a5a5949ecb129a82b72b19df97bbbca024081ed2ef88bd5c0a610534",
                    "sha256:b315d709717a99f4b27b59b021e6207c64620790ca3e0bde636a6c7f14618abb",
                    "sha256:ba6f2b3f452e150945d58f4badd92310449876c4c954836cfb1803bdd7b422f0",
                    "sha256:c33d18eb6e6bc36f09d793c0dc58b0211fccc6ae5149b808da4a62660678b156",
                    "sha256:c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd",
                    "sha256:c9e005e9bd57bc987764c32a1bee4364c44fdc11a3cc20a40b93b444984f2b87",
                    "sha256:d2ad4d668a5c0645d281dcd17aff2be3212bc109b33814bbb15c4939f44181cc",
                    "sha256:d950695ae4381ecd856bcaf2b1e866720e4ab9a1498cba61c602e56630ca7195",
                    "sha256:e22dcb48709fc51a7b58a927391b23ab37eb3737a98ac4338e2448bef8559b33",
                    "sha256:e8c6a99be100371dbb046880e7a282152aa5d6127ae01783e37662ef73850d8f",
                    "sha256:e9dc245e3ac69c92ee4c167fbdd7428ec1956d4e754223124991ef29eb57a09d",
                    "sha256:eb687a11f0a7a1839719edd80f41e459cc5366857ecbed383ff376c4e3cc6afd",
                    "sha256:eb9e2a346c5238a30a746893f23a9535e700f8192a68c07c0258e7ece6ff3728",
                    "sha256:ed38b924ce794e505647f7c331b22a693bee1538fdf46b0222c4717b42f744e7",
                    "sha256:f0010c6f9d1a4011e429109fda55a225921e3206e7f62a0c22a35344bfd13cca",
                    "sha256:f0c5d1acbfca6ebdd6b1e3eded8d261affb6ddcf2186205518f1428b8569bb99",
                    "sha256:f10afb1004f102c7868ebfe91c28f4a712227fe4cb24974350ace1f90e1febbf",
                    "sha256:f174135f5609428cc6e1b9090f9268f5c8935fddb1b25ccb8255a2d50de6789e",
                    "sha256:f3ebe6e73c319340830a9b2825d32eb6d8475c1dac020b4f0aa774ee3b898d1c",
                    "sha256:f627688813d0a4140153ff532537fbe4afea5a3dffce1f9deb7f91f848a832b5",
                    "sha256:fd4305f86f53dfd8cd3522269ed7fc34856a8ee3709a5e28b2836b2db9d4cd69"
                ],
                "version": "==1.14.6"
            },
            "charset-normalizer": {
                "hashes": [
                    "sha256:5d209c0a931f215cee683b6445e2d77677e7e75e159f78def0db09d68fafcaa6",
                    "sha256:5ec46d183433dcbd0ab716f2d7f29d8dee50505b3fdb40c6b985c7c4f5a3591f"
                ],
                "markers": "python_version >= '3'",
                "version": "==2.0.6"
            },
            "cryptography": {
                "hashes": [
                    "sha256:07bb7fbfb5de0980590ddfc7f13081520def06dc9ed214000ad4372fb4e3c7f6",
                    "sha256:18d90f4711bf63e2fb21e8c8e51ed8189438e6b35a6d996201ebd98a26abbbe6",
                    "sha256:1ed82abf16df40a60942a8c211251ae72858b25b7421ce2497c2eb7a1cee817c",
                    "sha256:22a38e96118a4ce3b97509443feace1d1011d0571fae81fc3ad35f25ba3ea999",
                    "sha256:2d69645f535f4b2c722cfb07a8eab916265545b3475fdb34e0be2f4ee8b0b15e",
                    "sha256:4a2d0e0acc20ede0f06ef7aa58546eee96d2592c00f450c9acb89c5879b61992",
                    "sha256:54b2605e5475944e2213258e0ab8696f4f357a31371e538ef21e8d61c843c28d",
                    "sha256:7075b304cd567694dc692ffc9747f3e9cb393cc4aa4fb7b9f3abd6f5c4e43588",
                    "sha256:7b7ceeff114c31f285528ba8b390d3e9cfa2da17b56f11d366769a807f17cbaa",
                    "sha256:7eba2cebca600a7806b893cb1d541a6e910afa87e97acf2021a22b32da1df52d",
                    "sha256:928185a6d1ccdb816e883f56ebe92e975a262d31cc536429041921f8cb5a62fd",
                    "sha256:9933f28f70d0517686bd7de36166dda42094eac49415459d9bdf5e7df3e0086d",
                    "sha256:a688ebcd08250eab5bb5bca318cc05a8c66de5e4171a65ca51db6bd753ff8953",
                    "sha256:abb5a361d2585bb95012a19ed9b2c8f412c5d723a9836418fab7aaa0243e67d2",
                    "sha256:c10c797ac89c746e488d2ee92bd4abd593615694ee17b2500578b63cad6b93a8",
                    "sha256:ced40344e811d6abba00295ced98c01aecf0c2de39481792d87af4fa58b7b4d6",
                    "sha256:d57e0cdc1b44b6cdf8af1d01807db06886f10177469312fbde8f44ccbb284bc9",
                    "sha256:d99915d6ab265c22873f1b4d6ea5ef462ef797b4140be4c9d8b179915e0985c6",
                    "sha256:eb80e8a1f91e4b7ef8b33041591e6d89b2b8e122d787e87eeb2b08da71bb16ad",
                    "sha256:ebeddd119f526bcf323a89f853afb12e225902a24d29b55fe18dd6fcb2838a76"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==35.0.0"
            },
            "google-auth": {
                "hashes": [
                    "sha256:2a92b485afed5292946b324e91fcbe03db277ee4cb64c998c6cfa66d4af01dee",
                    "sha256:6dc8173abd50f25b6e62fc5b42802c96fc7cd9deb9bfeeb10a79f5606225cdf4"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==2.2.1"
            },
            "idna": {
                "hashes": [
                    "sha256:14475042e284991034cb48e06f6851428fb14c4dc953acd9be9a5e95c7b6dd7a",
                    "sha256:467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"
                ],
                "markers": "python_version >= '3'",
                "version": "==3.2"
            },
            "importlib-metadata": {
                "hashes": [
                    "sha256:b618b6d2d5ffa2f16add5697cf57a46c76a56229b0ed1c438322e4e95645bd15",
                    "sha256:f284b3e11256ad1e5d03ab86bb2ccd6f5339688ff17a4d797a0fe7df326f23b1"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==4.8.1"
            },
            "jeepney": {
                "hashes": [
                    "sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac",
                    "sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f"
                ],
                "markers": "sys_platform == 'linux'",
                "version": "==0.7.1"
            },
            "keyring": {
                "hashes": [
                    "sha256:6334aee6073db2fb1f30892697b1730105b5e9a77ce7e61fca6b435225493efe",
                    "sha256:bd2145a237ed70c8ce72978b497619ddfcae640b6dcf494402d5143e37755c6e"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==23.2.1"
            },
            "keyrings.google-artifactregistry-auth": {
                "hashes": [
                    "sha256:54f69bc1755b1778bfbc62dd6b9a6c872579db2929c010341582043ce6c9db35",
                    "sha256:abbda4133107876a948f5ac8da2513fefa47280ca17be48dc7b0c226175d1922"
                ],
                "index": "pypi",
                "version": "==0.0.3"
            },
            "peppercorn": {
                "hashes": [
                    "sha256:46125cad688a9cf3b08e463bcb797891ee73ece93602a8ea6f14e40d1042d454",
                    "sha256:96d7681d7a04545cfbaf2c6fb66de67b29cfc42421aa263e4c78f2cbb85be4c6"
                ],
                "version": "==0.6"
            },
            "pluggy": {
                "hashes": [
                    "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159",
                    "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==1.0.0"
            },
            "pyasn1": {
                "hashes": [
                    "sha256:014c0e9976956a08139dc0712ae195324a75e142284d5f87f1a87ee1b068a359",
                    "sha256:03840c999ba71680a131cfaee6fab142e1ed9bbd9c693e285cc6aca0d555e576",
                    "sha256:0458773cfe65b153891ac249bcf1b5f8f320b7c2ce462151f8fa74de8934becf",
                    "sha256:08c3c53b75eaa48d71cf8c710312316392ed40899cb34710d092e96745a358b7",
                    "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d",
                    "sha256:5c9414dcfede6e441f7e8f81b43b34e834731003427e5b09e4e00e3172a10f00",
                    "sha256:6e7545f1a61025a4e58bb336952c5061697da694db1cae97b116e9c46abcf7c8",
                    "sha256:78fa6da68ed2727915c4767bb386ab32cdba863caa7dbe473eaae45f9959da86",
                    "sha256:7ab8a544af125fb704feadb008c99a88805126fb525280b2270bb25cc1d78a12",
                    "sha256:99fcc3c8d804d1bc6d9a099921e39d827026409a58f2a720dcdb89374ea0c776",
                    "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba",
                    "sha256:e89bf84b5437b532b0803ba5c9a5e054d21fec423a89952a74f87fa2c9b7bce2",
                    "sha256:fec3e9d8e36808a28efb59b489e4528c10ad0f480e57dcc32b4de5c9d8c9fdf3"
                ],
                "version": "==0.4.8"
            },
            "pyasn1-modules": {
                "hashes": [
                    "sha256:0845a5582f6a02bb3e1bde9ecfc4bfcae6ec3210dd270522fee602365430c3f8",
                    "sha256:0fe1b68d1e486a1ed5473f1302bd991c1611d319bba158e98b106ff86e1d7199",
                    "sha256:15b7c67fabc7fc240d87fb9aabf999cf82311a6d6fb2c70d00d3d0604878c811",
                    "sha256:426edb7a5e8879f1ec54a1864f16b882c2837bfd06eee62f2c982315ee2473ed",
                    "sha256:65cebbaffc913f4fe9e4808735c95ea22d7a7775646ab690518c056784bc21b4",
                    "sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e",
                    "sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74",
                    "sha256:a99324196732f53093a84c4369c996713eb8c89d360a496b599fb1a9c47fc3eb",
                    "sha256:b80486a6c77252ea3a3e9b1e360bc9cf28eaac41263d173c032581ad2f20fe45",
                    "sha256:c29a5e5cc7a3f05926aff34e097e84f8589cd790ce0ed41b67aed6857b26aafd",
                    "sha256:cbac4bc38d117f2a49aeedec4407d23e8866ea4ac27ff2cf7fb3e5b570df19e0",
                    "sha256:f39edd8c4ecaa4556e989147ebf219227e2cd2e8a43c7e7fcb1f1c18c5fd6a3d",
                    "sha256:fe0644d9ab041506b62782e92b06b8c68cca799e1a9636ec398675459e031405"
                ],
                "version": "==0.2.8"
            },
            "pycparser": {
                "hashes": [
                    "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0",
                    "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"
                ],
                "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
                "version": "==2.20"
            },
            "requests": {
                "hashes": [
                    "sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24",
                    "sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
                ],
                "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'",
                "version": "==2.26.0"
            },
            "rsa": {
                "hashes": [
                    "sha256:78f9a9bf4e7be0c5ded4583326e7461e3a3c5aae24073648b4bdfa797d78c9d2",
                    "sha256:9d689e6ca1b3038bc82bf8d23e944b6b6037bc02301a574935b2dd946e0353b9"
                ],
                "markers": "python_version >= '3.5' and python_version < '4'",
                "version": "==4.7.2"
            },
            "sampleproject": {
                "hashes": [
                    "sha256:2b0c55537193b792098977fdb62f0acbaeb2c3cfc56d0e24ccab775201462e04",
                    "sha256:d99de34ffae5515db43916ec47380d3c603e9dead526f96581b48c070cc816d3"
                ],
                "index": "https://us-central1-python.pkg.dev/nathan-budd/quickstart-python-repo/simple/",
                "version": "==2.0.0"
            },
            "secretstorage": {
                "hashes": [
                    "sha256:422d82c36172d88d6a0ed5afdec956514b189ddbfb72fefab0c8a1cee4eaf71f",
                    "sha256:fd666c51a6bf200643495a04abb261f83229dcb6fd8472ec393df7ffc8b6f195"
                ],
                "markers": "sys_platform == 'linux'",
                "version": "==3.3.1"
            },
            "urllib3": {
                "hashes": [
                    "sha256:4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece",
                    "sha256:c4fdf4019605b6e5423637e01bc9fe4daef873709a7973e195ceba0a62bbc844"
                ],
                "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
                "version": "==1.26.7"
            },
            "zipp": {
                "hashes": [
                    "sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832",
                    "sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc"
                ],
                "markers": "python_version >= '3.6'",
                "version": "==3.6.0"
            }
        },
        "develop": {}
    }
    
    
    opened by nibuddg 1
  • [Installer/Shells] Fixes for Windows/pyenv-win

    [Installer/Shells] Fixes for Windows/pyenv-win

    The issue

    • The subprocess_run() call in Installer's _run() needs the argument shell=True on Windows when spawning new shell, or else it errors out.
    • call to choose_shell() was missing non-optional argument, project
    • detect_info(project) no longer member of project

    The fix

    • Added missing args to choose_shell(project)
    • changed out() to stdout() in _iter_installable_versions()
    • change project.detect_info() to detect_info(project)
    • Fixed test tests_install_venv_project_directory to check for virtualenv location accounting for 4 weird preceding characters on windows
    • Fixed test test_requirements_to_pipfile to not use ls -l on windows as its a bash thing and not always available on windows depending on the shell
    opened by awkimball 1
Releases(v2021.5.29)
  • v2021.5.29(May 29, 2021)

  • v2020.11.15(Nov 15, 2020)

  • v2020.11.4(Nov 4, 2020)

  • v2020.8.13(Aug 13, 2020)

    Bug Fixes

    • Fixed behaviour of pipenv uninstall --all-dev. From now on it does not uninstall regular packages. #3722 <https://github.com/pypa/pipenv/issues/3722>_
    • Fix a bug that incorrect Python path will be used when --system flag is on. #4315 <https://github.com/pypa/pipenv/issues/4315>_
    • Fix falsely flagging a Homebrew installed Python as a virtual environment #4316 <https://github.com/pypa/pipenv/issues/4316>_
    • Fix a bug that pipenv uninstall throws an exception that does not exist. #4321 <https://github.com/pypa/pipenv/issues/4321>_
    • Fix a bug that Pipenv can't locate the correct file of special directives in setup.cfg of an editable package. #4335 <https://github.com/pypa/pipenv/issues/4335>_
    • Fix a bug that setup.py can't be parsed correctly when the assignment is type-annotated. #4342 <https://github.com/pypa/pipenv/issues/4342>_
    • Fix a bug that pipenv graph throws an exception that PipenvCmdError(cmd_string, c.out, c.err, return_code). #4388 <https://github.com/pypa/pipenv/issues/4388>_
    • Do not copy the whole directory tree of local file package. #4403 <https://github.com/pypa/pipenv/issues/4403>_
    • Correctly detect whether Pipenv in run under an activated virtualenv. #4412 <https://github.com/pypa/pipenv/issues/4412>_

    Vendored Libraries

    • Update requirementslib to 1.5.12. #4385 <https://github.com/pypa/pipenv/issues/4385>_
      • Update requirements to 1.5.13.
      • Update pip-shims to 0.5.3. #4421 <https://github.com/pypa/pipenv/issues/4421>_
    Source code(tar.gz)
    Source code(zip)
  • v2020.6.2(Jun 2, 2020)

    2020.6.2 (2020-06-02)

    Features & Improvements

    • Pipenv will now detect existing venv and virtualenv based virtual environments more robustly. #4276

    Bug Fixes

    • + signs in URL authentication fragments will no longer be incorrectly replaced with space () characters. #4271
    • Fixed a regression which caused Pipenv to fail when running under /. #4273
    • setup.py files with version variables read from os.environ are now able to be parsed successfully. #4274
    • Fixed 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. #4278
    • Corrected a missing exception import and invalid function call invocations in pipenv.cli.command. #4286
    • Fixed an issue with resolving packages with names defined by function calls in setup.py. #4292
    • Fixed a regression with installing the current directory, or ., inside a venv based virtual environment. #4295
    • Fixed a bug with the discovery of python paths on Windows which could prevent installation of environments during pipenv install. #4296
    • Fixed an issue in the requirementslib AST parser which prevented parsing of setup.py files for dependency metadata. #4298
    • Fix a bug where Pipenv doesn't realize the session is interactive #4305

    Vendored Libraries

    • Updated requirementslib to version 1.5.11. #4292
    • Updated vendored dependencies:
      • pythonfinder: 1.2.2 => 1.2.4
      • requirementslib: 1.5.9 => 1.5.10 #4302
    Source code(tar.gz)
    Source code(zip)
  • v2020.5.28(May 28, 2020)

    2020.5.28 (2020-05-28)

    Features & Improvements

    • pipenv install and pipenv sync will no longer attempt to install satisfied dependencies during installation. #3057, #3506
    • Added support for resolution of direct-url dependencies in setup.py files to respect PEP-508 style URL dependencies. #3148
    • 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. #3298
    • 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). #3316
    • Pipenv will now successfully recursively lock VCS sub-dependencies. #3328
    • Added support for --verbose output to pipenv run. #3348
    • Pipenv 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. #3577
    • Added the ability for Windows users to enable emojis by setting PIPENV_HIDE_EMOJIS=0. #3595
    • Allow overriding PIPENV_INSTALL_TIMEOUT environment variable (in seconds). #3652
    • 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 PIP\_EXISTS\_ACTION=i (ignore existing packages) - great for CI environments, where you need really fast setup. #3738
    • 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. #3763
    • Improved verbose logging output during pipenv lock will now stream output to the console while maintaining a spinner. #3810
    • Added support for automatic python installs via asdf and associated PIPENV_DONT_USE_ASDF environment variable. #4018
    • Pyenv/asdf can now be used whether or not they are available on PATH. Setting PYENV_ROOT/ASDF_DIR in a .env file allows Pipenv to install an interpreter without any shell customizations, so long as pyenv/asdf is installed. #4245
    • Added --key command line parameter for including personal PyUp.io API tokens when running pipenv 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 sync without a Pipfile. #3386
    • Re-enable --help option for pipenv run command. #3844
    • Make sure pipenv lock -r --pypi-mirror {MIRROR_URL} will respect the pypi-mirror in requirements output. #4199

    Bug Fixes

    • Raise PipenvUsageError when [[source]] does not contain url field. #2373
    • Fixed 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 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 $PATH. #2783
    • Dependency resolution now writes hashes for local and remote files to the lockfile. #3053
    • Fixed a bug which prevented pipenv graph from correctly showing all dependencies when running from within pipenv shell. #3071
    • Fixed resolution of direct-url dependencies in setup.py files to respect PEP-508 style URL dependencies. #3148
    • 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. #3298
    • Quote command arguments with carets (^) on Windows to work around unintended shell escapes. #3307
    • Handle 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-packages flag is not recognized. #3351
    • Fix a bug where pipenv --clear is not working #3353
    • Fix unhashable type error during $ pipenv install --selective-upgrade #3384
    • Dependencies with direct PEP508 compliant VCS URLs specified in their install_requires will now be successfully locked during the resolution process. #3396
    • Fixed a keyerror which could occur when locking VCS dependencies in some cases. #3404
    • Fixed a bug that ValidationError is thrown when some fields are missing in source section. #3427
    • Updated the index names in lock file when source name in Pipfile is changed. #3449
    • Fixed an issue which caused pipenv install --help to show duplicate entries for --pre. #3479
    • Fix bug causing [SSL: CERTIFICATE_VERIFY_FAILED] when Pipfile [[source]] has verify_ssl=false and url with custom port. #3502
    • Fix sync --sequential ignoring pip install errors and logs. #3537
    • Fix the issue that lock file can't be created when PIPENV_PIPFILE is not under working directory. #3584
    • Pipenv will no longer inadvertently set editable=True on all vcs dependencies. #3647
    • 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. #3656
    • Fixed a bug which sometimes caused pipenv to fail to respect the --site-packages flag when passed with pipenv install. #3718
    • Normalize the package names to lowercase when comparing used and in-Pipfile packages. #3745
    • pipenv update --outdated will now correctly handle comparisons between pre/post-releases and normal releases. #3766
    • Fixed a KeyError which could occur when pinning outdated VCS dependencies via pipenv lock --keep-outdated. #3768
    • Resolved an issue which caused resolution to fail when encountering poorly formatted python_version markers in setup.py and setup.cfg files. #3786
    • Fix a bug that installation errors are displayed as a list. #3794
    • Update pythonfinder to fix a problem that python.exe will be mistakenly chosen for virtualenv creation under WSL. #3807
    • Fixed several bugs which could prevent editable VCS dependencies from being installed into target environments, even when reporting successful installation. #3809
    • pipenv check --system should find the correct Python interpreter when python does not exist on the system. #3819
    • Resolve the symlinks when the path is absolute. #3842
    • Pass --pre and --clear options to pipenv update --outdated. #3879
    • Fixed 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 check failing due to an invalid API key from pyup.io. #4188
    • Fixed a bug which caused versions from VCS dependencies to be included in Pipfile.lock inadvertently. #4217
    • Fixed a bug which caused pipenv to search non-existent virtual environments for pip when installing using --system. #4220
    • Requires-Python values specifying constraint versions of python starting from 1.x will now be parsed successfully. #4226
    • Fix a bug of pipenv update --outdated that can't print output correctly. #4229
    • 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. #4231
    • Don't fallback to system Python when no matching Python version is found. #4232

    Vendored Libraries

    • Updated pip_shims to support --outdated with new pip versions. #3766

    • Update vendored dependencies and invocations

      • Update vendored and patched dependencies
      • Update patches on piptools, pip, pip-shims, tomlkit
      • Fix invocations of dependencies
      • Fix custom InstallCommand instantiation
      • Update PackageFinder usage
      • Fix Bool stringify attempts from tomlkit
      • 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: 7.0.0 =>7.1.1`
        • click-completion: 0.5.0 =>0.5.1`
        • colorama: 0.3.9 =>0.4.3`
        • contextlib2: (new) =>0.6.0.post1`
        • distlib: 0.2.8 =>0.2.9`
        • funcsigs: (new) =>1.0.2`
        • importlib_metadata 1.3.0 =>1.5.1`
        • importlib-resources: (new) =>1.4.0`
        • idna: 2.7 =>2.9`
        • jinja2: 2.10.0 =>2.11.1`
        • markupsafe: 1.0 =>1.1.1`
        • more-itertools: (new) =>5.0.0`
        • orderedmultidict: (new) =>1.0`
        • packaging: 18.0 =>19.0`
        • parse: 1.9.0 =>1.15.0`
        • pathlib2: 2.3.2 =>2.3.3`
        • pep517: (new) =>0.5.0`
        • pexpect: 4.6.0 =>4.8.0`
        • pip-shims: 0.2.0 =>0.5.1`
        • pipdeptree: 0.13.0 =>0.13.2`
        • pyparsing: 2.2.2 =>2.4.6`
        • python-dotenv: 0.9.1 =>0.10.2`
        • pythonfinder: 1.1.10 =>1.2.2`
        • pytoml: (new) =>0.1.20`
        • requests: 2.20.1 =>2.23.0`
        • requirementslib: 1.3.3 =>1.5.4`
        • scandir: 1.9.0 =>1.10.0`
        • shellingham: 1.2.7 =>1.3.2`
        • six: 1.11.0 =>1.14.0`
        • tomlkit: 0.5.2 =>0.5.11`
        • urllib3: 1.24 =>1.25.8`
        • vistir: 0.3.0 =>0.5.0`
        • yaspin: 0.14.0 =>0.14.3`
        • zipp: 0.6.0
        • Removed vendored dependency cursor. #4169
    • 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 #4188
    • Updated vendored pip => 20.0.2 and pip-tools => 5.0.0. #4215

    • 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 #4226
    • Changed attrs import path in vendored dependencies to always import from pipenv.vendor. #4267

    Improved Documentation

    • Added documenation about variable expansion in Pipfile entries. #2317
    • Consolidate 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-existant) 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 pytest entrypoint. #3759
    • Fix 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_version and python_full_version. #3914
    • Write description for --deploy extension and few extensions differences. #3915
    • More documentation for .env files #4100
    • Updated 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
    Source code(tar.gz)
    Source code(zip)
  • v2020.4.1b2(May 20, 2020)

  • v2020.4.1b1(Apr 29, 2020)

  • v2020.4.1a2(Apr 29, 2020)

  • v2018.11.26(Nov 26, 2018)

    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
    Source code(tar.gz)
    Source code(zip)
  • v2018.10.13(Nov 15, 2018)

    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
    Source code(tar.gz)
    Source code(zip)
  • v2018.11.14(Nov 15, 2018)

    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
    Source code(tar.gz)
    Source code(zip)
  • v2018.10.9(Oct 9, 2018)

    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
    Source code(tar.gz)
    Source code(zip)
  • v2018.7.1(Jul 1, 2018)

    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 [email protected] 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
    Source code(tar.gz)
    Source code(zip)
  • v2018.6.25(Jun 25, 2018)

    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

    Source code(tar.gz)
    Source code(zip)
Owner
Python Packaging Authority
Python Packaging Authority
An installation and dependency system for Python

Pyflow Simple is better than complex - The Zen of Python Pyflow streamlines working with Python projects and files. It's an easy-to-use CLI app with a

David O'Connor 904 Oct 19, 2021
The Python package installer

pip - The Python Package Installer pip is the package installer for Python. You can use pip to install packages from the Python Package Index and othe

Python Packaging Authority 7.5k Oct 23, 2021
A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/

This is a PyPI mirror client according to PEP 381 + PEP 503 http://www.python.org/dev/peps/pep-0381/. bandersnatch >=4.0 supports Linux, MacOSX + Wind

Python Packaging Authority 263 Oct 17, 2021
A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/

This is a PyPI mirror client according to PEP 381 + PEP 503 http://www.python.org/dev/peps/pep-0381/. bandersnatch >=4.0 supports Linux, MacOSX + Wind

Python Packaging Authority 262 Oct 11, 2021
Conan - The open-source C/C++ package manager

Conan Decentralized, open-source (MIT), C/C++ package manager. Homepage: https://conan.io/ Github: https://github.com/conan-io/conan Docs: https://doc

Conan.io 5.3k Oct 22, 2021
The Python Package Index

Warehouse Warehouse is the software that powers PyPI. See our development roadmap, documentation, and architectural overview. Getting Started You can

Python Packaging Authority 2.8k Oct 24, 2021
Install and Run Python Applications in Isolated Environments

pipx — Install and Run Python Applications in Isolated Environments Documentation: https://pipxproject.github.io/pipx/ Source Code: https://github.com

null 4.2k Oct 22, 2021
A Poetry plugin for dynamically extracting the package version.

Poetry Version Plugin A Poetry plugin for dynamically extracting the package version. It can read the version from a file __init__.py with: # __init__

Sebastián Ramírez 148 Oct 9, 2021
pip-run - dynamic dependency loader for Python

pip-run provides on-demand temporary package installation for a single interpreter run. It replaces this series of commands (or their Windows equivale

Jason R. Coombs 61 Oct 2, 2021
OS-agnostic, system-level binary package manager and ecosystem

Conda is a cross-platform, language-agnostic binary package manager. It is the package manager used by Anaconda installations, but it may be used for

Conda 4.3k Oct 23, 2021
OS-agnostic, system-level binary package manager and ecosystem

Conda is a cross-platform, language-agnostic binary package manager. It is the package manager used by Anaconda installations, but it may be used for

Conda 4.3k Oct 16, 2021
The Fast Cross-Platform Package Manager

The Fast Cross-Platform Package Manager part of mamba-org Package Manager mamba Package Server quetz Package Builder boa mamba Mamba is a reimplementa

Mamba 2.3k Oct 24, 2021
[DEPRECATED] YUM package manager

⛔ This project is deprecated. Please use DNF, the successor of YUM. YUM Yum is an automatic updater and installer for rpm-based systems. Included prog

null 94 Aug 5, 2021
Python dependency management and packaging made easy.

Poetry: Dependency Management for Python Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right sta

Poetry 16.8k Oct 24, 2021
Python dependency management and packaging made easy.

Poetry: Dependency Management for Python Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right sta

Poetry 16.8k Oct 22, 2021
A PDM plugin that packs your packages into a zipapp

pdm-packer A PDM plugin that packs your packages into a zipapp Requirements pdm-packer requires Python >=3.7 Installation If you have installed PDM wi

Frost Ming 10 Sep 23, 2021
A flexible package manager that supports multiple versions, configurations, platforms, and compilers.

Spack Spack is a multi-platform package manager that builds and installs multiple versions and configurations of software. It works on Linux, macOS, a

Spack 2.3k Oct 15, 2021
Solaris IPS: Image Packaging System

Solaris Image Packaging System Introduction The image packaging system (IPS) is a software delivery system with interaction with a network repository

Oracle 47 Sep 17, 2021
:package: :fire: Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.

THE PROJECT IS ARCHIVED Forks: https://github.com/orsinium/forks DepHell -- project management for Python. Why it is better than all other tools: Form

DepHell 1.7k Oct 22, 2021