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

Adding django CMS 3 compatibility #50

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Adding django CMS 3 compatibility #50

wants to merge 9 commits into from

Conversation

Bernardvdv
Copy link
Contributor

@Bernardvdv Bernardvdv commented Feb 2, 2021

Adding django CMS 3 compatibility.

Fixes #49

@Bernardvdv
Copy link
Contributor Author

Updated test requirements

Copy link
Contributor

@Aiky30 Aiky30 left a comment

Choose a reason for hiding this comment

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

Requires the following changes to work (I have tested them):

In compat.py

The cms 3 compat is only looking for 3.6 and not less than 4:

From:
CMS_36 = LooseVersion(CMS_VERSION) < LooseVersion("3.6")

To:
CMS_LT_4 = LooseVersion(CMS_VERSION) < LooseVersion("4.0")

The tests for skipping using CMS_36, will need to reference CMS_LT_4

In tox.ini

The tox.ini file needs to have the following spec:
py{36,37,38}-dj{111,20,21,22}-sqlite-cms40-{default,versioning}
py{36,37,38}-dj22-sqlite-{cms37,cms38}-default

Notice that the py35 is missing and 38 has been added. The base list in the tox.ini will need to match this configuration too,

@Bernardvdv
Copy link
Contributor Author

Requested changes made. Additionally, updated all import occurrences of the CMS_LT_4.

Copy link
Contributor

@Aiky30 Aiky30 left a comment

Choose a reason for hiding this comment

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

looks good to me. :-)

Copy link
Contributor

@Aiky30 Aiky30 left a comment

Choose a reason for hiding this comment

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

Damn we've missed a couple of things

  1. we haven't told tox what cms37, cms38 are.
  2. There's also the circle ci config to change too which is completely separate. I'll do that in a separate PR which basically removes Python 3.5 and adds 3.8 and 3.9 support.

This is pending further changes from me I'm afraid. Sorry I was hoping to bring this change in for 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.

This package is no longer working on django-cms 3.X!
3 participants