Conversation
I gather this is the more modern approach, plus hopefully it will unbreak Sphinx (which seems to be trying to import `setup.py` and then exploding because `setup.py` thinks it is being run as a script). I suspect this doesn't actually produce a usable package when not installed as editable, but that's probably okay for now. Relevant resources: https://packaging.python.org/en/latest/tutorials/packaging-projects/ https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
This is an LTS release, so will be supported until at least April 2028. The release notes[1] have no notable changes, and I didn't run into any issues when briefly clicking around. [1] https://docs.djangoproject.com/en/5.2/releases/5.2/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch to pyproject.toml, which AIUI is the Python packaging approach of the future, and also
setup.pyseems somewhat incompatible with Sphinx. This probably doesn't produce a real package that'll run when not installed as editable, but that seems okay (and I kinda suspect that didn't work before either).Also switch to Django 5.2, which doesn't appear to have any significant changes from Django 5.1. However, 5.1 left support in December 2025.