I am looking for, but not finding the guide for De...
# general
n
I am looking for, but not finding the guide for Dependency caching in Pulumi Deployments with python, all I see is the blog announcement and a generic doc But I'm sure there was a page describing how do actually do it, which states that
uv
or
pip
are supported but
poetry
isn't; that's the page I'm not finding..
f
hm yes, afaik
poetry
is not supported with Dependency Caching today... I will look into updating the docs here
alright update in progress, thanks for pointing this out! https://github.com/pulumi/docs/pull/19582 are you using
poetry
today @nice-toothbrush-68985? is the workaround "good enough" or you'd like to see something else?
n
Yes, we are most familiar with poetry, but, for pulumi python code, we already opted to use
uv
for the entire IaC repo, but aside from IaC repo, we do CD purely with pulumi, so in the CD repo, I began with poetry, and never changed to
uv
I'm trying to optimize our CD-deployment times and noticed that the deployment dependency stage was taking up to 1/2 a minute, so I was looking for the doc I know I read in the past about
uv
support but couldn't find it..
I feel like I'm having a Déjà vu 🚪🐈🧱
f
🤣 I do feel like we had a
poetry
callout somewhere as well but couldn't find anything... maybe it was there at one point and we aren't collectively making things up 😄
😄 1
n
unfortunately, changing from poetry to uv didn't speed up my deployments all that much, only 5 seconds! 😢 Screenshots are Cached UV vs Uncached poetry.
With Poetry, the Download dependencies phase took 30s, but with uv cache a similar timespan is now spent on cache restore & decompressing 🗜️
⚖️ 1