-
Notifications
You must be signed in to change notification settings - Fork 7
chore: pin python package dependencies #991
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for taking care of that @SMoraisAnsys |
jorgepiloto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some questions. The only thing I am concerned is that this causes some issues when using the actions since we are now imposing a specific version for some packages.
I'm not sure we'll end up with any issue tbh. Guess it's a good candidate to leverage the pre release feature ? :D |
|
I've updated the code of the |
|
@jorgepiloto @moe-ad It's been more than a month that this PR is open, should it be closed ? If not I can refresh my mind on its content cause I've lost track of the associated changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last thing before merging this is to update the dependabot.yml so that it is aware about these new requirements.txt files.
Let's discuss about those changes during tomorrow's meeting to see if we are missing something. |
|
Following today's discussion, I'm switching to draft mode. Here are the available options to be explored (by order of personal taste):
|
|
Important things to note:
|
|
Extra things we should explore (Sebastien's feedback):
|
|
IMO...
Pinning down means pinning down... so, all the way down to patch is the right approach I believe.
Shouldn't things be more under control with the pinned approach? And if a user decides not to use the pinned versions then.. does that mean we let pip decide the version in many ocassions?
Unix --> And then simply use poetry install. |
|
@moe-ad and I just had a quick discussion. We agreed on delaying the implementation of this feature until the next major. The reason is that this seems a bit hacky and unstable yet. Thus, making a minor release could cause a silent failure for projects not using pinned SHA versions. |
@moe-ad When we discussed, I mentioned using "major.minor instead of major.minor.patch" for the bounds in the pyproject.toml file. The idea behind that was to reduce the CI load, which is curretly heavy, and not to pin to "major.minor". Either the sentence is wrongly formulated or something needs to be clarified.
I think we should still leave people with the ability to leverage the pinned version or not. Defaulting to pinned version is fine but if a conflict of dependency resolution / compatibility arise, having the ability to disable the pinned version temporarily would allow workflows to run while the issue is investigated. If something needs to be changed on the action side, it would require a new release to be performed :/
Yeah, that could be a simple way of handling it. |
My bad. I have updated the sentence. |
|
Seems like the problem of uv-lock file update with dependabot has been (re-re-re?)fixed dependabot/dependabot-core#10478 (comment) |
Changes to address #985.