question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading a dependency with --selective-upgrade doesn't seem to work with 2018.6.25

See original GitHub issue

Running using the latest release (2018.6.25), selective upgrades don’t appear to work as expected. (If I’m doing something wrong, please let me know 😃 )

This was originally filed as #2410 but was closed out because it was thought to have been fixed in the latest release.

/home/madams/.local/venvs/pipenv/bin/python -m ‘pipenv.help’

$ python -m pipenv.help output

Pipenv version: '2018.6.25'

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

Python location: '/home/madams/.local/venvs/pipenv/bin/python'

Other Python installations in PATH:

  • 2.7: /usr/bin/python2.7

  • 2.7: /usr/bin/python2.7

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

  • 3.6: /usr/bin/python3.6

  • 2.7.15: /usr/bin/python

  • 2.7.15: /usr/bin/python2

  • 3.6.5: /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.15.0-23-generic',
 'platform_system': 'Linux',
 'platform_version': '#25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018',
 'python_full_version': '2.7.14',
 'python_version': '2.7',
 'sys_platform': 'linux2'}

System environment variables:

  • GOPATH
  • PYPI_PASSWORD
  • IM_CONFIG_PHASE
  • LESS
  • QT4_IM_MODULE
  • GJS_DEBUG_OUTPUT
  • PROJECT_HOME
  • LC_CTYPE
  • WINDOWPATH
  • XDG_CURRENT_DESKTOP
  • XDG_SESSION_TYPE
  • TERM_PROGRAM_VERSION
  • QT_IM_MODULE
  • LOGNAME
  • USER
  • PATH
  • XDG_VTNR
  • HOME
  • VSCODE_IPC_HOOK
  • VIRTUALENVWRAPPER_SCRIPT
  • ZSH
  • DISPLAY
  • XDG_SESSION_DESKTOP
  • LANG
  • TERM
  • VIRTUALENVWRAPPER_WORKON_CD
  • XAUTHORITY
  • SESSION_MANAGER
  • XDG_DATA_DIRS
  • DEBFULLNAME
  • MANDATORY_PATH
  • QT_ACCESSIBILITY
  • GNOME_DESKTOP_SESSION_ID
  • CLUTTER_IM_MODULE
  • TEXTDOMAIN
  • GNOME_TERMINAL_SERVICE
  • EDITOR
  • XMODIFIERS
  • GPG_AGENT_INFO
  • VSCODE_NLS_CONFIG
  • USERNAME
  • WORKON_HOME
  • GTK_IM_MODULE
  • VSCODE_CLI
  • XDG_RUNTIME_DIR
  • VIRTUALENVWRAPPER_PROJECT_FILENAME
  • ELECTRON_NO_ATTACH_CONSOLE
  • SSH_AUTH_SOCK
  • VTE_VERSION
  • GDMSESSION
  • KRB5CCNAME
  • TEXTDOMAINDIR
  • GNOME_SHELL_SESSION_MODE
  • SHELL
  • PIP_PYTHON_PATH
  • PYTHONDONTWRITEBYTECODE
  • TERM_PROGRAM
  • XDG_SESSION_ID
  • DBUS_SESSION_BUS_ADDRESS
  • _
  • DEFAULTS_PATH
  • ATOM_REPOS_HOME
  • DESKTOP_SESSION
  • LSCOLORS
  • XDG_CONFIG_DIRS
  • VIRTUALENVWRAPPER_HOOK_DIR
  • VSCODE_NODE_CACHED_DATA_DIR_5546
  • XDG_SEAT
  • VSCODE_NODE_CACHED_DATA_DIR_29546
  • OLDPWD
  • DEBEMAIL
  • GTK_MODULES
  • SHLVL
  • PWD
  • PYPI_USERNAME
  • COLORTERM
  • CHROME_DESKTOP
  • GSM_SKIP_SSH_AGENT_WORKAROUND
  • XDG_MENU_PREFIX
  • LS_COLORS
  • PAGER
  • GJS_DEBUG_TOPICS
  • GNOME_TERMINAL_SCREEN

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: ./node_modules/.bin:/home/madams/.cargo/bin:/usr/local/go/bin:./node_modules/.bin:/home/madams/.cargo/bin:/usr/local/go/bin:./node_modules/.bin:/home/madams/.cargo/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/madams/dev/go/bin:/usr/lib/scala/bin:/home/madams/.rvm/bin:/opt/node/bin:/home/madams/.local/bin:/home/madams/dev/go/bin:/usr/lib/scala/bin:/home/madams/.rvm/bin:/opt/node/bin:/home/madams/.local/bin:/home/madams/dev/go/bin:/usr/lib/scala/bin:/home/madams/.rvm/bin:/opt/node/bin:/home/madams/.local/bin
  • SHELL: /usr/bin/zsh
  • EDITOR: vim
  • LANG: en_US.UTF-8
  • PWD: /home/madams/dev/pipenv-selective-upgrade-test

