mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #3175 from jxltom/continue-respect-skip-lock-in-uninstall
Continue respect skip lock in uninstall
This commit is contained in:
@@ -353,7 +353,6 @@ def uninstall_options(f):
|
||||
def lock_options(f):
|
||||
f = install_base_options(f)
|
||||
f = requirements_flag(f)
|
||||
f = skip_lock_option(f)
|
||||
f = pre_option(f)
|
||||
return f
|
||||
|
||||
|
||||
@@ -2099,18 +2099,6 @@ def do_uninstall(
|
||||
crayons.normal(fix_utf8("Un-installing all packages from virtualenv…"), bold=True)
|
||||
)
|
||||
do_purge(allow_global=system)
|
||||
removed = package_names - bad_pkgs
|
||||
if pipfile_remove:
|
||||
project.remove_packages_from_pipfile(removed)
|
||||
if lock:
|
||||
do_lock(system=system, keep_outdated=keep_outdated, pypi_mirror=pypi_mirror)
|
||||
else:
|
||||
lockfile = project.get_or_create_lockfile()
|
||||
for key in lockfile.default.keys():
|
||||
del lockfile.default[key]
|
||||
for key in lockfile.develop.keys():
|
||||
del lockfile.develop[key]
|
||||
lockfile.write()
|
||||
return
|
||||
if all_dev:
|
||||
package_names = develop
|
||||
|
||||
Reference in New Issue
Block a user