Being completely unfamiliar, their site says:
> Poetry either uses your configured virtualenvs or creates its own to always be isolated from your system.
So it is just a pretty wrapper? I’m missing the value add.
Handles dev dependencies, scripts, virtualenv management, upgrading single dependencies, has a lockfile, is super fast, is built on pyproject.toml, etc etc.
Honestly, just use Poetry. At the very least it’s better than ad-hoc personal scripts built around manually managed virtualenvs.
those are the ones off the top of my head. use poetry, it's great.
The "poetry run" command is extremely nice. You can do something like "poetry run pytest" and put that in a Makefile and be done. You don't have to worry about making sure you're in the virtualenv. I basically don't drop into a full shell anymore (although "poetry shell" lets you do that) because I don't like having to juggle whether I'm in a virtualenv or not.
"poetry build" will build your project into tarballs that pip can install. It's not earth-shattering, but it's nice to have it one tool.
The value add is a large number of QoL improvements. I don't think there are any features that other solutions can't compete on; Poetry just makes it easier to do the same things. I would highly suggest it for anything where other people are going to work on it, because of the QoL, but for personal projects I don't think it really matters.
It's a great tool but there are reasons you might want something else.
Alternative like raw pip, pip tools, or dephell all have various pros and cons.
What do you mean it doesn't work? It works fine on Windows here, unless I am missing something.
- poetry shell didn't start the same shell that you were in: https://github.com/sarugaku/shellingham/issues/42. Looks like they fixed it 3 days ago though.
- It doesn't set the name of the project in the prompt, so you actually don't know you are in the shell. Very annoying if you have many windows.
I agree with you there, it's very annoying and I've fallen for it a few times. Having not used Poetry on other platforms yet (still using Pipenv in a few projects), I wasn't even aware that this was a feature.