Skip to content

Commit

Permalink
Merge pull request #10 from paulcwatts/django20
Browse files Browse the repository at this point in the history
Add Django 2.0, remove Django 1.10
  • Loading branch information
paulcwatts committed Dec 4, 2017
2 parents 3d5fa12 + abe9316 commit 1318a9b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ python:
- "3.5"
- "3.6"
env:
- DJANGO='django>=1.10.0,<1.11.0' DRF='djangorestframework>=3.5,<3.6'
- DJANGO='django>=1.11.0,<1.12.0' DRF='djangorestframework>=3.5,<3.6'
- DJANGO='django>=1.10.0,<1.11.0' DRF='djangorestframework>=3.6,<3.7'
- DJANGO='django>=1.11.0,<1.12.0' DRF='djangorestframework>=3.6,<3.7'
- DJANGO='django>=1.10.0,<1.11.0' DRF='djangorestframework>=3.7,<3.8'
- DJANGO='django>=1.11.0,<1.12.0' DRF='djangorestframework>=3.7,<3.8'
- DJANGO='django>=2.0.0,<2.1.0' DRF='djangorestframework>=3.7,<3.8'
before_install:
- pip install -U pytest
- pip install -r requirements-test.txt
Expand All @@ -21,6 +19,9 @@ install:
script:
- py.test --flake8 --cov=./
matrix:
exclude:
- python: "2.7"
env: DJANGO='django>=2.0.0,<2.1.0' DRF='djangorestframework>=3.7,<3.8'
allow_failures:
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz'
after_success:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Django>=1.8
Django>=1.11
djangorestframework>=3.5
six
2 changes: 1 addition & 1 deletion rest_framework_json_schema/tests/test_negotiation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.core.urlresolvers import reverse
from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APISimpleTestCase, APIRequestFactory
from rest_framework_json_schema.negotiation import JSONAPIContentNegotiation

Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_schema/tests/test_pagination.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from django.core.urlresolvers import reverse
from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APISimpleTestCase, APIRequestFactory

from rest_framework_json_schema.test_support.serializers import reset_data
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_schema/tests/test_parsers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.core.urlresolvers import reverse
from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APISimpleTestCase, APIRequestFactory

from rest_framework_json_schema.test_support.serializers import (
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_schema/tests/test_renderers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from django.core.urlresolvers import reverse
from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APISimpleTestCase, APIRequestFactory

from rest_framework_json_schema.test_support.serializers import reset_data
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist =
{py27,py34,py35,py36}-{django110,django111}-drf{35,36,37}
{py27,py34,py35,py36}-{django111}-drf{35,36,37},{py34,py35,py36}-{django20}-drf{37}

[testenv]
deps =
-rrequirements-test.txt
django110: django>=1.10.0,<1.11.0
django111: django>=1.11.0,<1.12.0
django20: django>=2.0.0,<2.1.0
drf35: djangorestframework>=3.5.<3.6
drf36: djangorestframework>=3.6.<3.7
drf37: djangorestframework>=3.7.<3.8
Expand Down

0 comments on commit 1318a9b

Please sign in to comment.