Skip to content

Drop Django < 4.2 support#481

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

Drop Django < 4.2 support#481
fabiocaccamo merged 1 commit intomainfrom
copilot/drop-django-versions-less-than-4-2

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 17, 2026

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

Changes

  • pyproject.toml: remove Framework :: Django :: 4.0 and 4.1 classifiers
  • requirements.txt: bump minimum Django from >= 2.2 to >= 4.2
  • tox.ini: drop dj40/dj41 envs and their deps; remove from envlist combinations
  • .github/workflows/test-package.yml: remove Django 4.0/4.1 from the CI test matrix

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-admin-interface/sessions/22137723-dc30-49e9-8976-5e1074528d6f

Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com>
@fabiocaccamo fabiocaccamo marked this pull request as ready for review April 17, 2026 16:33
Copilot AI review requested due to automatic review settings April 17, 2026 16:33
@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 97.48%. Comparing base (361d7a0) to head (2241bb5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #481   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files          40       40           
  Lines         438      438           
=======================================
  Hits          427      427           
  Misses         11       11           
Flag Coverage Δ
unittests 97.48% <ø> (ø)

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

This PR updates the project’s declared and tested compatibility targets to drop Django 4.0 and 4.1, making Django 4.2 (LTS) the new minimum supported version across dev requirements, tox, and CI.

Changes:

  • Removed Django 4.0/4.1 tox environments and dependency factors.
  • Bumped requirements.txt minimum Django version to >= 4.2.
  • Updated packaging classifiers and CI test matrix to stop advertising/testing Django 4.0/4.1.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
tox.ini Drops dj40/dj41 envs and their pinned deps from the tox matrix.
requirements.txt Raises the minimum Django version for installed requirements to 4.2+.
pyproject.toml Removes Django 4.0/4.1 trove classifiers to match the new support policy.
.github/workflows/test-package.yml Removes Django 4.0/4.1 from the GitHub Actions test matrix.
Comments suppressed due to low confidence (1)

pyproject.toml:29

  • PR description says Django 4.2 is the minimum supported version, but the package metadata still does not declare a Django dependency (only django-colorfield). As a result, pip can install this project alongside Django 4.0/4.1 without any resolver error, which doesn’t match the stated support policy. Consider adding a Django >= 4.2 requirement to [project].dependencies (or an appropriate extra) so the minimum version is enforced at install time, not only in CI/tox/requirements.txt.
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Web Environment",
    "Framework :: Django",
    "Framework :: Django :: 4.2",
    "Framework :: Django :: 5.0",
    "Framework :: Django :: 5.1",
    "Framework :: Django :: 5.2",
    "Framework :: Django :: 6.0",

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

@fabiocaccamo fabiocaccamo merged commit f8885b0 into main Apr 17, 2026
50 checks passed
@fabiocaccamo fabiocaccamo deleted the copilot/drop-django-versions-less-than-4-2 branch April 17, 2026 16:42
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