Skip to content

Commit 1f196fd

Browse files
author
Nikolina Krizanec
committed
Merge remote-tracking branch 'origin/master' into impersonation
# Conflicts: # demo/app/admin.py # demo/app/migrations/0001_initial.py # demo/app/models.py # demo/app/urls.py # demo/demo/urls.py # demo/demo/wsgi.py # demo/manage.py # setup.cfg # tests/test_views.py
2 parents 2a928c3 + 37d9943 commit 1f196fd

40 files changed

+889
-781
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.13.3
2+
current_version = 1.13.4
33
commit = True
44
tag = True
55
tag_name = {new_version}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
!.gitignore
33
!.travis.yml
44

5-
# The migrations are built each time
6-
tests/migrations/
7-
85
# Temporary, DB binary files
96
*~
107
*.db
@@ -76,6 +73,7 @@ coverage.xml
7673

7774
# Django stuff:
7875
*.log
76+
demo/settings/dev-*.py
7977

8078
# Sphinx documentation
8179
docs/_build/
@@ -107,3 +105,6 @@ python_boilerplate/
107105
# Sqlite3
108106
*.sqlite3
109107

108+
# virtual environment stuff
109+
venv/
110+
.python-version

.travis.yml

Lines changed: 4 additions & 0 deletions
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:
@@ -16,6 +17,9 @@ jobs:
1617
- stage: test
1718
python: '2.7.13'
1819
env: TOXENV=docs
20+
- stage: test
21+
python: '3.7'
22+
env: TOXENV=manifest
1923
- stage: deploy
2024
python: '2.7.13'
2125
env: TOXENV=py27-dj111-drf37

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ time.
1313

1414
.. towncrier release notes start
1515

16+
1.13.4 (2019-12-13)
17+
====================
18+
19+
Bugfixes
20+
--------
21+
22+
- Remove serialization on response data in `BaseJSONWebTokenAPIView` because it
23+
breaks custom response payload handlers which add extra data to the response
24+
payload. This change aligns this fork more closely with the original and makes
25+
it easier to use this fork as a drop-in replacement for the original. Also
26+
change the ReponsePayload from a `namedtuple` to a dictionary because
27+
`namedtuple` is not JSON serializable ([#22](https://github.com/Styria-Digital/django-rest-framework-jwt/pull/22))
28+
29+
1630
1.13.3 (2019-10-17)
1731
====================
1832

CONTRIBUTING.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ If it is not installed, type:
2424
$ pip install tox
2525
```
2626

27+
### Using the demo project
28+
29+
You can use the `demo` project as you would any other Django project by running `$ tox -e serve`.
30+
This creates a separate `tox` environment and executes the `runserver` command using the development settings.
31+
If you want to pass additional arguments, e.g. your custom settings, use the following syntax:
32+
33+
```bash
34+
$ tox -e serve -- --settings=demo.settings.dev-custom
35+
```
36+
2737
## Testing
2838

2939
To run the test suite against current virtual environment run the `pytest` while adding the `src` directory to `PYTHONPATH`:
@@ -85,10 +95,10 @@ The documentation should be available in `/html/index.html`.
8595

8696
The CI environment should build packages and upload them to the PyPI server
8797
when a tag is pushed to `origin`. Therefore, if you want to make a new release,
88-
all you have to do is execute the `make-release` environment in `tox`:
98+
all you have to do is execute the `release` environment in `tox`:
8999

90100
```bash
91-
$ tox -e make-release
101+
$ tox -e release
92102
```
93103

94104
This environment will merge the changelogs from the `changelog.d` directory
@@ -99,7 +109,7 @@ changes, create a tag and push the changes and the tags to `origin`.
99109
If you want to make a **patch** release, type:
100110

101111
```bash
102-
$ tox -e make-release -- patch
112+
$ tox -e release -- patch
103113
```
104114

105115
If Travis CI builds were successful release should be automatically uploaded to PyPI.org.

MANIFEST.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
include LICENSE MANIFEST.in *.md *.rst *.toml *.yml *.ini *.cfg
2+
3+
recursive-include docs *
4+
recursive-include src/rest_framework_jwt *
5+
recursive-include tests *
6+
7+
recursive-exclude * __pycache__
8+
recursive-exclude * *.py[co]
9+
recursive-exclude html *
10+
11+
prune demo
12+
prune changelog.d

README.md

Lines changed: 3 additions & 3 deletions
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
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

changelog.d/23.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document compatibility with Python 3.7.

changelog.d/24.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for Django 3.0, Python 3.8 and `djangorestframework` 3.11

changelog.d/24.misc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* Run the test suite against the `demo` project. The same project can be used for local development as well.
2+
* Add the `serve` environment to `tox` that starts the `demo` project's development server. To use it, run: `$ tox -e serve`

0 commit comments

Comments
 (0)