Contents of Pipfile (‘/home/madams/dev/pipenv-selective-upgrade-test/Pipfile’):

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]

[packages]
arrow = "*"
requests = "*"

[requires]
python_version = "3.6"

Contents of Pipfile.lock (‘/home/madams/dev/pipenv-selective-upgrade-test/Pipfile.lock’):

{
    "_meta": {
        "hash": {
            "sha256": "0315ef9be6d34b575d5d8214db33cd0167cdd98c08b5a7b1fea08ed32ffe220f"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.6"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "arrow": {
            "hashes": [
                "sha256:c266f0db8f7aeb79764ce3c0aca6cb88978cfd27bfb9fb7588405b5ed331fd3e"
            ],
            "index": "pypi",
            "version": "==0.9.0"
        },
        "certifi": {
            "hashes": [
                "sha256:13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7",
                "sha256:9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0"
            ],
            "version": "==2018.4.16"
        },
        "chardet": {
            "hashes": [
                "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
                "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
            ],
            "version": "==3.0.4"
        },
        "idna": {
            "hashes": [
                "sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e",
                "sha256:684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"
            ],
            "version": "==2.7"
        },
        "python-dateutil": {
            "hashes": [
                "sha256:1adb80e7a782c12e52ef9a8182bebeb73f1d7e24e374397af06fb4956c8dc5c0",
                "sha256:e27001de32f627c22380a688bcc43ce83504a7bc5da472209b4c70f02829f0b8"
            ],
            "version": "==2.7.3"
        },
        "requests": {
            "hashes": [
                "sha256:421cfc8d9dde7d6aff68196420afd86b88c65d77d8da9cf83f4ecad785d7b9d6",
                "sha256:cc408268d0e21589bcc2b2c248e42932b8c4d112f499c12c92e99e2178a6134c"
            ],
            "index": "pypi",
            "version": "==2.19.0"
        },
        "six": {
            "hashes": [
                "sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
                "sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
            ],
            "version": "==1.11.0"
        },
        "urllib3": {
            "hashes": [
                "sha256:a68ac5e15e76e7e5dd2b8f94007233e01effe3e50e8daddf69acfd81cb686baf",
                "sha256:b5725a0bd4ba422ab0e66e89e030c806576753ea3ee08554382c14e685d117b5"
            ],
            "version": "==1.23"
        }
    },
    "develop": {}
}


Expected result

If I run pipenv install --selective-upgrade requests, I expect the lockfile to be updated to requests==2.19.1 and the new version to be installed in the virtualenv.

Actual result

The lockfile is not updated and the new version of requests is not installed.

Steps to replicate
  1. Clone https://github.com/mark-adams/pipenv-selective-upgrade-test
  2. Run pipenv install
  3. Run pipenv install --selective-upgrade requests

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:25
  • Comments:38 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
tobias-hdcommented, Jul 13, 2018

I’m having the same issue with v2018.7.1.

Actually I don’t get so far what is the recommended command to update a single package. Either pipenv install --selective-upgrade requests, or pipenv update requests, as proposed here: example-pipenv-upgrade-workflow

Both ways do not work currently; they seem to update everything.

10reactions
mark-adamscommented, Jul 13, 2018

Hi @techalchemy, is there a fix for this available yet? Any way I can help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade all Python packages with pip? - Stack Overflow
Use Python, to parse the json output: pip --disable-pip-version-check ... It also selectively upgrades packages that don't break change.
Read more >
apt - "The following packages have been kept back:" Why and ...
Cautious solution 1: Per Pablo's answer, you can run sudo apt-get --with-new-pkgs upgrade , and it will install the kept-back packages.
Read more >
Step-by-Step Guide to Updating Your npm Dependencies with ...
For instance, yarn upgrade-interactive doesn't work for upgrading dependencies that are not in the root-level package.json file inside a Lerna ...
Read more >
Release and Version History — pipenv 2022.12.20.dev0 ...
Drop distlib, colorama and platformdirs - use the ones from pip. ... Update pipenv docs for with example for callabale package functions in...
Read more >
pnpm update
pnpm update updates packages to their latest version based on the specified range. ... You can use patterns to update specific dependencies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found