Skip to content

Packaging/dep updates - #48

Open
dehnert wants to merge 3 commits into
mainfrom
docs
Open

Packaging/dep updates#48
dehnert wants to merge 3 commits into
mainfrom
docs

Conversation

@dehnert

@dehnert dehnert commented Feb 9, 2026

Copy link
Copy Markdown

Switch to pyproject.toml, which AIUI is the Python packaging approach of the future, and also setup.py seems 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.

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/
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.

1 participant