ermalgashi / blog-project

0 stars 0 forks source link

Dependecy Managment #3

Open ermalgashi opened 2 years ago

ermalgashi commented 2 years ago

Do we use "pip freeze > requirement_file.txt" or do we use the "Python Poetry", what are the advantages and disadvantages for the both methods.

mekhami commented 2 years ago

What do you think the advantages and disadvantages are here? For a first project, it may be wiser to skip Poetry and just use a requirements.txt file, to keep things simple. We can add poetry on another project. But check out poetry, do a little research, and let me know what you think the advantages are!

ermalgashi commented 2 years ago

One of the great advantages of Python Poetry, after having configured the project it is very easy to manage the project and publish it in PyPi. As far as I can understand it also has the ability to lock the build and allows for others to reproduce the build using the same version of the packages!? It also separates Dev dependencies from the project dependencies. Poetry installs packages asynchronously so when installing a new package on the project it installs faster. It is more robust after having it set up.