Skip to content

Commit c81b165

Browse files
authored
Merge pull request #4652 from nid5/4642-fix
4642 fix pipenv lock --pre doesn't include prerelease dependencies
2 parents 66713a7 + 79fe5a7 commit c81b165

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

news/4642.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix bug preventing use of pipenv lock --pre

pipenv/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ def prepare_pip_args(self, use_pep517=False, build_isolation=True):
705705
pip_args.append("--no-use-pep517")
706706
if build_isolation is False:
707707
pip_args.append("--no-build-isolation")
708+
if self.pre:
709+
pip_args.append("--pre")
708710
pip_args.extend(["--cache-dir", environments.PIPENV_CACHE_DIR])
709711
return pip_args
710712

0 commit comments

Comments
 (0)