This guide is still good for poetry, but I found that uv is faster and easier to setup than poetry. In fact, the section I wrote is much simpler
you can see the source here