In this post, we cover a pattern for automatically generating a
requirements.txt file that has the latest
compatible versions of required software, and that specifies the full and exact version of each package to
make the Python environment reproducible.
This will turn a requirements input file (called
requirements.txt.in for example) that looks like
into a requirements file that specifies the exact version of
numpy and all dependencies, like