Managing Python Dependencies with Poetry
Dependency management and packaging with Poetry
Dependency management is among the most fundamental aspects of Python projects. It can soon turn into a nightmare especially when a package is maintained by many developers. It is therefore quite important to make use of the right tools that could eventually help the maintainers of a project to handle dependencies the right way.
The concept of dependency management also involves package upgrades — just because you’ve specified a pin doesn’t mean that you are going to ignore the updates.
In today’s article we will be discussing about poetry — a dependency management tool that can help you handle dependencies. Additionally, we will also discuss about tools such as Dependabot that are used for automating dependency updates.
Subscribe to Data Pipeline, a newsletter dedicated to Data Engineering
Why it’s important to pin your dependencies
First of all, let me highlight the fact that dependencies must be pinned. Always. Yes, even working on proof-of-concepts. And yes, even if you are the only one working on a project.
Pinned dependencies will let maintainers (or even other packages that may be using your package as a…