Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

adamchainz
Copy link
Contributor

@adamchainz adamchainz commented Feb 14, 2025

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.

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5106a19) to head (597b493).
Report is 17 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

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.
@@ -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" .
Copy link
Member

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?

Copy link
Member

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants