Skip to content

Drop Django versions < 4.2#41

Merged
fabiocaccamo merged 2 commits intomainfrom
copilot/drop-django-versions-less-than-4-2
Apr 17, 2026
Merged

Drop Django versions < 4.2#41
fabiocaccamo merged 2 commits intomainfrom
copilot/drop-django-versions-less-than-4-2

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 17, 2026

Drop support for Django 4.0 and 4.1, keeping 4.2 (LTS) as the minimum supported version.

Changes

  • pyproject.toml: Remove Framework :: Django :: 4.0 and 4.1 classifiers
  • tox.ini: Remove dj40/dj41 from envlist (py310, py311) and deps
  • .github/workflows/test-package.yml: Remove Django 4.0 and 4.1 from CI test matrix
  • requirements.txt: Bump Django lower bound from >= 3.2 to >= 4.2

Describe your changes
Removes Django 4.0 and 4.1 from all supported version lists. Minimum supported Django version is now 4.2 LTS. The Django lower bound in requirements.txt has also been updated to >= 4.2 to keep all declared support surfaces consistent.

Related issue
?

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have added tests for the proposed changes.
  • I have run the tests and there are not errors.

Agent-Logs-Url: https://github.com/fabiocaccamo/django-cache-cleaner/sessions/3e9b614f-ddfd-4974-b5a9-067c45949295

Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com>
@fabiocaccamo fabiocaccamo marked this pull request as ready for review April 17, 2026 16:39
Copilot AI review requested due to automatic review settings April 17, 2026 16:39
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.13%. Comparing base (2f9ca1c) to head (f41d089).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #41   +/-   ##
=======================================
  Coverage   93.13%   93.13%           
=======================================
  Files           6        6           
  Lines         102      102           
=======================================
  Hits           95       95           
  Misses          7        7           
Flag Coverage Δ
unittests 93.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Drops support declarations and CI coverage for Django 4.0 and 4.1, making Django 4.2 (LTS) the minimum supported version.

Changes:

  • Removed dj40/dj41 from tox envlist and dependency factor pins.
  • Removed Django 4.0/4.1 Trove classifiers from package metadata.
  • Removed Django 4.0/4.1 from the GitHub Actions test matrix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tox.ini Removes tox env factors for Django 4.0/4.1 and their pinned deps.
pyproject.toml Removes Trove classifiers for Django 4.0/4.1.
.github/workflows/test-package.yml Removes Django 4.0/4.1 from the CI matrix.
Comments suppressed due to low confidence (1)

tox.ini:29

  • deps still installs -r requirements.txt, and requirements.txt currently allows django >= 3.2. This means some tox envs that rely only on requirements.txt (e.g. migrations/translations) can run against Django versions that are now unsupported. Update requirements.txt to require Django >= 4.2 (or explicitly pin/add a Django >=4.2 constraint in those envs) so all tox envs reflect the new minimum supported Django version.
deps =
    dj42: Django == 4.2.*
    dj50: Django == 5.0.*
    dj51: Django == 5.1.*
    dj52: Django == 5.2.*
    dj60: Django == 6.0.*
    -r requirements.txt

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/test-package.yml
@fabiocaccamo fabiocaccamo merged commit f8e45df into main Apr 17, 2026
26 checks passed
@fabiocaccamo fabiocaccamo deleted the copilot/drop-django-versions-less-than-4-2 branch April 17, 2026 17:23
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.

3 participants