Does Google App Engine Flex support Pipfile?

旧巷老猫 提交于 2020-12-10 04:30:29

问题


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.


回答1:


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.txt file.

and https://cloud.google.com/appengine/docs/standard/python3/runtime#dependencies says:

Dependency specification using the Pipfile/Pipfile.lock standard is currently not supported and your project must not have these files present.




回答2:


You can just include Pipfile and Pipfile.lock in the .gcloudignore file and run pip freeze > requirements.txt after any library changes.




回答3:


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.



来源:https://stackoverflow.com/questions/58546089/does-google-app-engine-flex-support-pipfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!