Use django-appconf to 1.0.3+

New Django deprecates six usage and the new
django-appconf version offers six internally,
being compatible with new Django versions.

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
Aleksi Häkli 2019-03-09 21:27:18 +02:00
parent b46e7cce01
commit 180f2b85d6
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE
2 changed files with 1 additions and 11 deletions

View file

@ -1,13 +1,3 @@
# TODO: Remove these imports after django-appconf does not depend on django.utils.six
try:
from django.utils import six # noqa
except ImportError: # pragma: no cover
import sys
import warnings
sys.modules['django.utils.six'] = __import__('six')
warnings.warn('django.utils.six was patched for django-appconf backwards compatibility', ImportWarning)
from django.conf import settings
from django.utils.translation import gettext_lazy as _

View file

@ -35,7 +35,7 @@ setup(
python_requires='~=3.5',
install_requires=[
'django',
'django-appconf',
'django-appconf>=1.0.3',
'django-ipware>=2.0.2',
'pytz',
'six',