61

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?

BuZZ-dEE
  • 4,936
  • 10
  • 57
  • 84
Julien Le Coupanec
  • 7,195
  • 6
  • 47
  • 60

1 Answers1

80

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

Al Sweigart
  • 9,509
  • 9
  • 59
  • 85
wiesson
  • 5,839
  • 4
  • 36
  • 61