Remove django 1.9 support and fix PEP8
This commit is contained in:
1 parent
dcbcb0883c
commit
317156bf2b
4 files changed
+3
-11
No files matched your search
@@ -3,15 +3,11 @@ language: python
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- python: 2.7
|
||||
env: TOXENV=py27-django19
|
||||
- python: 2.7
|
||||
env: TOXENV=py27-django110
|
||||
- python: 2.7
|
||||
env: TOXENV=py27-django111
|
||||
|
||||
- python: 3.4
|
||||
env: TOXENV=py34-django19
|
||||
- python: 3.4
|
||||
env: TOXENV=py34-django110
|
||||
- python: 3.4
|
||||
@@ -19,8 +15,6 @@ matrix:
|
||||
- python: 3.4
|
||||
env: TOXENV=py34-django20
|
||||
|
||||
- python: 3.5
|
||||
env: TOXENV=py35-django19
|
||||
- python: 3.5
|
||||
env: TOXENV=py35-django110
|
||||
- python: 3.5
|
||||
|
||||
@@ -43,7 +43,8 @@ class MigrationLinter(object):
|
||||
self.include_apps = kwargs.get('include_apps', None)
|
||||
self.exclude_apps = kwargs.get('exclude_apps', None)
|
||||
self.database = kwargs.get('database', None) or 'default'
|
||||
self.python_exe = '{0}/bin/{1}'.format(sys.prefix, 'python') if hasattr(sys, 'real_prefix') else 'python'
|
||||
self.python_exe = '{0}/bin/{1}'.format(sys.prefix, 'python') if \
|
||||
hasattr(sys, 'real_prefix') else 'python'
|
||||
|
||||
# Initialise counters
|
||||
self.nb_valid = 0
|
||||
|
||||
@@ -28,7 +28,7 @@ install_requirements = [
|
||||
test_requirements = [
|
||||
'pytest',
|
||||
'tox',
|
||||
'django>=1.9',
|
||||
'django>=1.10',
|
||||
'django-fake-database-backends',
|
||||
]
|
||||
|
||||
@@ -59,7 +59,6 @@ setup(
|
||||
'Intended Audience :: Developers',
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Framework :: Django :: 1.9',
|
||||
'Framework :: Django :: 1.10',
|
||||
'Framework :: Django :: 1.11',
|
||||
'Framework :: Django :: 2.0',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[tox]
|
||||
envlist =
|
||||
py{27,34,35}-django19
|
||||
py{27,34,35}-django110
|
||||
py{27,34,35,36}-django111
|
||||
py{34,35,36}-django20
|
||||
@@ -11,7 +10,6 @@ commands = py.test {posargs}
|
||||
extras = test
|
||||
pip_pre = true
|
||||
deps =
|
||||
django19: django>=1.9,<1.10
|
||||
django110: django>=1.10,<1.11
|
||||
django111: django>=1.11,<2.0
|
||||
django20: django>=2.0
|
||||
|
||||
Reference in new issue
Block a user