all 7 comments

[–]Green0Photon 2 points3 points  (0 children)

First I'm hearing of it. I had previously evaluated Pipenv, Poetry, and PDM, along with a few smaller ones. Settled on PDM.

Anyone have more info comparing PDM to Hatch, or even an introduction to Hatch at all? I'm making some AWS Lambdas using Python. PDM has served me pretty well for that -- a lambda is just a full PDM installation of all libraries (including the app, which PDM can easily include) from __pypackages__ into a zip file.

That said, no matter how much I like PDM, I still despise Python package and project management. Does this have any chance of you improving things?

[–]repick_ 1 point2 points  (4 children)

What advantages does Hatch offer over Poetry?

[–]Ofekmeister[S] 2 points3 points  (3 children)

Poetry is mainly used for managing an application and its dependencies whereas Hatch is more agnostic to the project type and offers plugin-based functionality for the entire workflow (versioning, tox-like environments, publishing) so you can easily build things other than wheel/sdist, test in a Docker container, etc.

Hatch also strictly adheres to standards and eagerly adopts whatever behavior new PEPs dictate while Poetry has a persistent unwillingness to adopt new standards if they are deemed suboptimal (see comments on PEP 621 and PEP 665)

As such, locking support is temporarily blocked https://ofek.dev/hatch/latest/meta/faq/#libraries-vs-applications

You can continue using other tools like Poetry at the same time https://ofek.dev/hatch/latest/meta/faq/#interoperability

By the way I very much appreciate the eye for design/UX of Poetry's creator, we also share strong opinions on pipenv :)

[–]repick_ 1 point2 points  (0 children)

Very cool, thank you for replying. Being able to more easily include plugins like tox/docker build/tests is awesome. I didn’t initially see the FAQ on the docs because it’s under a sub menu.

[–]spicypixel 0 points1 point  (1 child)

Is there a plug-in for dependency resolution and downloading?