HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
why I will never use python-poetry

anthonywritescode · Youtube · 18 HN points · 0 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention anthonywritescode's video "why I will never use python-poetry".
Youtube Summary
innovative strides in deprecation policies!

==========

twitch: https://twitch.tv/anthonywritescode
dicsord: https://discord.gg/xDKGPaW
twitter: https://twitter.com/codewithanthony
github: https://github.com/asottile
stream github: https://github.com/anthonywritescode

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Sep 30, 2022 · 18 points, 7 comments · submitted by f1shy
metadat
Yes, pip + virtualenv is sufficient.

Poetry's 50 dependencies is a bit much. I also found it confusing how Poetry hides the Python dependencies path to somewhere outside of the project directory.

Hackbraten
I haven’t encountered anything Poetry-related outside of my project directories. Maybe that’s because I have set `virtualenv.in-project` to `true` in my `poetry.toml`.
hksh
https://python-poetry.org/docs/configuration/#virtualenvsin-...
wolfspaw
I like Poetry, it made my life easier.

The 5% of failure is odd... But whatever.

50 deps for a tool is really common, not ideal but no problem.

f1shy
Adding a random chance of failure for a deprecated feature, is pretty interesting decision!
adamckay
I actually quite like the idea, personally.

I use Poetry at work and I thoroughly enjoy it.

I work primarily on applications so I think the default constraint of carets is good because my app's not going to break when a dependency is bumped a major version with breaking changes, and I don't care about 50 dependencies (because it's not shipped in our production Docker image, so meh).

A 5% brownout on installing is a great idea to the alternatives. I recently went on a dependency updating spree and also happened to update Poetry so already updated our build process and so didn't come across this brownout, but I think I'd prefer it. If it was a plain old print statement and continued to pass our builds I'd never read any deprecation message (my dev env is already setup and if I get green ticks in CI I don't view the logs), and if it was a 100% failure then I'm forced to upgrade it and modify the build process then and there. At least with a brown out I'll be temporarily annoyed, but see the deprecation and then set the temporary skip flag and then plan to make the change to the build process a short time later when sprint commitments allow...

NAHWheatCracker
I love Poetry. It's better than pipenv. Both are better UX than manually creating virtual environments. It's also more than just a dependency management system. It does packaging and publishing. It's better than setup.py and twine and such at that.

I'm always baffled when people say the opposite. There's the matter of pure personal preference, which I accept. The bigger issue I have is with people who have been doing it their own way and will find any number of little reasons to reject anything new.

This guy finds three bugs when he first used it, but all of them look like minor things to me. Complaining about 50 dependencies in 2022 seems silly. Caret versioning as default is personal preference and not an unreasonable choice.

His argument about the 5% chance of failure is the only thing that I find as a strong point. I don't agree with the developer's decision, but it's a deprecated way to install poetry, so I understand.

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.