mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fixes pipenv lock nondeterminism with environment markers (#5299)
* Fixes pipenv lock nondeterminism with environment markers
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Sorting ``constraints`` before resolving, which fixes ``pipenv lock`` generates nondeterminism environment markers.
|
||||
@@ -647,6 +647,7 @@ class Resolver:
|
||||
# Only use default_constraints when installing dev-packages
|
||||
if self.dev:
|
||||
self._constraints += self.default_constraints
|
||||
self._constraints.sort(key=lambda ireq: ireq.name)
|
||||
return self._constraints
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
||||
Reference in New Issue
Block a user