Skip to content

Commit

Permalink
Merge branch 'python_versions'
Browse files Browse the repository at this point in the history
Conflicts:
	.travis.yml
  • Loading branch information
exekias committed Nov 18, 2013
2 parents cfd4396 + e08da41 commit a58ff2c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
language: python
python:
- "2.7"
branches:
only:
- master
- "3.2"
- "3.3"
env:
# - DJANGO=1.4.9 test database creation not working
- DJANGO=1.5.5
- DJANGO=1.6
matrix:
exclude:
- python: "3.2"
env: DJANGO=1.5.5
- python: "3.3"
env: DJANGO=1.5.5
branches:
only:
- master
install:
- pip install -q Django==$DJANGO --use-mirrors
- pip install -r requirements-dev.txt
Expand Down
2 changes: 1 addition & 1 deletion achilles/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run_actions(request, actions):
# Mark as error
data[a['id']] = {
'error': e.__class__.__name__,
'message': unicode(e),
'message': str(e),
}


Expand Down
2 changes: 1 addition & 1 deletion achilles/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def achilles_renders():
Return a dict of enabled plugin' render functions
"""
return {k: import_by_path('%s.render' % p)
for k, p in achilles_plugins().iteritems()}
for k, p in achilles_plugins().items()}


# This method is borrowed from Django 1.6:
Expand Down
2 changes: 1 addition & 1 deletion achilles/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_achilles_renders(self):
plugins = achilles_plugins()
renders = achilles_renders()

self.assertListEqual(plugins.keys(), renders.keys())
self.assertEqual(plugins.keys(), renders.keys())


class LibraryTests(TestCase):
Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# encoding: utf-8
import os
import sys

from setuptools import setup, find_packages


Expand All @@ -8,6 +10,14 @@
def dump(filename):
return open(os.path.join(os.path.dirname(__file__), filename))

extra = {}

# Use 2to3 for Python 3 support
if sys.version_info >= (3, 0):
extra.update(
use_2to3=True,
)

setup(
name='django-achilles',
version=version,
Expand All @@ -32,4 +42,5 @@ def dump(filename):
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
**extra
)

0 comments on commit a58ff2c

Please sign in to comment.