From the course: Managing Python Projects

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Production vs. development

Production vs. development - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

Production vs. development

- [Instructor] You might have dependencies that are used only in development. Test with Splinter is another. For example, our project might rely on pandas 0.25 and requests 2.22.0. However, in development, we need all of these, plus flake8 and pytest. The common practice is to have separate requirements file. One for production and another one for development. So requirements.txt is the one for production and dev-requirements.txt will be the one for development. Another issue is that depending on the operating system, you might need different packages. The common practice here is to specify only top-level dependencies and let the people decide what you need. For example, when installed pandas, people install pandas dependencies as well. Some people like to have the sub-dependencies in the requirements file as well. I prefer to have only top-level ones. Some package managers, such as Poetry and Pipenv, have different…

Contents