Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for Django 4.0 and update test matrix #73

Merged
merged 10 commits into from
Oct 25, 2022

Conversation

Stormheg
Copy link
Member

This PR supersedes #72, commits retained because the original author deserves the attribution. Thanks for setting this in motion @AetherUnbound!

This PR updates the django-bakery dependency to 0.13.1 which includes support for Django 4.0. This means there is nothing holding us back anymore from supporting Django 4.0 and higher.

I've fixed the remaining compatibility issues with Django 4 and updated the testing matrix to the latest supported Django / Python / Wagtail versions.

Notably, this PR drops support for:

  • Django 2.2, 3.0 and 3.1
  • Wagtail 2.14 and older
  • Python 3.6 and 3.7 (3.7 is quite old and not supported by Django 4.1)

Support for the following Django / Python / Wagtail versions has been added:

  • Wagtail 2.15 LTS; v4.0 and the upcoming v4.1 LTS release.
    • v3.0 is not explicitly supported because it is near end of support but should probably work.
  • Django 4.0 and 4.1
  • Python 3.10

All tests pass for me locally but I have not given this a test drive in a real project. We should verify everything still works as expected before making a new release.

AetherUnbound and others added 9 commits October 14, 2022 19:47
- Drop Wagtail 2.11 and 2.13.
- Drop Django 2.2, 3.0 and 3.1
- Drop Python 3.6
- Add Wagtail 2.15, 4.0 and 4.1rc1
- Add Django 4.0 and 4.1
- Add Python 3.10

New matrix should cover most Python / Django / Wagtail combinations
without creating a huge amount of items in the matrix.
I don't like yaml :(
@Stormheg Stormheg linked an issue Oct 21, 2022 that may be closed by this pull request
@AetherUnbound
Copy link
Contributor

Thanks so much @Stormheg! 😄 Is there any chance you could publish a release candidate for this? I'd love to test it out on the site I help run to see if it works before a full version release 🙂

@Stormheg
Copy link
Member Author

Hi @AetherUnbound, I'd like to get a sanity-check / review from another core team member in first before publishing a release candidate.

If you want to, you could start testing this right now from my branch. Just pip install git+https://github.com/Stormheg/wagtail-bakery.git@chore/django-4x-compat.

Keen to hear about any issues you might encounter!

Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

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

Had a cursory look, no immediate issues spring to mind.
Made a couple of minor suggestions

tox.ini Outdated Show resolved Hide resolved
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Copy link
Contributor

Choose a reason for hiding this comment

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

given this, should we mandata python>=3.8 in install requires?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't currently mandate any Python version for wagtail-bakery. Python 3.7 should still work as long as you use a compatible Django.

I'm not entirely convinced mandating a Python version is strictly necessary, one should be able to use Python 3.7 (or even 3.6) with, say, Django 3.2 and Wagtail 2.15. Adding python_requires='>=3.8' would prevent one from doing this.

To me, the meaning of removing these versions from the classifiers means 'we don't guarantee support for those versions anymore, but feel free to try.'

My position is debatable of course. Happy to hear other insights on this subject.

Copy link
Contributor

Choose a reason for hiding this comment

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

Works for me

@AetherUnbound
Copy link
Contributor

Tested this on our project, the build command we use for testing didn't raise any errors! https://github.com/pycascades/pycascades-cms/actions/runs/3302171649/jobs/5448653445

@Stormheg Stormheg merged commit 27da88b into wagtail-nest:master Oct 25, 2022
@Stormheg
Copy link
Member Author

Thanks for the review @zerolab 🙏

@AetherUnbound great to hear you are not encountering any issues!

There are some things in #74 I'd like to see in to the next release. Mostly some readme changes and a few setup.py tweaks that are visible on PyPI. Without committing to a timeline, you can expect a release 'soon'.

@Stormheg Stormheg deleted the chore/django-4x-compat branch November 4, 2022 09:36
@Stormheg
Copy link
Member Author

Stormheg commented Nov 4, 2022

@AetherUnbound this is now released in 0.6.0!

@AetherUnbound
Copy link
Contributor

Incredible, thank you!

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.

Nightly CI failure since Wagtail 2.16
3 participants