-
Notifications
You must be signed in to change notification settings - Fork 26
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
Added Django 3 Support #19
Conversation
@tiagocordeiro Thank you so much for this! And apologies for my late response, it was Christmas time :) I have several questions:
|
.editorconfig
Outdated
@@ -1,11 +0,0 @@ | |||
root = true |
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.
could we pls revert this file back?
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.
Sure.
.travis.yml
Outdated
install: pip install -r requirements-dev.txt codecov | ||
script: tox | ||
after_success: | ||
- codecov |
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.
based on my previous comment, maybe we could simplify this and get rid of python 2.7?
I never used travis with tox, do we need sth here extra to make cloudinary tests passing?
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.
To use tox in travis simply add credentials as environment variables in project settings in travis
cloudinary_storage/app_settings.py
Outdated
@@ -8,7 +8,7 @@ | |||
from django.core.exceptions import ImproperlyConfigured | |||
from django.dispatch import receiver | |||
from django.test.signals import setting_changed | |||
from django.utils.six.moves import reload_module | |||
from six.moves import reload_module |
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.
we could simplify things a lot by ditching python 2, like those six
imports
tests/tests/test_commands.py
Outdated
|
||
@override_settings(STATICFILES_STORAGE='cloudinary_storage.storage.StaticHashedCloudinaryStorage') | ||
@mock.patch.object(StaticHashedCloudinaryStorage, '_save') | ||
class CollectStaticCommandWithHashedStorageTests(SimpleTestCase): |
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.
could you please explain the reason for those changes? I would like to keep current coverage level
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.
All tests that depend on that mock fail, for example those that check copied files etc. I'll try to fix it
@@ -0,0 +1,8 @@ | |||
tox>=2.3.1 |
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.
why we removed test_requirements.txt and added this file? this is about current naming convention standards?
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.
No special reason. Just because some tools like pyup.io use requirements * to check dependencies.
If you prefer we can go back as it was before.
Hi @klis87 , I apologize for the delay, I was away these days.
|
@tiagocordeiro No worries, we do it in our free time anyway so no rush expected:)
Ps. Your English is fine, understood everything :) |
@tiagocordeiro thx for updates. From the diff I guess that the only thing left is fixing tests for newest Django right? |
os.remove(manifest_path) | ||
finally: | ||
StaticHashedCloudinaryStorage.manifest_name = 'staticfiles.json' | ||
# TODO: Make this test work in Django >= 2 |
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.
@klis87 I believe this is the last test I couldn't solve, I'll try again
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.
is it solved yet?
Thanks for your good work
@tiagocordeiro why did this close? you decided to leave it as is? |
No description provided.