Updated to be compatible with Django 1.4.5, added tox settings for automated testing with Python 2.6/2.7 and Django 1.4/1.5.

This commit is contained in:
Chris Church
2013-06-22 16:27:09 -04:00
parent 939cbf31ef
commit d822287609
8 changed files with 104 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2013 AnsibleWorks, Inc.
# All Rights Reserved.
import os, datetime, glob
import os, datetime, glob, sys
from setuptools import setup, find_packages
from ansibleworks import __version__
@@ -42,6 +42,12 @@ def proc_data_files(data_files):
"""
result = []
# Ff running in a virtualenv, don't return data files that would install to
# system paths (mainly useful for running tests via tox).
if hasattr(sys, 'real_prefix'):
return result
for dir,files in data_files:
includes = []
for item in files: