Skip to content

Update Python & Django supported versions + migrate to ruff#14

Open
samiashi wants to merge 10 commits intodjk2:masterfrom
samiashi:samielachi/upgrade-repo
Open

Update Python & Django supported versions + migrate to ruff#14
samiashi wants to merge 10 commits intodjk2:masterfrom
samiashi:samielachi/upgrade-repo

Conversation

@samiashi
Copy link
Copy Markdown

@samiashi samiashi commented May 22, 2025

This PR updates the project for the current supported Python/Django matrix and folds in the outstanding callback feature from #13 so the maintenance work lands in a single PR.

Summary

  • drop support for Python 3.7, 3.8 and 3.9
  • keep support on Python 3.10 and add support for Python 3.11, 3.12, 3.13 and 3.14
  • drop support for Django < 4.2
  • add support for Django 5.0, 5.1, 5.2 and 6.0
  • replace flake8 with ruff
  • clean up packaging metadata for modern setuptools / wheel builds
  • fix auto-import handling for dynamic models registered at runtime
  • add ADMIN_SHELL_CALLBACK so projects can audit or log shell executions after each successful run

Notes

The dynamic model fix addresses cases where Django Admin Shell tries to import models that are registered in Django's app registry but are not directly exposed as attributes on their declared module.

The callback support was cherry-picked from #13 and adapted to the current branch. The docs, tests and changelog entry are included here as well, so this PR supersedes #13.

@samiashi samiashi force-pushed the samielachi/upgrade-repo branch 3 times, most recently from 2cd4c24 to cbb911e Compare May 22, 2025 13:27
@samiashi samiashi force-pushed the samielachi/upgrade-repo branch from cbb911e to 821330e Compare June 2, 2025 14:31
@samiashi samiashi force-pushed the samielachi/upgrade-repo branch from 821330e to eb03b9e Compare June 2, 2025 14:40
@samiashi samiashi force-pushed the samielachi/upgrade-repo branch from eb03b9e to d3cc210 Compare June 2, 2025 14:44
@djk2
Copy link
Copy Markdown
Owner

djk2 commented Aug 3, 2025

Hi. Sorry for very very long time without any response.
I will review this PR in this week.
Looks very nice. Thank You

@samiashi
Copy link
Copy Markdown
Author

samiashi commented Mar 9, 2026

@djk2 Just wanted to ping you and see if we can get this reviewed

@samiashi
Copy link
Copy Markdown
Author

samiashi commented Mar 9, 2026

This PR now supersedes #13. I cherry-picked the callback feature here, adapted it to the current branch, and included the docs/tests/changelog updates so the work can merge through a single PR.

@samiashi samiashi force-pushed the samielachi/upgrade-repo branch from 871b40a to 2d53fca Compare March 11, 2026 11:05
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