-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin dependency versions to match current poetry.lock #3104
base: main
Are you sure you want to change the base?
Conversation
Not sure how this will change things in practice, but it feels like a break in semantics. The old way indicated that we see point releases as OK, but not minor releases, so if somebody wants to do a point release upgrade, great. This way indicates that we trust nothing and that any version bump needs careful review. I think we're closer to the former than the latter (though I usually review all release notes anyway because I don't trust anything that's not super popular). So that's one count against this. What does this make easier for you though? Maybe that'd weigh in its favor? |
I mean, this seems to be how we've been handling updates so far, at least for packages in
This makes it possible to do a |
I thought we landed updates to all the transient ones the other day such that |
The issue is that |
OK, I gotcha. Yeah, I think poetry is a bit weird that way, but what I do is |
This doesn't really work correctly for updating transient dependencies because it will also add the transient to |
FYI you can use |
Are you sure? That would surprise me because doing |
But we're not actually trying to add a transient dependency to |
Terminology-wise, we’re talking about transitive dependencies, not transient dependencies, right? (did autocorrect send things down the confusing path?) Could it be that the command that would do the update that you’re seeking is not
I know that it worked for updating the transitive dependency on |
Oh, must have mixed that up.
Yeah, I guess that does technically work I suppose, although it's less convenient as you can't bulk update transitive dependencies AFAIU that way. |
It feels like this PR can be closed, and maybe we just need a wiki page about updating dependencies? |
A recipe in the documentation with |
So, summarizing, because I'm bad at this:
|
This should do the trick:
Doing it locally in |
This appears to be functionally equivalent to |
Hmm, so we would need to filter this list of packages |
How’s this:
|
Well, I played with that a bit, but:
Then:
Which...I think I could figure out, but I think it's related to the www-data changes you made, Chad, and now I'm wondering how to get around them. I've gotten worse at this stuff! |
Oh, yea, it’s a The alternative that would make this unnecessary is a virtual environment accessible to |
Well it works when running outside of docker for me at least. So I guess full command for that would be:
|
OK, yep, this is working, once Chad pointed out that
I've updated the wiki with this info: https://github.com/freelawproject/courtlistener/wiki/Managing-dependencies Anything else to do here? |
If we want to be manually managing package version updates for all packages in
pyproject.toml
we should just pin the exact package versions, this simplifies updating of transient dependencies in outpoetry.lock
in which we don't manually manage updates for.This pins all versions in out
pyproject.toml
based on our currentpoetry.lock
file.