Ubuntu 17.04, Python 3.5.3, pipenv 9.0.1
pipenv lock -r
returns the exact same output when given the same Pipfile and Pipfile.lock.
pipenv lock -r
randomly reorders lines on each run. This becomes a problem when combined with pipenv lock -r > requirements.txt
and version control, as it chances requirements.txt
even if there is no actual change.
Create a project with Pipfile and Pipfile.lock (mine for reference). Run pipenv lock -r
.
A possible workaround is pipenv lock -r | sort
.
@kennethreitz Why was this closed?
send a pull request if you want to fix it!
While not a real solution to the problem, why not generate requirements.txt
on the fly when you need it? In fact, I would argue that you shouldn't commit it since at best it just duplicates whatever is in Pipfile and at worst they would differ because someone forgot to do pipenv lock -r > requirements.txt
.