Skip to content

Update to base Django 5.2 - #44

Merged
justinmayer merged 3 commits into
getpelican:mainfrom
uda:update-django-5-2
Jul 13, 2025
Merged

Update to base Django 5.2#44
justinmayer merged 3 commits into
getpelican:mainfrom
uda:update-django-5-2

Conversation

@uda

@uda uda commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

My initial goal was simply to simply be able to generate a feed that is close enough to the feed I had in Wrodpress, I ended up updating the code to the latest from Django 5.2 (branch stable/5.2.x). Except for feedgenerator.py all changed files in utils were simply overwritten as-is and only the relative imports were fixed.

Main changes:

I added some backwards compatibility, while tests pass I might find other changes down the road and will need to update the tests

uda added 2 commits June 26, 2025 23:53
Adds empty tags
Backwards compatible in some cases
@uda uda changed the title Update django 5 2 Update to base django 5.2 Jun 27, 2025
@justinmayer

Copy link
Copy Markdown
Member

Thanks for the submission, Yehuda. I am in transit and just saw this, so I tapped the button to run the CI workflow, and it seems CI is reporting test failure. Would you mind taking a look?

@uda

uda commented Jul 12, 2025

Copy link
Copy Markdown
Contributor Author

@justinmayer Sure, I'll look into it, might be a python <= 3.9 issue

types.NoneType was added in Python 3.10, it is basically type(None)
@uda

uda commented Jul 12, 2025

Copy link
Copy Markdown
Contributor Author

Added a backport for NoneType which was added in Python 3.10, added a test for it and locally tested on all currently supported versions (I also tested 3.13, but that is out of scope for this PR, can open a separate PR for that

@justinmayer justinmayer changed the title Update to base django 5.2 Update to base Django 5.2 Jul 13, 2025

@justinmayer justinmayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Many thanks for these enhancements, Yehuda! 🌟

@justinmayer
justinmayer merged commit 60c177a into getpelican:main Jul 13, 2025
6 checks passed
@uda uda mentioned this pull request Aug 17, 2025
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.

2 participants