-
Notifications
You must be signed in to change notification settings - Fork 130
[PULP-807] Add changes required for Django 5 #6930
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
Conversation
4b983e3
to
0be1e9f
Compare
We may be using that "trick" in more places... Can't they make the imports silent? |
The docs show how to disable it globally. I'll see how that goes |
0be1e9f
to
9211474
Compare
pyproject.toml
Outdated
"django-filter>=23.1,<=25.1", # Looks like CalVer. | ||
"django-guid>=3.3.0,<3.6", # Looks like only bugfixes in z-Stream. | ||
"Django~=5.2.0", # LTS version, switch only if we have a compelling reason to". | ||
"django-filter>=25.1,<26", # Looks like CalVer. |
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.
Please don't change the version requirements as if they were following semver. They are not...
9211474
to
8ad5a00
Compare
7d88870
to
501ba23
Compare
pyproject.toml
Outdated
"Django~=4.2.0", # LTS version, switch only if we have a compelling reason to". | ||
"django-filter>=23.1,<=25.1", # Looks like CalVer. | ||
"django-guid>=3.3.0,<3.6", # Looks like only bugfixes in z-Stream. | ||
"django-filter~=25.1", # Self claimed stable CalVer https://github.com/carltongibson/django-filter |
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.
"Other breaking changes are rare." What I hear is: "We make no guarantees about changes tied to specific types of version changes." But also "You can probably expect 1 or 2 releases per year." (not like we need to touch this line every other week.)
I would argue we are better off to keep the "<=" upper bound.
Having said that, i think what we agreed to try now is: Not touching any LB here, and still allowing to up the django version UB to 5.2.
And now a very wild idea: Given that these changes are really minimal, how do you feel about backporting this version bump?
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.
Having said that, i think what we agreed to try now is: Not touching any LB here, and still allowing to up the django version UB to 5.2.
I see, that was not clear to me, but it sounds fine.
And now a very wild idea: Given that these changes are really minimal, how do you feel about backporting this version bump?
We can try and see what happens. You mean all of it? The django 5 upperbound, the shell command override, and the other bumps?
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.
Basically if we can make upgrading Django less of a hassle for everybody, we all win...
For that I'd say this PR should only bump upper bounds of requirements (Probably really only Django) and contain this other two small adjustments you made (that seem to be compatible with Django4 anyway.)
And then we can think about backporting it.
4ca6a89
to
56922a0
Compare
"Django~=4.2.0", # LTS version, switch only if we have a compelling reason to". | ||
"django-filter>=23.1,<=25.1", # Looks like CalVer. | ||
"Django>=4.2.0,<=5.2.0", # LTS version, switch only if we have a compelling reason to". | ||
"django-filter>=23.1,<=25.1", # Uses CalVer, not released often https://github.com/carltongibson/django-filter |
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.
That's perfect. Thank you!
It reminds me that we still haven't looked up all dependencies versioning philosophies.
2d28db7
to
6c31ab7
Compare
Lowerbound fails under its set of dependencies. I'm trying to isolate what exactly locally. |
6c31ab7
to
000d6ad
Compare
The changes were tested against Django 5 but are compatible with Django 4: * bump django-guid * bump django-filter * shell.Command override Co-authored-by: Matthias Dellweg <[email protected]> Please enter the commit message for your changes. Lines starting
d553f2b
to
e7f742f
Compare
That was intriguing... Thanks for the suggestion! |
Compatibility findings
pulpcore-manaer shell
call auto-imports models and other stuff (like shell_plus). The problem is that it prints a message to stdout which breaks our trick of using it to get values from the database in the tests.