3 ms·
I would highly recommend Poetry for python package management. It basically wraps around pip and venvs offering a lot of convenience features (managing packages
by tomalaci 4y ago
I would highly recommend Poetry for python package management. It basically wraps around pip and venvs offering a lot of convenience features (managing packages, do dist builds, etc.). It also works pretty nicely with Tox.
I would recommend using virualenvs.in-project setting so Poetry generates venv in the project folder and not in some temporary user folder.
- winrid 4y agoThanks. I recently spent a whole afternoon learning how to package a new python project. Was really surprised at the difficulty even with venv, compared to node and java.
- nerdponx 4y agoI prefer Hatch over Poetry. I don't have any strong reason for that preference, I've just use both and I feel more comfortable with Hatch. It feels a little more seamlessly integrated with other Python tools, and I appreciate the developers' conservative approach to adding features.
- davidktr 4y ago100% this. I've always struggled with creating packages, but now simply do poetry init and I am done. Magic.
- peterhil 4y agoI just compared and evaluated Hatch, Flit, Poetry and Pdm and found Pdm to be most robust and slimmest. Hatch was a good second option, and Poetry and Hatch are easy to use, but have too much bloat and magic.
- pnt12 4y agoWhen I tried pdm it wasn't stable yet and messed up my paths. My experience with poetry has been great. I only disliked that they had auto-update on when locking files, but they changed the default.