-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Support Django 5.2 #260
base: master
Are you sure you want to change the base?
Support Django 5.2 #260
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #260 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 76 75 -1
Branches 18 18
=========================================
- Hits 76 75 -1 ☔ View full report in Codecov by Sentry. |
First, Mypy reported a lot of issues for the tests not including `-> None` annotations. After adding them, there were lots of issues due to the `url` variables being reassigned from `str` to `DBConfig` objects, fixed by inlining the URLs into the `parse()` calls.
53e5247
to
597b493
Compare
@@ -32,7 +39,7 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
pip install -r requirements.txt | |||
pip install "Django~=${{ matrix.django-version }}.0" . | |||
pip install "django~=${{ matrix.django-version }}.0a1" . |
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.
Why the 0a1
bit? Won't that make this install alpha releases?
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.
Ah. I hadn't realised 5.2 was an alpha. I don't think we should be doing this yet, as we can't guarantee just because we support a 5.2 alpha that we'll definitely work with the released version. Happy to merge this (without the alpha install change) the moment it's released, but not before.
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.
Okay, fair enough. At least I know dj-database-url works without any changes.
The first commit adds Django 5.2 support - no code changes required, just adding the testing and metadata.
The second commit fixes all type errors reported by Mypy, which are probably due to a new Mypy version being released. I extracted this into a second PR which should be merged first: #261.