Managing Python Dependencies with Poetry

Dependency management and packaging with Poetry

Giorgos Myrianthous
Towards Data Science

Photo by Daniel K Cheung on Unsplash

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Towards Data Science

Your home for data science and AI. The world’s leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.

Written by Giorgos Myrianthous

I strive to build data-intensive systems that are not only functional, but also scalable, cost effective and maintainable over the long term.

Responses (3)

What are your thoughts?