Add Django 1.10 support
This commit is contained in:
parent
0c8a90e48f
commit
94c2168af1
8 changed files with 44 additions and 5 deletions
|
@ -11,16 +11,22 @@ matrix:
|
|||
env: TOX_ENV=py27-django18
|
||||
- python: "2.7"
|
||||
env: TOX_ENV=py27-django19
|
||||
- python: "2.7"
|
||||
env: TOX_ENV=py27-django110
|
||||
- python: "3.4"
|
||||
env: TOX_ENV=py34-django17
|
||||
- python: "3.4"
|
||||
env: TOX_ENV=py34-django18
|
||||
- python: "3.4"
|
||||
env: TOX_ENV=py34-django19
|
||||
- python: "3.4"
|
||||
env: TOX_ENV=py34-django110
|
||||
- python: "3.5"
|
||||
env: TOX_ENV=py35-django18
|
||||
- python: "3.5"
|
||||
env: TOX_ENV=py35-django19
|
||||
- python: "3.5"
|
||||
env: TOX_ENV=py35-django110
|
||||
- python: "2.7"
|
||||
env: TOX_ENV=coverage
|
||||
cache:
|
||||
|
|
|
@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
|
|||
.. contents:: Table of Contents
|
||||
:depth: 2
|
||||
|
||||
Unreleased
|
||||
==========
|
||||
|
||||
Added
|
||||
-----
|
||||
* Add Django 1.10 support
|
||||
|
||||
|
||||
v0.7.1 - 2016-08-24
|
||||
===================
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -38,7 +38,7 @@ dist:
|
|||
|
||||
test_venv/bin/python:
|
||||
virtualenv test_venv
|
||||
test_venv/bin/pip install -U --requirement requirements-dev.txt 'Django<1.10'
|
||||
test_venv/bin/pip install -U --requirement requirements-dev.txt 'Django<1.11'
|
||||
|
||||
test_venv/cas/manage.py: test_venv
|
||||
mkdir -p test_venv/cas
|
||||
|
|
|
@ -29,7 +29,7 @@ Dependencies
|
|||
|
||||
``django-cas-server`` depends on the following python packages:
|
||||
|
||||
* Django >= 1.7.1 < 1.10
|
||||
* Django >= 1.7.1 < 1.11
|
||||
* requests >= 2.4
|
||||
* requests_futures >= 0.9.5
|
||||
* lxml >= 3.4
|
||||
|
|
|
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.9/ref/settings/
|
|||
"""
|
||||
|
||||
import os
|
||||
import django
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -40,7 +41,7 @@ INSTALLED_APPS = [
|
|||
'cas_server',
|
||||
]
|
||||
|
||||
MIDDLEWARE_CLASSES = [
|
||||
MIDDLEWARE = [
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
|
@ -50,6 +51,8 @@ MIDDLEWARE_CLASSES = [
|
|||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
]
|
||||
if django.VERSION < (1, 10):
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Django >= 1.7.1,<1.10
|
||||
Django >= 1.7.1,<1.11
|
||||
setuptools>=5.5
|
||||
requests>=2.4
|
||||
requests_futures>=0.9.5
|
||||
|
|
3
setup.py
3
setup.py
|
@ -34,6 +34,7 @@ if __name__ == '__main__':
|
|||
'Framework :: Django :: 1.7',
|
||||
'Framework :: Django :: 1.8',
|
||||
'Framework :: Django :: 1.9',
|
||||
'Framework :: Django :: 1.10',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: System Administrators',
|
||||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
||||
|
@ -58,7 +59,7 @@ if __name__ == '__main__':
|
|||
},
|
||||
keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'],
|
||||
install_requires=[
|
||||
'Django >= 1.7,<1.10', 'requests >= 2.4', 'requests_futures >= 0.9.5',
|
||||
'Django >= 1.7,<1.11', 'requests >= 2.4', 'requests_futures >= 0.9.5',
|
||||
'lxml >= 3.4', 'six >= 1'
|
||||
],
|
||||
url="https://github.com/nitmir/django-cas-server",
|
||||
|
|
21
tox.ini
21
tox.ini
|
@ -5,11 +5,14 @@ envlist=
|
|||
py27-django17,
|
||||
py27-django18,
|
||||
py27-django19,
|
||||
py27-django110,
|
||||
py34-django17,
|
||||
py34-django18,
|
||||
py34-django19,
|
||||
py34-django110,
|
||||
py35-django18,
|
||||
py35-django19,
|
||||
py35-django110,
|
||||
|
||||
[flake8]
|
||||
max-line-length=100
|
||||
|
@ -53,6 +56,12 @@ deps =
|
|||
Django>=1.9,<1.10
|
||||
{[base]deps}
|
||||
|
||||
[testenv:py27-django110]
|
||||
basepython=python2.7
|
||||
deps =
|
||||
Django>=1.10,<1.11
|
||||
{[base]deps}
|
||||
|
||||
[testenv:py34-django17]
|
||||
basepython=python3.4
|
||||
deps =
|
||||
|
@ -71,6 +80,12 @@ deps =
|
|||
Django>=1.9,<1.10
|
||||
{[base]deps}
|
||||
|
||||
[testenv:py34-django110]
|
||||
basepython=python3.4
|
||||
deps =
|
||||
Django>=1.10,<1.11
|
||||
{[base]deps}
|
||||
|
||||
[testenv:py35-django18]
|
||||
basepython=python3.5
|
||||
deps =
|
||||
|
@ -83,6 +98,12 @@ deps =
|
|||
Django>=1.9,<1.10
|
||||
{[base]deps}
|
||||
|
||||
[testenv:py35-django110]
|
||||
basepython=python3.5
|
||||
deps =
|
||||
Django>=1.10,<1.11
|
||||
{[base]deps}
|
||||
|
||||
|
||||
[testenv:flake8]
|
||||
basepython=python
|
||||
|
|
Loading…
Reference in a new issue