HNHacker News
TopNewBestAskShowJobs

robinweiss

15 karma · joined August 17, 2022

Data generalist
submissionscomments
robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
The only problem I see here is that these files could diverge and lead to all kinds of annoying problems down the line. Would be great if they could be automatically linked somehow.
robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
What's bad about pinning the transitive dependencies? I feel otherwise this could lead to really hard to debug errors down the road if second-order dependency versions diverge between developers.

And I fully agree on the tools. I personally would always use something like pip-tools or poetry, but it's not always an option to use them, unfortunately.

robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
Absolutely they are. But I work a lot with teams that are on the fringes of tech and business like Data Science & BI. I am trying to find the right balance between doing things cleanly but not overburdening non-engineers with too many tools and abstractions.
robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
This ... I don't know what to say :D I guess I have to thank you, this helps me see the bigger picture and not be too hung up on the manual requirements.txt files of my colleagues. Things truly could be worse.
robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
Cool, thanks! I guess the bottom-line is that requirements.txt have their weaknesses regardless of how you create them ¯\_(ツ)_/¯
robinweiss··on Python and manually creating the requirements.txt vs. pip freeze
Thanks! I personally use those tools, but a lot of times it's hard to convince people to switch from their hand-written requirements.txt. I was looking for some bullet-proof arguments to end that discussion once and for all :D