File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 2525 - django_version : ' 3.1'
2626 python_version : ' 3.5'
2727
28- - django_version : ' 3.1 '
28+ - django_version : ' 3.2 '
2929 python_version : ' 3.5'
3030 include :
3131 - django_version : ' 2.2'
6666 sudo apt-get install -y libproj-dev libgeos-dev gdal-bin libgdal-dev
6767 python -m pip install --upgrade pip
6868 pip install -U flake8 coveralls psycopg2-binary argparse
69- pip install -U Django~=${{ matrix.django_version }}
69+ pip install -U Django~=${{ matrix.django_version }}.0
7070 - name : Lint with flake8
7171 run : |
7272 flake8 --ignore=E501,W504 leaflet
Original file line number Diff line number Diff line change 11from collections import OrderedDict
2+ from distutils .version import LooseVersion
23from urllib .parse import urlparse
34
5+ import django
46from django .conf import settings
57from django .core .exceptions import ImproperlyConfigured
68from django .templatetags .static import static
@@ -182,4 +184,5 @@ def _normalize_plugins_config():
182184 PLUGINS ['__is_normalized__' ] = True
183185
184186
185- default_app_config = 'leaflet.apps.LeafletConfig'
187+ if LooseVersion (django .__version__ ) < LooseVersion ('3.2' ):
188+ default_app_config = 'leaflet.apps.LeafletConfig'
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ envlist =
99[testenv]
1010commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run ./quicktest.py leaflet --db ={env:DATABASE:}
1111deps =
12- django22: Django~=2.2
13- django30: Django~=3.0
14- django31: Django~=3.1
15- django32: Django~=3.2
12+ django22: Django~=2.2.0
13+ django30: Django~=3.0.0
14+ django31: Django~=3.1.0
15+ django32: Django~=3.2.0
1616 djangomain: https://github.com/django/django/archive/main.tar.gz
1717 postgres: psycopg2-binary
1818 coverage
You can’t perform that action at this time.
0 commit comments