Skip to content

Commit d5c1139

Browse files
vthaianFinalAngel
authored andcommitted
Added support for CMS 3.7 and Django 2.2 (#40)
* Added support for Django 2.2 * Updated travis jobs * Fixed Django 2.2 range * Fixed version in changelog * Fixed travis * Updated readme * Fix typo * added fixes
1 parent 07a9da2 commit d5c1139

File tree

6 files changed

+32
-13
lines changed

6 files changed

+32
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.idea/
1010
.project/
1111
.pydevproject/
12+
.vscode/
1213
.settings/
1314
.tox/
1415
__pycache__/

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,28 @@ matrix:
1515
env: DJANGO='dj111' CMS='cms35'
1616
- python: 3.5
1717
env: DJANGO='dj111' CMS='cms36'
18-
# Django 2.0
19-
- python: 3.5
20-
env: DJANGO='dj20' CMS='cms36'
18+
- python: 3.6
19+
env: DJANGO='dj111' CMS='cms37'
2120
# Django 2.1
2221
- python: 3.6
2322
env: DJANGO='dj21' CMS='cms36'
23+
- python: 3.6
24+
env: DJANGO='dj21' CMS='cms37'
25+
# Django 2.2
26+
- python: 3.6
27+
env: DJANGO='dj22' CMS='cms37'
28+
- python: 3.7
29+
env: DJANGO='dj22' CMS='cms37'
30+
dist: xenial
31+
sudo: true
2432

2533
install:
2634
- pip install coverage isort tox
2735
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PY_VER=py27; fi"
2836
- "if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then export PY_VER=py34; fi"
2937
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi"
3038
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PY_VER=py36; fi"
39+
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then export PY_VER=py37; fi"
3140
- "if [[ ${DJANGO}z != 'z' ]]; then export TOX_ENV=$PY_VER-$DJANGO-$CMS; fi"
3241

3342
script:

CHANGELOG.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Changelog
33
=========
44

55

6-
2.2.1 (unreleased)
6+
2.3.0 (unreleased)
77
==================
88

9+
* Added support for Django 2.2 and django CMS 3.7
10+
* Removed support for Django 2.0
911
* Extended test matrix
1012
* Added isort and adapted imports
1113
* Adapted code base to align with other supported addons

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ You can run tests by executing::
9797

9898
.. |python| image:: https://img.shields.io/badge/python-2.7%20%7C%203.4+-blue.svg
9999
:target: https://pypi.org/project/djangocms-file/
100-
.. |django| image:: https://img.shields.io/badge/django-1.11%20%7C%202.0%20%7C%202.1-blue.svg
100+
.. |django| image:: https://img.shields.io/badge/django-1.11%20%7C%202.1%20%7C%202.2-blue.svg
101101
:target: https://www.djangoproject.com/
102102
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.4%2B-blue.svg
103103
:target: https://www.django-cms.org/

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,23 @@
1818
'Intended Audience :: Developers',
1919
'License :: OSI Approved :: BSD License',
2020
'Operating System :: OS Independent',
21-
'Framework :: Django',
22-
'Framework :: Django :: 1.11',
23-
'Framework :: Django :: 2.0',
24-
'Framework :: Django :: 2.1',
2521
'Programming Language :: Python',
2622
'Programming Language :: Python :: 2',
2723
'Programming Language :: Python :: 2.7',
2824
'Programming Language :: Python :: 3',
2925
'Programming Language :: Python :: 3.4',
3026
'Programming Language :: Python :: 3.5',
3127
'Programming Language :: Python :: 3.6',
28+
'Programming Language :: Python :: 3.7',
29+
'Framework :: Django',
30+
'Framework :: Django :: 1.11',
31+
'Framework :: Django :: 2.1',
32+
'Framework :: Django :: 2.2',
33+
'Framework :: Django CMS',
34+
'Framework :: Django CMS :: 3.4',
35+
'Framework :: Django CMS :: 3.5',
36+
'Framework :: Django CMS :: 3.6',
37+
# 'Framework :: Django CMS :: 3.7',
3238
'Topic :: Internet :: WWW/HTTP',
3339
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
3440
'Topic :: Software Development',

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ envlist =
33
flake8
44
isort
55
py{27,34,35,36}-dj111-cms{34,35,36}
6-
py{34,35,36}-dj20-cms36
7-
py{35,36}-dj21-cms36
6+
py{27,35,36}-dj111-cms37
7+
py{35,36,37}-dj{21,22}-cms{36,37}
88

99
skip_missing_interpreters=True
1010

@@ -41,11 +41,12 @@ known_django = django
4141
deps =
4242
-r{toxinidir}/tests/requirements.txt
4343
dj111: Django>=1.11,<2.0
44-
dj20: Django>=2.0,<2.1
4544
dj21: Django>=2.1,<2.2
45+
dj22: Django>=2.2,<3.0
4646
cms34: django-cms>=3.4,<3.5
4747
cms35: django-cms>=3.5,<3.6
48-
cms36: https://github.com/divio/django-cms/archive/release/3.6.x.zip
48+
cms36: django-cms>=3.6,<3.7
49+
cms37: https://github.com/divio/django-cms/archive/release/3.7.x.zip
4950
commands =
5051
{envpython} --version
5152
{env:COMMAND:coverage} erase

0 commit comments

Comments
 (0)