Skip to content

Commit

Permalink
Add python3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Jun 22, 2018
1 parent 030922a commit ac967ed
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ language: python
sudo: false
python:
- "2.7"
- "3.6"
env:
- DJANGO="Django>=1.8.0,<1.9.0"
- DJANGO="Django>=1.9.0,<1.10.0"
- DJANGO="Django>=1.10.0,<1.11.0"
- DJANGO="Django>=1.11.0,<2.0.0"

# command to install dependencies
install:
- pip install -q $DJANGO
- pip install -q -r test_reqs.txt --index-url=https://pypi.ccnmtl.columbia.edu/
- pip install -q -r test_reqs.txt
- pip install coveralls

# command to run tests
Expand Down
2 changes: 2 additions & 0 deletions pagetreeepub/renderers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

# built-in and base renderer classes


Expand Down
2 changes: 2 additions & 0 deletions pagetreeepub/tests/test_renderers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from unittest import TestCase

from ..renderers import BaseRenderer, DefaultRenderer
Expand Down
2 changes: 2 additions & 0 deletions pagetreeepub/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from django.test import RequestFactory
from unittest import TestCase

Expand Down
2 changes: 2 additions & 0 deletions pagetreeepub/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

import os

from django.conf import settings
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

""" run tests for pagetreeepub
$ virtualenv ve
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

import os
from setuptools import setup

Expand Down
2 changes: 1 addition & 1 deletion test_reqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ django-jenkins
pep8
pyflakes
factory_boy
epubbuilder==0.1.4
requirements/epubbuilder-0.2.0-py2.py3-none-any.whl

0 comments on commit ac967ed

Please sign in to comment.