Skip to content

Commit

Permalink
Merge pull request #112 from azavea/feature/jcw/django-3
Browse files Browse the repository at this point in the history
Django 3.0 compatibility
  • Loading branch information
jwalgran authored Mar 24, 2020
2 parents a2f298c + 7ec51f6 commit bb4fd06
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@ sudo: false

python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8

env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
- DJANGO=2.1
- DJANGO=2.2
- DJANGO=3.0

matrix:
exclude:
- python: 2.7
env: DJANGO=2.0
- python: 2.7
env: DJANGO=2.1
- python: 2.7
env: DJANGO=2.2
- python: 2.7
env: DJANGO=3.0
- python: 3.5
env: DJANGO=1.6
- python: 3.5
Expand All @@ -41,5 +52,6 @@ deploy:
secure: Wb3ow0qdnjFsdIoC2Lvke0Rp6h40WNDkp4Fuyltd0ex2MQMglNo1qHZYlhQvJ/5q7pHEAO7pIqOMzOQ1mls9Za1/AoolEl3zm9b3oW86bAR8AVS/UdCUkkCmPaO+0VsYCt63McaLFA0xQnWxA7kZUkfEeS7RBhT63f+diPqg2fU=
on:
tags: true
python: 3.7
distributions: sdist bdist_wheel
repo: azavea/django-queryset-csv
5 changes: 3 additions & 2 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
coveralls==0.3
coverage==3.6
flake8==2.5.1
coverage==5.0.4
flake8==3.7.9
django>=1.5
six==1.14.0
unicodecsv>=0.14.1
2 changes: 1 addition & 1 deletion djqscsv/djqscsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.utils.text import slugify
from django.http import HttpResponse, StreamingHttpResponse

from django.utils import six
import six

""" A simple python package for turning django models into csvs """

Expand Down
2 changes: 1 addition & 1 deletion test_app/djqscsv_tests/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from six import python_2_unicode_compatible
from django.db import models

from django.utils.translation import ugettext as _
from django.utils.encoding import python_2_unicode_compatible
from datetime import datetime

SOME_TIME = datetime(2001, 1, 1, 1, 1)
Expand Down
7 changes: 5 additions & 2 deletions test_app/djqscsv_tests/tests/test_csv_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
from djqscsv_tests.util import create_people_and_get_queryset

try:
from django.utils.six.moves import zip_longest
from six.moves import zip_longest
except ImportError:
from itertools import izip_longest as zip_longest
try:
from itertools import izip_longest as zip_longest
except ImportError:
from itertools import zip_longest


class CSVTestCase(TestCase):
Expand Down

0 comments on commit bb4fd06

Please sign in to comment.