puput icon indicating copy to clipboard operation
puput copied to clipboard

Adds support up to Wagtail 5.2

Open leewesleyv opened this issue 1 year ago • 5 comments

Resolves #285

leewesleyv avatar Jan 09 '24 13:01 leewesleyv

@leewesleyv Hi! Wagtail 5.2 supports Django 4.2.x and 5.0.x.
Is there a reason for 'Django>=3.2,<4.3' requirement?

itbabu avatar Jan 21 '24 12:01 itbabu

@itbabu I was thinking of removing the Django dependency in its entirety, but wasn't sure if that would be the best way forward. The main aim here was to support both Wagtail LTS (5.2) and Django LTS (4.2), where Django was already supported. Hence why I only bumped Wagtail. I'd love to hear what you would recommend in terms of supported versions.

leewesleyv avatar Jan 22 '24 08:01 leewesleyv

@leewesleyv

Looking into the Wagtail Release schedule (https://github.com/wagtail/wagtail/wiki/Release-schedule), I see that:

Wagtail 5.2 LTS is supported until 3 February 2025. Wagtail 5.1 is supported until 1 February 2024. Therefore, it makes sense to support only Wagtail 5.2 and above.

Inspecting the Wagtail setup (https://github.com/wagtail/wagtail/blob/main/setup.py), I found that it requires:

install_requires = [
    "Django>=4.2,<6.0",
    ...
]

Puput should support this range or a subset of it. Django 3.2 falls outside of this range, so it shouldn't be supported.

Consequently, I would remove the Django requirement from Puput setup and keep only the Wagtail requirement. The testing configurations would be:

  • Django: 4.2, 5.0 (reference: https://www.djangoproject.com/download/)
  • Wagtail: 5.2
  • Python for Django 4.2 : 3.8, 3.9, 3.10, 3.11, 3.12 (reference: https://docs.djangoproject.com/en/5.0/faq/install/)
  • Python for Django 5.0: 3.10, 3.11, 3.12 (reference: https://docs.djangoproject.com/en/5.0/faq/install/)

itbabu avatar Jan 27 '24 10:01 itbabu

@leewesleyv
You can add the changes from this fork to this PR: https://github.com/itbabu/puput/tree/feature/wagtail-52-support.

Additionally, the other requirements should be addressed: django-el-pagination: Starting from version 4.1.0, they added support for Django 5.0 and Python 3.12 (not yet on Pypi). django-taggit and wagtail-markdown: These should be compatible and work as expected. django-social-share and django-colorful I would remove these packages entirely from the project, as they are outdated.

What are your thoughts?

itbabu avatar Jan 30 '24 19:01 itbabu

@itbabu Especially to what extend django-social-share and django-colorful are used, I think it would be a good decision to remove these dependencies. I will see if I can find a fitting replacement (code-wise) for where we use these, or have a clear migration path for people that are using these functionalities.

leewesleyv avatar Jan 31 '24 10:01 leewesleyv

Merge please

kfields avatar Mar 08 '24 07:03 kfields

Hello @leewesleyv! Sorry for not paying attention to this... I'm planing to work on it this week, I'm currently testing the PR. Do you mind to update the branch is order that is good to merge, please?

csalom avatar May 21 '24 15:05 csalom

As the conflic it was because of me merging a dependabot PR, I've solved. So, lets merge. Thanks again for your work @leewesleyv and @itbabu :100:

csalom avatar May 22 '24 11:05 csalom