Okay, I tried to be reasonable and thought the topic was closed – so I preferred to continue on the article instead. You wanna continue on personal? Fine! Let's go:
I have no problem with you preferring poetry
Never said I do
That’s a whole bunch of incorrect assumptions irrelevant to pip
Not that the article is about other things too
That’s not even touching your other stuff, which also tells me you shouldn’t be giving advice on installs or paths.
I encourage you, do touch the other stuff. It's becoming kinda hilarious how you make wrong assumptions about another person without even confirming stuff and guessing someone else's assumptions
Do you stand by your own words? If so, what I said shouldn’t seem aggressive at all in light of how this convo started.
It wasn't aggressive indeed, up until the point you started making assumptions for me and deliberately ignoring my clarifications and mistakes I accepted
Again, I don’t know why you’re so angry at this. This started becuase you made the literally aggressive quote I quoted in my last post.
I went “oh you don’t know pip” and explained the incorrect thing you posted.
I’m sorry you’re upset, but I’ve stayed pretty respectful while correcting the outright incorrect things you started by posting.
You keep talking about “assumptions” I’m making, but I started by asking a question so I could confirm my suspicion and you confirmed it! I don’t see where the issue is. Again, your quote that started this was significantly more aggressive with that assembler quip, lol.
Didn't even see a question lol, only statements. But let's talk about this suspicion, I'm curious what it is and how it relates to anything I said so far
Okay, let me elaborate, but first I need to ask: what is your proposed workflow to restore a frozen state of app's dependencies using the vanilla pip without checking in some sort of lockfile (whatever it is)?
My assumption was that one needs it (in whatever form), even though the article doesn't mention it explicitly
Most people shouldn’t and wouldn’t be “freezing state” as requirements.txt is intended for.
That’s a bad way to package, it’s a deployment technique, and not at all recommended or best practices for a package or a local install.
You’re asking a leading question, but it’s the wrong question.
Check on this sub alone, Google “requirements.txt” and you’ll find a ton of people calling it antiquated. I’d actually advocate anyone looking to lock state to look at poetry or conda before requirements.txt unless they’re also willing to use CI/CD to automate generating and updating via dependabot programmatically as a manually created requirements.txt will always lag behind and is a poor, poor method of packaging.
Feel free to survey this sub or current best practices, nothing I’m saying is in any way out there.
For packaging, you want setup.cfg, or more recently pp.toml and you only want to specify the minimum necessary, allowing your package to be in turn a requirement for other packages.
Poetry automates much of this in a pretty decent way, which is why even though I said I’m not a fan, I don’t participate in the packaging wars where I yell at people for liking a different approach. I only yell at people saying extreme things like, for example, you making the analogy that using pip is like writing in assembly, lol.
You’re asking a leading question, but it’s the wrong question.
Actually, it worked out pretty well:
unless they’re also willing to use CI/CD to automate generating and updating via dependabot programmatically
Right, and that's what I said earlier, but we (the article) are talking about the vanilla pip and venv, so what are we left with in a local environment? Perhaps, pp.toml but read the comment further
Feel free to survey this sub or current best practices, nothing I’m saying is in any way out there.
Not sure why you're saying that…
For packaging, you want setup.cfg, or more recently pp.toml and you only want to specify the minimum necessary, allowing your package to be in turn a requirement for other packages.
Exactly, but what about a development environment? I assume using tools like flake8, mypy, ruff, tox, or pytest – do you suggest restricting them to their major versions or exact versions in pp.toml/setup.cfg? Yes, another leading question
Poetry automates much of this in a pretty decent way, which is why even though I said I’m not a fan, I don’t participate in the packaging wars where I yell at people for liking a different approach.
Let's talk the vanilla approach the article recommends, for the sake of disproving myself in your eyes
I only yell at people saying extreme things like, for example, you making the analogy that using pip is like writing in assembly, lol.
I merely meant that «don't use poetry, use the bare pip» is as strict argument as «don't use C, use assembler». I never compared pip to assembly per se, this you assumed for me
as a manually created requirements.txt will always lag behind
And I said that as well in the very beginning. Not sure why you decided I'm going to use it manually or recommend it. Actually, my comment was a contra argument against it
What? Most of this comment has nothing to do with my core point, which was the requirements.txt thing you brought up initially, and was the whole central point i was speaking on.
As to everything you said, vanilla pip has excellent answers for all of that, but if you want to use poetry, go ahead. I’ve never been on here shitting on poetry, even though - yes, my preference is to not add it into the mix, but that’s never been the topic here.
I feel like you’ve forgotten how this entire conversation started.
You stated some weird things in response to the article, specifically your points 1 and 2 under the “like assembler” thing (ignoring the paths mistake and the macOS thing as it’s irrelevant, but that contributed to me being skeptics).
I asked you about requirements.txt to gauge what you actually knew, your response was still decently off - again, fine - you never claimed to be a vanilla pip expert as you’re a poetry proponent and that’s fine, but I said “ah you don’t know vanilla pip” and explained.
I still don’t get why you’re agitated over that in any way.
As far as your questions here, would you actually like me to respond with the vanilla pip answers? I’m not sure how this turned into a poetry vs pip thing, but I’m happy to explain if you’re actually asking and not just still angry about my initial reaction to your comment and looking for new topics.
In reference to your question of build environment stuff like pytest, of course - setup.cfg and pp.toml provide excellent vehicles for setting that up, it can be versioned, unversioned, or min/max bound.
Again, I don’t care if you don’t like vanilla pip, I was commenting because your initial comment on it was misleading - the things you said are consequences of using vanilla pip literally aren’t.
You meep saying I didn’t give you a chance to elaborate, yet your own initial words were incorrect. Your answer to my question confirmed you had mistaken understandings and your own words confirmed you don’t use vanilla pip.
Again, that’s fine, I’m not trying to argue you into using it, but there weren’t any assumptions. You said some incorrect stuff, I commented on it, you fixed some of it (the paths stuff), okay.
There wasn’t a mistaken assumption lol. None of the additional context you’ve given changes the initial point, which was quite small and specific.
Again, im not sure why you took umbrage over it. If you corrected something I said about poetry and said “ah you don’t know much about poetry”, I’d 100% agree. For example, your mention of it having built in lock files. Im intimately familiar with Condas state files, but didn’t know poetry had that, TIL.
1
u/eigenein Mar 28 '23
Okay, I tried to be reasonable and thought the topic was closed – so I preferred to continue on the article instead. You wanna continue on personal? Fine! Let's go:
Never said I do
Not that the article is about other things too
I encourage you, do touch the other stuff. It's becoming kinda hilarious how you make wrong assumptions about another person without even confirming stuff and guessing someone else's assumptions
It wasn't aggressive indeed, up until the point you started making assumptions for me and deliberately ignoring my clarifications and mistakes I accepted