Skip to content

Commit 9303fbf

Browse files
authored
Added Django 3.1 support (#70)
* Added Django 3.1 support * fix typo * remove not supported version * rename license file * also adapt manifest file
1 parent 9db4a48 commit 9303fbf

30 files changed

+47
-99
lines changed

.travis.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,38 @@
11
language: python
22

33
dist: xenial
4-
sudo: false
54

65
matrix:
76
include:
87
- python: 3.5
98
env: TOX_ENV='flake8'
109
- python: 3.5
1110
env: TOX_ENV='isort'
12-
# Django 1.11
13-
- python: 2.7
14-
env: DJANGO='dj111' CMS='cms34'
15-
- python: 3.4
16-
env: DJANGO='dj111' CMS='cms35'
17-
- python: 3.5
18-
env: DJANGO='dj111' CMS='cms36'
19-
- python: 3.6
20-
env: DJANGO='dj111' CMS='cms37'
21-
# Django 2.1
22-
- python: 3.6
23-
env: DJANGO='dj21' CMS='cms36'
24-
- python: 3.6
25-
env: DJANGO='dj21' CMS='cms37'
2611
# Django 2.2
12+
- python: 3.5
13+
env: DJANGO='dj22' CMS='cms37'
2714
- python: 3.6
2815
env: DJANGO='dj22' CMS='cms37'
2916
- python: 3.7
3017
env: DJANGO='dj22' CMS='cms37'
31-
18+
- python: 3.8
19+
env: DJANGO='dj22' CMS='cms37'
20+
# Django 3.0, always run the lowest supported version
21+
- python: 3.6
22+
env: DJANGO='dj30' CMS='cms37'
23+
# Django 3.1, always run the lowest supported version
24+
- python: 3.6
25+
env: DJANGO='dj31' CMS='cms38'
26+
allow_failures:
27+
- python: 3.6
28+
env: DJANGO='dj31' CMS='cms38'
3229

3330
install:
3431
- pip install coverage isort tox
35-
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PY_VER=py27; fi"
36-
- "if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then export PY_VER=py34; fi"
3732
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi"
3833
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PY_VER=py36; fi"
3934
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then export PY_VER=py37; fi"
35+
- "if [[ $TRAVIS_PYTHON_VERSION == '3.8' ]]; then export PY_VER=py37; fi"
4036
- "if [[ ${DJANGO}z != 'z' ]]; then export TOX_ENV=$PY_VER-$DJANGO-$CMS; fi"
4137

4238
script:

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ Changelog
33
=========
44

55

6+
3.0.0 (unreleased)
7+
==================
8+
9+
* Added support for Django 3.1
10+
* Dropped support for Python 2.7 and Python 3.4
11+
* Dropped support for Django < 2.2
12+
13+
614
2.3.0 (2020-01-29)
715
==================
816

File renamed without changes.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include LICENSE.txt
1+
include LICENSE
22
include README.rst
33
recursive-include djangocms_snippet/locale *
44
recursive-include djangocms_snippet/templates *

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ You can run tests by executing::
119119
.. |coverage| image:: https://codecov.io/gh/divio/djangocms-snippet/branch/master/graph/badge.svg
120120
:target: https://codecov.io/gh/divio/djangocms-snippet
121121

122-
.. |python| image:: https://img.shields.io/badge/python-2.7%20%7C%203.4+-blue.svg
122+
.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg
123123
:target: https://pypi.org/project/djangocms-snippet/
124-
.. |django| image:: https://img.shields.io/badge/django-1.11%20%7C%202.1%20%7C%202.2-blue.svg
124+
.. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg
125125
:target: https://www.djangoproject.com/
126-
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.4%2B-blue.svg
126+
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg
127127
:target: https://www.django-cms.org/

aldryn_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from aldryn_client import forms
32

43

djangocms_snippet/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
__version__ = '2.3.0'
32

43
default_app_config = 'djangocms_snippet.apps.SnippetConfig'

djangocms_snippet/admin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from django.conf import settings
32
from django.contrib import admin
43
from django.db import models

djangocms_snippet/apps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
from django.apps import AppConfig
3-
from django.utils.translation import ugettext_lazy as _
2+
from django.utils.translation import gettext_lazy as _
43

54

65
class SnippetConfig(AppConfig):

djangocms_snippet/cms_plugins.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
from django import template
32
from django.conf import settings
43
from django.utils.html import escape
54
from django.utils.safestring import mark_safe
6-
from django.utils.translation import ugettext_lazy as _
5+
from django.utils.translation import gettext_lazy as _
76

87
from cms.plugin_base import CMSPluginBase
98
from cms.plugin_pool import plugin_pool

0 commit comments

Comments
 (0)