Skip to content

Commit

Permalink
Support Django 3.0
Browse files Browse the repository at this point in the history
Also updates the version of PyPy we test against
  • Loading branch information
moggers87 committed Dec 6, 2019
1 parent 352ebb2 commit 920fcca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- pypy3.5-6.0
- pypy3.6-7.1.1


install: pip install tox-travis codecov
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ etc is done elsewhere.
Supported Django Versions
=========================

Django 1.11, 2.1, and 2.2 are currently supported by this library.
Django 2.1, 2.2, and 3.0 are currently supported by this library.

Supported Python Versions
=========================

Python 2.7, 3.5, 3.6. 3.7, and 3.8 are currently supported by this library.
Python 3.5, 3.6. 3.7, and 3.8 are currently supported by this library.

Installation
============
Expand Down
8 changes: 4 additions & 4 deletions examples/protected_downloads/download/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404, render_to_response
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseForbidden
from django.db.models import Q
from django.template import RequestContext
Expand Down Expand Up @@ -29,6 +29,6 @@ def download_list(request):
downloads = downloads.filter(Q(is_public=True) | Q(users=request.user))
else:
downloads = downloads.filter(is_public=True)
return render_to_response('download/download_list.html',
{'download_list': downloads},
context_instance=RequestContext(request))
return render(request, 'download/download_list.html',
{'download_list': downloads},
context_instance=RequestContext(request))
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[tox]
envlist =
clean
py{py3,35,36,37,38}-django{21,22}
py{py3,36,37,38}-django{21,22,30}
py35-django{21,22}
flake8
coverage

Expand All @@ -10,11 +11,13 @@ usedevelop=True
deps =
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
coverage
changedir = examples/protected_downloads
commands =
python --version
coverage run --rcfile=../../.coveragerc -a manage.py test django_sendfile {posargs}
setenv = PYTHONWARNINGS = default

[travis]
python =
Expand Down

0 comments on commit 920fcca

Please sign in to comment.