From a9a039a79229287fcb374720772470c17d3d2d46 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Tue, 19 Aug 2014 16:54:17 -0400 Subject: [PATCH] Remove tornado requirement, add importlib --- setup.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 6898445..b40220b 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,15 @@ -from setuptools import setup import os -import platform +from setuptools import setup +import sys -requirements = ['tornado'] +requirements = [] tests_require = ['coverage', 'coveralls', 'mock', 'nose'] # Requirements for Python 2.6 -(major, minor, rev) = platform.python_version_tuple() -if float('%s.%s' % (major, minor)) < 2.7: +version = sys.version_info +if (version.major, version.minor) < (2, 7): requirements.append('argparse') + requirements.append('importlib') requirements.append('logutils') tests_require.append('unittest2') @@ -18,7 +19,7 @@ setup(name='sprockets', description=('A modular, loosely coupled micro-framework built on top ' 'of Tornado simplifying the creation of web applications ' 'and RabbitMQ workers'), - entry_points={'console_scripts': ['sprockets=sprockets:main']}, + entry_points={'console_scripts': ['sprockets=sprockets.cli:main']}, author='AWeber Communications', url='https://github.com/sprockets/sprockets', install_requires=requirements,