Skip to content

Commit 2c1c9d8

Browse files
test against django 1.11 (#2)
* depend on celery < 4.0
1 parent 676d94e commit 2c1c9d8

File tree

6 files changed

+44
-11
lines changed

6 files changed

+44
-11
lines changed

.travis.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sudo: required
33
cache:
44
directories:
55
- $HOME/.cache/pip
6-
install: pip install --upgrade pip tox wheel
6+
install: pip install --upgrade pip setuptools tox wheel
77
before_script:
88
- wget -q http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
99
- tar -xf ffmpeg-*.tar.xz -v
@@ -15,6 +15,14 @@ env:
1515
- TOXENV=py27-django-17
1616
- TOXENV=py27-django-18
1717
- TOXENV=py27-django-19
18+
- TOXENV=py27-django-110
19+
- TOXENV=py27-django-111
1820
- TOXENV=py34-django-18
1921
- TOXENV=py34-django-19
20-
- TOXENV=coveralls
22+
- TOXENV=py34-django-110
23+
- TOXENV=py34-django-111
24+
- TOXENV=py35-django-18
25+
- TOXENV=py35-django-19
26+
- TOXENV=py35-django-110
27+
- TOXENV=py35-django-111
28+
- TOXENV=coveralls

encode/models.py

+3
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ class Meta:
586586
verbose_name = _("Video Clip")
587587
verbose_name_plural = _("Video Clips")
588588

589+
589590
pre_save.connect(check_file_changed, sender=Video)
590591

591592

@@ -606,6 +607,7 @@ class Meta:
606607
verbose_name = _("Audio Clip")
607608
verbose_name_plural = _("Audio Clips")
608609

610+
609611
pre_save.connect(check_file_changed, sender=Audio)
610612

611613

@@ -626,4 +628,5 @@ class Meta:
626628
verbose_name = _("Snapshot")
627629
verbose_name_plural = _("Snapshots")
628630

631+
629632
pre_save.connect(check_file_changed, sender=Snapshot)

encode/tests/settings.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
TEMPLATES = [
1616
{
1717
'BACKEND': 'django.template.backends.django.DjangoTemplates',
18-
'APP_DIRS': True
18+
'APP_DIRS': True,
19+
'OPTIONS': {
20+
'context_processors': [
21+
'django.contrib.auth.context_processors.auth',
22+
],
23+
},
1924
},
2025
]
2126

setup.cfg

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
[flake8]
22
ignore = E121, E122, E123, E125, E126, E127, E128
3-
exclude = doc/*, encode/migrations/*, encode/tests/*
3+
exclude =
4+
.ropeproject,
5+
.tox,
6+
.eggs,
7+
# No need to traverse our git directory
8+
.git,
9+
# There's no value in checking cache directories
10+
__pycache__,
11+
doc,
12+
build,
13+
dist,
14+
encode/migrations/*,
15+
encode/tests/*

setup.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright Collab 2012-2016
2+
# Copyright Collab 2012-2017
33
# See LICENSE for details.
44

55
import os
@@ -37,7 +37,6 @@ def run_tests(self):
3737
name='django-encode',
3838
packages=find_packages(),
3939
include_package_data=True,
40-
tests_require=['tox'],
4140
cmdclass={'test': Tox},
4241
version=version,
4342
description='Django media encoding.',
@@ -54,14 +53,18 @@ def run_tests(self):
5453
'Programming Language :: Python :: 3',
5554
'Programming Language :: Python :: 3.3',
5655
'Programming Language :: Python :: 3.4',
56+
'Programming Language :: Python :: 3.5'
5757
],
5858
author='Collab',
5959
author_email='[email protected]',
6060
url='http://github.com/collab-project/django-encode',
6161
license='MIT',
6262
install_requires=[
63-
'celery>=3.1',
63+
'celery>=3.1,<4.0',
6464
'django-appconf>=0.6',
6565
'django-queued-storage>=0.8.0'
66-
]
66+
],
67+
tests_require=[
68+
'tox'
69+
],
6770
)

tox.ini

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright Collab 2013-2016
1+
# Copyright Collab 2013-2017
22
# See LICENSE for details.
33
#
44
# Tox (https://tox.testrun.org/) is a tool for running tests
@@ -9,7 +9,7 @@
99
[tox]
1010
envlist =
1111
{py27}-django-{17,18,19}
12-
{py34}-django-{18,19}
12+
{py34,py35,py36}-django-{18,19,110,111}
1313
skipsdist = False
1414
skip_missing_interpreters = True
1515

@@ -31,6 +31,8 @@ deps =
3131
django-17: Django>=1.7,<1.8
3232
django-18: Django>=1.8,<1.9
3333
django-19: Django>=1.9,<1.10
34+
django-110: Django>=1.10,<1.11
35+
django-111: Django>=1.11,<2.0.0
3436
{[base]deps}
3537

3638

@@ -41,6 +43,6 @@ commands =
4143
{[testenv]commands}
4244
coveralls
4345
deps =
44-
Django>=1.8,<1.9
46+
Django>=1.11,<2.0.0
4547
coveralls
4648
{[base]deps}

0 commit comments

Comments
 (0)