GCP Functions Framework for Python - Necessary to include in requirements.txt?

263 Views Asked by At

When creating a function to run on GCP Cloud Functions, do you need to include the functions framework for Python as a requirement in your requirements.txt file?

The official repository suggests that you don't:

On Cloud Functions, using the Functions Framework is not necessary: you don't need to add it to your requirements.txt file.

But the official documentation suggests that you do:

Your requirements.txt file must include the Functions Framework for Python as a dependency

0

There are 0 best solutions below