Managing Dependencies

Learn how to best manage dependencies in Python softwares, and what considerations to take into account regarding them.

The software is delivered to production by following a development pipeline. This starts in a first environment, then the tests run on it (integration, acceptance, and so on), and then through continuous integration and continuous deployment, it moves through the different stages of the pipeline (for example, if we have a beta testing environment, or preproduction before it ultimately reaches production).

Docker is great at ensuring the exact same image is moved along the pipeline, but there's no guarantee that if we run the same version of the code (the same git commit, let's say) again through the pipeline, we'll get the same results. That work is on us, and it's what we're exploring in this lesson.

Adding dependencies in setup.py

Let's say the setup.py file of our web package looks like this:

Get hands-on with 1200+ tech skills courses.