Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - Should Pipfile.lock be committed to version control?

Tags:

python

pip

pipenv

When two developers are working on a project with different operating systems, the Pipfile.lock is different (especially the part inside host-environment-markers).

For PHP, most people recommend to commit composer.lock file.

Do we have to do the same for Python?

like image 815
Julien Le Coupanec Avatar asked Sep 18 '17 11:09

Julien Le Coupanec


1 Answers

Short - Yes!

The lock file tells pipenv exactly which version of each dependency needs to be installed. You will have consistency across all machines.

// update: Same question on github

like image 89
wiesson Avatar answered Sep 17 '22 15:09

wiesson