Question

App Platform: Python Poetry Support?

Posted July 15, 2021 377 views
PythonDigitalOcean App PlatformFlask

I set up a simple Flask app using App Platform and love how easy it was! As my project evolves, I want to manage the requirements in a more controlled fashion and prefer to use Poetry with a pyproject.toml file to do so. Is there any way to use App Platform with that instead of a requirements.txt file? If not, would this be anywhere on the roadmap for Python App Platform support?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hey there!

We don’t currently support Poetry in app platform for the Python build-pack, but it could be added as our build-packs expand. Currently the Python build supports: requirements.txt, Pipfile and setup.py for app detection. However you may be able to use Poetry now by using a Dockerfile build rather then the Python build.