After programming a good 2 months in #python finally found the tool #poetry which is quite similar to how #nodejs bundles libraries into a directory either locally or globally in the cache directory.
I have tried the other tools from #pyenv to #venv and/or #virtualenv. Where I thought they were used to deal with library dependency management only to realize that they are more like #nvm.
I did use #conda for some time, though preferred a python only solution. I do realize that poetry won't resolve all issues and might need to look into to containerization later on, though for the time period it looks like a good solution.
@TamsynUlthara no, didn't know of its existence. It feels like bun for javascript.
@barefootstache Yeah the #Python ecosystem has a bunch of options for development tools that do various things. pyenv, venv, and virtualenv in particular are not at all meant to do the same thing as Poetry. The closest equivalents to Poetry are things like hatch, flit, and pdm, and kind of uv as well, although it's a little complicated because Poetry does several different things and I don't believe any of those tools are an exact equivalent for all of the things Poetry does.
You might find this an interesting read: https://alpopkes.com/posts/python/packaging_tools/
The landscape of packaging tools has changed somewhat since then, e.g. rye has been absorbed into uv, but I think most of it is still fairly accurate. And the point of reading this is not so much to understand which specific tool does what, it's to understand the different tasks that Python has tools for and how you can cover them using one tool or multiple different tools working together, whatever you like.
@diazona what's your take on pdm?
@barefootstache I haven't used it a whole lot, but I think it has the potential to be the best tool at what it does. From what I saw, it was very good about following modern standards and generally working in an intuitive way. It was just a bit immature (i.e. needed more time to add features), as of the last time I used it.
@barefootstache But, I should say, it has been a while since I've tried it on a new project, so it's probably better now then my impression indicates.
@barefootstache Have you tried uv? I used to use Poetry (plus some hacky local tooling) before discovering it.