News for hackers. Stuff that matters.
Re:Python and manually creating the requirements.txt vs. pip... by mattbillenstein on Wednesday August 17, 2022 @04:03AM (#32493601)
I use pip-compile in my flows - it's the best of both worlds, you get your declared direct dependencies via requirements.in, and the full blown locked dependencies then in requirements.txt. It's my preferred way to manage this now.
Re:Python and manually creating the requirements.txt vs. pip... by frou_dh on Wednesday August 17, 2022 @04:24AM (#32493744)
And a key thing is that both files can be committed to source control, not just one or the other.
Re:Python and manually creating the requirements.txt vs. pip... by mattbillenstein on Wednesday August 17, 2022 @04:28AM (#32493772)
Yeah, and the other bits about pip-compile -P to upgrade a single package and whatnot are very handy.