top | item 31545962

(no title)

tomatowurst | 3 years ago

is there an alternative to pip that improves on things? sort of like yarn for python?

discuss

order

goodoldneon|3 years ago

Pipenv or Poetry. Pip by itself is missing some key features, like separating dev dependencies (e.g. mypy)

kmarc|3 years ago

I think it's a pretty common pattern to use

    pip install -r requirements-dev.txt
Not the most convenient, but solves (works around) the issue

nerdponx|3 years ago

These both use Pip internally. They are wrappers, not replacements.

mafro|3 years ago

Pip has had ton of development in the last few years, and continues to do so. I'd say stick with pip, unless there's a specific problem you're addressing with pipenv or Poetry.

However, like a sibling comment, I've also heard god things about Poetry. Probably worth giving it a spin somewhere and seeing if my initial thought still holds.

sjellis|3 years ago

I've been experimenting with Hatch:

https://hatch.pypa.io/

The USP of Hatch is that it uses the latest generation of Python standards and tech under the covers, so you have a unified tool that's less quirky than previous ones. Poetry and pipenv predate some of the improvements in Python packaging, so had to develop some things in their own way.

BiteCode_dev|3 years ago

Poetry is the cleanest python deps handling experience, and I would recommend it as well.

But it is very slow.

bbkane|3 years ago

I haven't tried it, but I've heard good things about poetry

japhyr|3 years ago

I think people use Poetry for a variety of reasons, but I don't think speed is one of them.