Skip to content

Commit 5b7fadf

Browse files
author
Massimiliano Pippi
committed
Merge pull request #89 from xray7224/python26
Python 2.6 support
2 parents a36f633 + b284e9a commit 5b7fadf

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: python
22
python:
3+
- "2.6"
34
- "2.7"
45

56
install:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ guidelines <https://django-oauth-toolkit.readthedocs.org/en/latest/contributing.
4141
Requirements
4242
------------
4343

44-
* Python 2.7, 3.3
44+
* Python 2.6 2.7, 3.3
4545
* Django 1.4, 1.5, 1.6
4646

4747
Installation

oauth2_provider/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def clean(self):
9696
and self.authorization_grant_type \
9797
in (AbstractApplication.GRANT_AUTHORIZATION_CODE,
9898
AbstractApplication.GRANT_IMPLICIT):
99-
error = _('Redirect_uris could not be empty with {} grant_type')
99+
error = _('Redirect_uris could not be empty with {0} grant_type')
100100
raise ValidationError(error.format(self.authorization_grant_type))
101101

102102
def get_absolute_url(self):
@@ -232,6 +232,6 @@ def get_application_model():
232232
raise ImproperlyConfigured(e)
233233
app_model = get_model(app_label, model_name)
234234
if app_model is None:
235-
e = "APPLICATION_MODEL refers to model {} that has not been installed"
235+
e = "APPLICATION_MODEL refers to model {0} that has not been installed"
236236
raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
237237
return app_model

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def get_version(package):
3030
"Framework :: Django",
3131
"License :: OSI Approved :: BSD License",
3232
"Operating System :: OS Independent",
33+
"Programming Language :: Python :: 2.6"
3334
"Programming Language :: Python :: 2.7",
3435
"Programming Language :: Python :: 3.3",
3536
"Topic :: Software Development :: Libraries :: Python Modules",

tox.ini

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
[tox]
2-
envlist = py27-django14,py27-django15,py33-django15,py27-django16,py33-django16
2+
envlist = py26-django14,py26-django15,py26-django16,py27-django14,py27-django15,py33-django15,py27-django16,py33-django16
33

44
[testenv]
55
downloadcache = {toxworkdir}/cache/
66
commands={envpython} runtests.py
77
deps =
88
-r{toxinidir}/requirements/optional.txt
99

10+
[testenv:py26-django14]
11+
basepython = python2.6
12+
deps =
13+
Django==1.4.8
14+
{[testenv]deps}
15+
16+
[testenv:py26-django15]
17+
basepython = python2.6
18+
deps =
19+
Django==1.5.4
20+
{[testenv]deps}
21+
22+
[testenv:py26-django16]
23+
basepython = python2.6
24+
deps =
25+
Django==1.6.1
26+
{[testenv]deps}
27+
1028
[testenv:py27-django14]
1129
basepython = python2.7
1230
deps =

0 commit comments

Comments
 (0)