For App Engine Standard the explicitly state that they do not support Pipfiles and immediately block you from pushing your project if it contains a Pipfile. In searching the documentation, I don't see anything that mentions if Pipfile is supported or not for App Engine Flex.
The main App Engine page states "Application code written for the Python environment must be written exclusively in Python. Extensions written in the C language are not supported."
Features. Customizable infrastructure - App Engine flexible environment instances are Compute Engine virtual machines, which means that you can take advantage of custom libraries, use SSH for debugging, and deploy your own Docker containers.
Custom Runtimes and Containers Haskell, Google App Engine provides support for Custom Runtimes in the GAE flexible environment.
App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.
Based on Compute Engine, the App Engine flexible environment automatically scales your app up and down while also balancing the load. You can customize these runtimes or provide your own runtime by supplying a custom Docker image or Dockerfile from the open source community.
A Shared VPC Admin needs to create a firewall rule in the Shared VPC host project in order to allow traffic to the App Engine flexible environment on the Shared VPC network. The firewall rule allows serving and health check traffic to flexible environment instances.
Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while balancing the load. Microservices, authorization, SQL and NoSQL databases, traffic splitting, logging, versioning, security scanning, and content delivery networks are all supported natively.
App Engine allows developers to focus on doing what they do best, writing code. Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while balancing the load.
You can just include Pipfile and Pipfile.lock in the .gcloudignore file and run pip freeze > requirements.txt after any library changes.
App Engine Flexible (and App Engine Standard) do not support Pipfile/Pipfile.lock.
https://cloud.google.com/appengine/docs/flexible/python/using-python-libraries says:
Dependencies for python applications are declared in a standard
requirements.txtfile.
and https://cloud.google.com/appengine/docs/standard/python3/runtime#dependencies says:
Dependency specification using the
Pipfile/Pipfile.lockstandard is currently not supported and your project must not have these files present.
I ran a few tests, and, while the presence of a Pipfile file in the deployment directory of a GAE flexible app does not generate any errors, the file itself is completely ignored, along the dependencies specified in it.
Moreover, when attempting to replace the requirements.txt file with the Pipfile, a sample Python app deployment in the flexible environment errors out, asking for the gunicorn dependency which I had specified in the Pipfile instead.
Therefore, the short answer is unfortunately no, same applies for the flexible environment and thus, dependency specification using the Pipfile/Pipfile.lock standard is not supported at the moment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With