Open nirga opened 9 months ago
@nirga Thanks for checking out Cog! This is something I've also been thinking about.
https://github.com/replicate/cog/issues/1081 and https://github.com/replicate/cog/issues/1082 discuss what this might look like. These are framed by pip-compile
& project.dependencies
, but the same should apply for tool.poetry.dependencies
.
One theory is that Cog should compose with tools like pip-compile
/ poetry
somewhat agnostically:
cog.yaml
or pyproject.toml
Does that track? Or do you see a more direct way to integrate with Poetry and similar tools?
Yes exactly! @mattt Poetry is useful IMO in 2 places here:
torch
but can rely on Poetry to find the right version w.r.t other pacakges.cog
I'm forced to build a docker image every time I want to test out my code.Hi! Just checking out is there any updates?
Right now,
cog
requires either specifying all dependencies in thecog.yaml
file, or importing them fromrequirements.txt
. Many Python apps manage their dependencies with Poetry (us included) and I think being able to specify dependencies directly in apyproject.toml
Poetry-style would be super useful.Haven't looked into
cog
code yet, but I might be open to contributing that.