-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
add django 3.2 and 4.0 support #112
Conversation
@jezdez could you please take a look at that PR. |
c53f087
to
d276e93
Compare
Codecov Report
@@ Coverage Diff @@
## master #112 +/- ##
=======================================
Coverage 79.85% 79.85%
=======================================
Files 7 7
Lines 134 134
Branches 13 13
=======================================
Hits 107 107
Misses 20 20
Partials 7 7 Continue to review full report at Codecov.
|
@@ -2,7 +2,7 @@ | |||
envlist = | |||
# list of supported Django/Python versions: | |||
# https://docs.djangoproject.com/en/3.1/faq/install/#what-python-version-can-i-use-with-django | |||
py{36,37,38,39}-dj{22,30,31} | |||
py{36,37,38,39}-dj{22,30,31,32} | |||
py{38,39}-djmain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add Django 4.0 support as well while we're here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get any chance to explore Django 4 yet but I will see if it's a quick fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smithdc1 Django 4.0 is not yet final so better to wait for the final release which is due in December.
https://code.djangoproject.com/wiki/Version4.0Roadmap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's final in terms of features and changes. The only patches being applied to the 4.0 branch are bug fixes. Folk are adding the classifier to their packages already. See:
https://pypi.org/search/?c=Framework+%3A%3A+Django+%3A%3A+4.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smithdc1 I'm waiting for your review, thanks
8837546
to
9861826
Compare
@smithdc1 your feedback is addressed so it's ready for review again. |
ebf113d
to
18c84b6
Compare
@smithdc1 I have added 4.0 support as well and it seems to be working fine. Here are screenshots of running tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this 👍
I think we're nearly there. I've re-run the tests but expecting to see them fail as Django 4.0 should fail with Python 3.6&3.7.
I'm sorry, I forgot about the classifiers when looking at this before. 🤦♂️ They are in the Apologies. |
@smithdc1 I have already added django 3.2 and 4 in the classifiers too. I am not sure, what do you mean by that? |
@umarmughal824 -- Sorry, having a bad day. Thanks for the contribution. 🙏 |
feel better |
@umarmughal824 This is prereleased at 5.0b1 if you'd like to give it a go. Would like some testing before final is published |
@umarmughal824 and @smithdc1 There is an issue that came up due to this PR in #124, can you take a closer look? |
Add django 3.2 and 4.0 support
I am facing the following warning while upgrading the django to 3.2 which take the default variable for
DEFAULT_AUTO_FIELD
refSo in lieu of that I am facing the error in my CI/CD that is