By raaid
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Is there any plan to change this? the pyproject.toml file was introduced in 2016 in PEP 518 and it just seems silly that this isn’t an option yet.
A little late, but for future users - You can add a custom build step in your component’s settings:
poetry config virtualenvs.create false
poetry install
Make sure to keep poetry in your requirements.txt, and besides that use pyproject.toml/poetry.lock as usual.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.