-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't update specific package only #4818
Comments
@JeanFred thanks man... wow, this has been going on for quite a while and annoying quite a lot of people. I faced this issue long ago but thought I did something wrong, but now that I'm facing it again and nothing I tried seemed to work towards upgrading specific packages, and seeing that the documentation itself tells Pipenv is able to do that with a simple |
I'm running into this issue too; is there a hack to update only one package in the meantime? |
What I sometimes do amounts to something like
Note that even with No idea whether there is a better hack for this :) |
@diogobaeder I followed your steps (assuming you meant pipenv install as pip install wouldn't update the Pipfile or Pipfile.lock) and the latest version of pipenv did not struggle with this. Please see my output below:
|
@diogobaeder @JeanFred @caerulescens Could any of you help me determine if this is still an active issue in |
@matteius indeed, doesn't seem like an issue anymore - at least not in |
Sorry, just some more info showing that it works just fine with a simple install command:
|
Any updates? Thanks |
I closed the issue on the report by @diogobaeder that it is fixed on the latest versions of pipenv. |
@matteius not really fixed. |
Hmm, this one seems to work fine:
It only updates |
It was fixed by the refactor of the update and addition of the upgrade command. It will include required subdependencies to be consistent, we will not support updating a single lock file entry when it requires additional dependents. |
@matteius But I'm not fine with some pretty common stuff that cannot be updated.
Now running: |
Upgrade only locks so what is the flag lock only? Why are you ignoring the Pipfile? |
Because it's a module. I.e. module dependencies are defined in
|
@pkit I could not reproduce, it upgraded docker to 6.1.0 for me -- in the |
@matteius yup, you're right. I was checking with |
@pkit Cool -- and you may want to double check/help me check |
@matteius I did found something, do you want a new report or we just continue here?
Suddenly downgraded
I can open a new issue for that one, if needed |
@pkit New issue report with as much details as possible please -- that way people from 2021 don't keep getting pinged :-) |
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
I've tried with multiple approaches to update a specific package from my Pipfile, but it doesn't work - pipenv either updates all packages, or none of them. I tried updating with
pipenv install 'the-package==version'
, triedpipenv update 'the-package==version'
, tried to add--selective-upgrade
, tried to add--keep-outdated
, and none of these approaches updates that single specific package.Expected result
I expect pipenv to just update the package I want to update.
Actual result
Either none of the packages are updated, or all of them are updated. Never the specific package.
Steps to replicate
pip install 'pyyaml<6' 'django<3'
$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/usr/lib/python3.9/site-packages/pipenv'
Python location:
'/usr/bin/python'
Python installations found:
3.9.7
:/usr/bin/python3.9
3.9.7
:/usr/bin/python3
3.8.12
:/usr/bin/python3.8
3.7.10
:/usr/bin/pypy3
3.6.15
:/usr/bin/python3.6
3.6.15
:/usr/bin/python3.6m
3.5.10
:/usr/bin/python3.5
3.5.10
:/usr/bin/python3.5m
2.7.18
:/usr/bin/python2
2.7.18
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
COLORTERM
CSF_MDTVTexturesDirectory
NVM_INC
HISTCONTROL
XDG_MENU_PREFIX
CSF_DrawPluginDefaults
TERMINATOR_DBUS_PATH
PYTHONHASHSEED
CSF_LANGUAGE
SSH_AUTH_SOCK
CSF_MIGRATION_TYPES
GRADLE_HOME
MONGO_HOME
TERMINATOR_UUID
XMODIFIERS
DESKTOP_SESSION
VELOCIRAPTOR_URL
CSF_OCCTResourcePath
DISTCC_HOSTS
CSF_STEPDefaults
EDITOR
PWD
XDG_SESSION_DESKTOP
LOGNAME
XDG_SESSION_TYPE
DRAWHOME
SYSTEMD_EXEC_PID
XAUTHORITY
CSF_StandardLiteDefaults
MOTD_SHOWN
GDM_LANG
VIRTUALENVWRAPPER_SCRIPT
INSTACLEAN_CLIENT_SECRET
HOME
USERNAME
LANG
XDG_CURRENT_DESKTOP
HADOOP_PID_DIR
VTE_VERSION
WAYLAND_DISPLAY
INSTACLEAN_CLIENT_ID
VIRTUALENVWRAPPER_WORKON_CD
VIRTUAL_ENV_DISABLE_PROMPT
FBUSER
INVOCATION_ID
TERMINATOR_DBUS_NAME
FBURL
MANAGERPID
GOROOT
HADOOP_SLAVES
CSF_ShadersDirectory
CSF_EXCEPTION_PROMPT
CSF_XmlOcafResource
NVM_DIR
WORKON_HOME
GNOME_SETUP_DISPLAY
CSF_SHMessage
GEM_PATH
XDG_SESSION_CLASS
IBUS_DISABLE_SNOOPER
TERM
HADOOP_CONF_DIR
USER
CSF_StandardDefaults
CSF_IGESDefaults
VIRTUALENVWRAPPER_PROJECT_FILENAME
DISPLAY
CSF_XCAFDefaults
SHLVL
NVM_CD_FLAGS
VELOCIRAPTOR_AUTH_DOMAIN
SKIP_JVM_TESTS
PAGER
SPARK_HOME
QT_IM_MODULE
DESKTOP_AUTOSTART_ID
CSF_PluginDefaults
BIXMODEL_TEST_DB
CSF_TObjMessage
KUBECONFIG
CASROOT
MOZ_PLUGIN_PATH
XDG_RUNTIME_DIR
MKLROOT
KUBE_EDITOR
SOUP_NTLM_AUTH_DEBUG
JOURNAL_STREAM
CSF_XSMessage
MMGT_CLEAR
XDG_DATA_DIRS
FBTOKEN
PATH
CARGOPATH
CSF_TObjDefaults
__avn_active_file
VIRTUALENVWRAPPER_HOOK_DIR
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
HG
NVM_BIN
MAIL
SITE_PACKAGES
DRAWDEFAULT
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
YG_DEV
HADOOP_LOG_DIR
GOPATH
_
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/lib/distcc/bin/:/home/diogobaeder/.nvm/versions/node/v10.15.3/bin:/home/diogobaeder/.config/composer/vendor/bin:/home/diogobaeder/bin:/home/diogobaeder/.avn/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/go/bin:/home/diogobaeder/go/bin:/home/diogobaeder/.cargo/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:pt_BR.utf8
PWD
:/home/diogobaeder/yougov/ygcustomers
Contents of
Pipfile
('/home/diogobaeder/yougov/ygcustomers/Pipfile'):Contents of
Pipfile.lock
('/home/diogobaeder/yougov/ygcustomers/Pipfile.lock'):The text was updated successfully, but these errors were encountered: