Skip to content

Commit 1b41938

Browse files
committed
Add support for Python 3.8, Django 3.0 and djangorestframwork 3.11
1 parent c2e3631 commit 1b41938

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ python:
77
- 3.5
88
- 3.6
99
- 3.7
10+
- 3.8
1011
install:
1112
- pip install tox-travis
1213
script:

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ JSON Web Token Authentication support for Django REST Framework
77

88
## Overview
99

10-
This package provides [JSON Web Token Authentication][jwt-auth-spec] support
10+
This package provides [JSON Web Token Authentication][jwt-auth-spec] support
1111
for [Django REST framework][drf].
1212

1313
If you want to know more about JWT, check out the following resources:
@@ -18,8 +18,8 @@ If you want to know more about JWT, check out the following resources:
1818

1919
## Requirements
2020

21-
- Python 2.7, 3.4, 3.5, 3.6, 3.7
22-
- Django 1.11, 2.0, 2.1, 2.2
21+
- Python 2.7, 3.4+
22+
- Django 1.11+
2323
- Django REST Framework 3.7+
2424

2525
## Installation

docs/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If you want to know more about JWT, check out the following resources:
1414

1515
## Requirements
1616

17-
- Python 2.7, 3.4, 3.5, 3.6, 3.7
18-
- Django 1.11, 2.0, 2.1, 2.2
17+
- Python 2.7, 3.4+
18+
- Django 1.11+
1919
- Django REST Framework 3.7+
2020

2121
## Security
@@ -256,7 +256,7 @@ Default is `datetime.timedelta(seconds=300)` (5 minutes).
256256

257257
### JWT_ALLOW_REFRESH
258258

259-
Enable token refresh functionality. Token issued from `rest_framework_jwt.views.obtain_jwt_token` will have an `orig_iat` field.
259+
Enable token refresh functionality. Token issued from `rest_framework_jwt.views.obtain_jwt_token` will have an `orig_iat` field.
260260

261261
Default is `True`.
262262

@@ -268,7 +268,7 @@ Default is `datetime.timedelta(days=7)` (7 days).
268268

269269
### JWT_AUTH_HEADER_PREFIX
270270

271-
You can modify the Authorization header value prefix that is required to be sent together with the token.
271+
You can modify the Authorization header value prefix that is required to be sent together with the token.
272272

273273
Default value is `Bearer`.
274274

@@ -291,7 +291,7 @@ def jwt_create_response_payload(token, user=None, request=None, issued_at=None):
291291
Note that we are using `pk` field here - this is for forward compatibility
292292
with drf add-ons that might require `pk` field in order (eg. jsonapi).
293293
"""
294-
294+
295295
response_payload = namedtuple('ResponsePayload', 'pk token user')
296296
response_payload.pk = issued_at
297297
response_payload.token = token

tox.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py{34,35,36,37}-dj20-drf{37,38,39}-codecov
66
py{35,36,37}-dj21-drf{37,38,39,310}-codecov
77
py{35,36,37}-dj22-drf{37,38,39,310}-codecov
8+
py{36,37,38}-dj30-drf{311}-codecov
89

910
[travis:env]
1011
TRAVIS =
@@ -24,10 +25,12 @@ deps =
2425
dj20: Django>=2.0,<2.1
2526
dj21: Django>=2.1,<2.2
2627
dj22: Django>=2.2,<2.3
28+
dj30: Django>=3.0,<3.1
2729
drf37: djangorestframework>=3.7,<3.8
2830
drf38: djangorestframework>=3.8,<3.9
2931
drf39: djangorestframework>=3.9,<3.10
30-
drf310: djangorestframework>=3.10
32+
drf310: djangorestframework>=3.10,<3.11
33+
drf311: djangorestframework>=3.11,<3.12
3134
coverage: coverage
3235
codecov: codecov
3336
# bash is used to create the codecov flags from the envname,

0 commit comments

Comments
 (0)