Deploying Poetry project on replit

Question:

How do I deploy a poetry project? Is there an example of configs that work for deploying poetry?

My .replit file is:

run = "python api.py"

hidden = [".pythonlibs"]

[nix]
channel = "stable-23_05"

[deployment]
run = ["sh", "-c", "python api.py"]

And I have a replit.nix file that installs python 3.10. I also have a pyproject.toml, which gets detected and installed on replit. But I don’t think its being installed on deployment as it says some packages I have installed are not found.

How do I deploy a python poetry app on replit and properly install the packages?

Hey @sweep!

Have you tried deploying the project as it is? Do you see any logs or errors when the Deployment starts or is in the deployment phase?