Skip to content

Commit df48e2b

Browse files
authored
Merge pull request jazzband#224 from MrSenko/django_20
Test with Python 3.6 and Django 2.0
2 parents 2332718 + cadfb61 commit df48e2b

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

.travis.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
sudo: false
22
language: python
3+
matrix:
4+
include:
5+
- python: 2.7
6+
env: TOX_ENV=py27-django111
7+
8+
- python: 3.5
9+
env: TOX_ENV=py35-django20
10+
11+
- python: 3.6
12+
env: TOX_ENV=flake8
13+
- python: 3.6
14+
env: TOX_ENV=py36-django20
315
addons:
416
apt:
517
packages:
618
- libenchant-dev
7-
env:
8-
- TOX_ENV=py27-django17
9-
- TOX_ENV=py27-django18
10-
- TOX_ENV=py27-django19
11-
- TOX_ENV=py27-django110
12-
- TOX_ENV=py27-django111
13-
- TOX_ENV=py34-django17
14-
- TOX_ENV=py34-django18
15-
- TOX_ENV=py34-django19
16-
- TOX_ENV=py34-django110
17-
- TOX_ENV=py34-django111
18-
- TOX_ENV=flake8
1919
install:
2020
- pip install tox
2121
script:

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This document describes changes between each past release.
77
2.7.0 (unreleased)
88
==================
99

10+
- Drop support for Django 1.7, 1.8, 1.9 and 1.10.
11+
- Django 1.11 is still supported but issues a deprecation warning.
12+
- Add support for Django 2.0
1013
- Added INCLUDE_JQUERY setting to decide whether TinyMCE.media should include
1114
a jQuery release (#190).
1215

testtinymce/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
urlpatterns = [
1111
url(r'^tinymce/', include(tinymce.urls)),
12-
url(r'^admin/', include(admin.site.urls)),
12+
url(r'^admin/', admin.site.urls),
1313
#url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
1414
# 'django.views.static.serve', {"document_root": settings.MEDIA_ROOT}),
1515
]

tinymce/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
import json
55
import logging
66

7+
import django
8+
if django.VERSION < (2,): # pragma: no cover
9+
import warnings
10+
warnings.warn("Support for Django < 2.0 will be removed soon,"
11+
"please upgrade your projects to use Django 2.0", DeprecationWarning)
12+
713
from django.http import HttpResponse
814
from django.shortcuts import render
915
from django.utils.encoding import force_text

tox.ini

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[tox]
22
envlist =
3-
py27-django{17,18,19,110,111},
4-
py34-django{17,18,19,110,111},
3+
py27-django{111},
4+
py34-django{111},
5+
py35-django{2},
6+
py36-django{2},
57
flake8
68

79
[testenv]
810
deps =
9-
django17: Django>=1.7,<1.8
10-
django18: Django>=1.8,<1.9
11-
django19: Django>=1.9,<1.10
12-
django110: Django>=1.10,<1.11
13-
django111: Django>=1.11a,<2.0
11+
django111: Django>=1.11,<2.0
12+
django20: Django>=2.0,<2.1
1413
coverage
1514
mock
1615
pyenchant

0 commit comments

Comments
 (0)