TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Poetry: Python Packaging and Dependency Management

27 pointsby gk1over 1 year ago

9 comments

yoyohello13over 1 year ago
Of all the python packaging solutions, my favorite is pip-tools because it works with a standard venv setup. Poetry has some great features, but the additional overhead of requiring devs to install and learn a new tool are just not worth it. Also now you need to install poetry in your Docker images and/or production environments.
评论 #37309314 未加载
spottover 1 year ago
For a good discussion about package managers in python:<p><a href="https:&#x2F;&#x2F;chriswarrick.com&#x2F;blog&#x2F;2023&#x2F;01&#x2F;15&#x2F;how-to-improve-python-packaging&#x2F;#the-classic-stack" rel="nofollow noreferrer">https:&#x2F;&#x2F;chriswarrick.com&#x2F;blog&#x2F;2023&#x2F;01&#x2F;15&#x2F;how-to-improve-pyth...</a><p>From that page: Poetry isn’t compatible with PEP621(metadata in pyproject.toml), or PEP508 (version markers for dependencies in pyproject.toml)<p>Just some additional context for the discussion. I use poetry, (and pipenv) depending on my use case.
drcongoover 1 year ago
I can never go back to any other system for managing Python dependencies. Poetry was a bit flaky up to around v1.2.x but I&#x27;m so glad I stuck with it, since v1.5.x it&#x27;s been superb.
singhracover 1 year ago
Since this is a discussion on dependency management in Python - does anyone use rye [0] regularly now? I&#x27;m interested in using it but want a little more social validation before I try - some issues with package managers only appear after you&#x27;ve invested considerable time.<p>[0]: <a href="https:&#x2F;&#x2F;rye-up.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;rye-up.com&#x2F;</a>
评论 #37311552 未加载
meowfaceover 1 year ago
I don&#x27;t know if I&#x27;ve just had particularly bad luck, but over the years I&#x27;ve run into multiple situations where upgrading my dependency manager has completely broken dependency installation.<p>I started using pipenv many years ago since it was the hot new thing, and then it kept happening over and over with new pipenv releases. And then poetry was the hot new thing, so I switched to poetry. And everything was good with poetry for some years... and then within the past few years, it started happening again. New poetry version, something breaks, Google it, set some config toggle, it works. Then another new version, something breaks again, some other config toggle is needed, etc. The least I&#x27;d expect of a dependency manager is very careful attention paid to backwards compatibility.<p>And now, based on this thread, I&#x27;m wondering if poetry is falling out of fashion and if these other recommendations, like PDM and rye, are going to be the hot new thing.
评论 #37311110 未加载
cjalmeidaover 1 year ago
I would recommend PDM. It&#x27;s similar to poetry but better executed IMO.
评论 #37310837 未加载
alanwreathover 1 year ago
I love the idea, but after using it on a day to day basis, I think I’m jaded with the number of ways to do packaging in python.<p>I often find my self removing it from the later stages of the multistage Docker images I create just to decrease the amount of contextual overhead. Maybe I’m crazy but npm feels less intrusive for some reason.
w0mover 1 year ago
while I &lt;3 poetry - they <i>need</i> to speed it up with a complicated hierarchy.
Euphorbiumover 1 year ago
Without doubt the best python dependancy manager.