mirror of
https://github.com/sprockets/sprockets.git
synced 2024-11-24 03:00:17 +00:00
Remove tornado requirement, add importlib
This commit is contained in:
parent
5ff0139114
commit
a9a039a792
1 changed files with 7 additions and 6 deletions
13
setup.py
13
setup.py
|
@ -1,14 +1,15 @@
|
||||||
from setuptools import setup
|
|
||||||
import os
|
import os
|
||||||
import platform
|
from setuptools import setup
|
||||||
|
import sys
|
||||||
|
|
||||||
requirements = ['tornado']
|
requirements = []
|
||||||
tests_require = ['coverage', 'coveralls', 'mock', 'nose']
|
tests_require = ['coverage', 'coveralls', 'mock', 'nose']
|
||||||
|
|
||||||
# Requirements for Python 2.6
|
# Requirements for Python 2.6
|
||||||
(major, minor, rev) = platform.python_version_tuple()
|
version = sys.version_info
|
||||||
if float('%s.%s' % (major, minor)) < 2.7:
|
if (version.major, version.minor) < (2, 7):
|
||||||
requirements.append('argparse')
|
requirements.append('argparse')
|
||||||
|
requirements.append('importlib')
|
||||||
requirements.append('logutils')
|
requirements.append('logutils')
|
||||||
tests_require.append('unittest2')
|
tests_require.append('unittest2')
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ setup(name='sprockets',
|
||||||
description=('A modular, loosely coupled micro-framework built on top '
|
description=('A modular, loosely coupled micro-framework built on top '
|
||||||
'of Tornado simplifying the creation of web applications '
|
'of Tornado simplifying the creation of web applications '
|
||||||
'and RabbitMQ workers'),
|
'and RabbitMQ workers'),
|
||||||
entry_points={'console_scripts': ['sprockets=sprockets:main']},
|
entry_points={'console_scripts': ['sprockets=sprockets.cli:main']},
|
||||||
author='AWeber Communications',
|
author='AWeber Communications',
|
||||||
url='https://github.com/sprockets/sprockets',
|
url='https://github.com/sprockets/sprockets',
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
|
|
Loading…
Reference in a new issue