Boring Python: dependency management (2022)

In this web content, the author discusses the concept of “boring” Python development, which refers to reducing surprises and bugs in the tools and processes used to build, manage, and deploy Python applications. The author explains the three basic aspects of packaging in Python: producing distributable artifacts, using those artifacts to reproduce code elsewhere, and working with multiple projects with conflicting dependencies. The author recommends sticking to the default tools in Python packaging, namely setuptools, pip, and virtual environments, as they have been around for a long time and are reliable and well-understood. The author also provides recommendations on managing dependencies using requirements files and ensuring a reproducible environment using hashes. The content ends with instructions on how to invoke the tools and the importance of working in a virtual environment.

https://www.b-list.org/weblog/2022/may/13/boring-python-dependencies/

To top