Skip to content

Commit

Permalink
Handle pre flag
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Jan 22, 2024
1 parent d5f9f1f commit 2397b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def uninstall(ctx, state, all_dev=False, all=False, **kwargs):
"""Uninstalls a provided package and removes it from Pipfile."""
from pipenv.routines.uninstall import do_uninstall

pre = state.installstate.pre

retcode = do_uninstall(
state.project,
packages=state.installstate.packages,
Expand All @@ -293,6 +295,7 @@ def uninstall(ctx, state, all_dev=False, all=False, **kwargs):
lock=False,
all_dev=all_dev,
all=all,
pre=pre,
pypi_mirror=state.pypi_mirror,
categories=state.installstate.categories,
ctx=ctx,
Expand Down
3 changes: 2 additions & 1 deletion pipenv/routines/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def do_uninstall(
lock=False,
all_dev=False,
all=False,
pre=False,
pypi_mirror=None,
ctx=None,
categories=None,
Expand Down Expand Up @@ -128,7 +129,7 @@ def do_uninstall(
project=project,
lockfile={},
category=pipfile_category,
pre=False, # TODO Handle pre-releases here
pre=pre,
allow_global=system,
pypi_mirror=pypi_mirror,
)
Expand Down

0 comments on commit 2397b7d

Please sign in to comment.