2014-05-31 07:36:54 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2010-09-27 08:12:13 +00:00
|
|
|
from setuptools import setup, find_packages
|
2016-04-10 17:42:24 +00:00
|
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
import shlex
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import todo as package
|
|
|
|
|
|
|
|
|
|
|
|
class Tox(TestCommand):
|
|
|
|
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
TestCommand.initialize_options(self)
|
|
|
|
self.tox_args = None
|
|
|
|
|
|
|
|
def finalize_options(self):
|
|
|
|
TestCommand.finalize_options(self)
|
|
|
|
self.test_args = []
|
|
|
|
self.test_suite = True
|
|
|
|
|
|
|
|
def run_tests(self):
|
|
|
|
import tox
|
|
|
|
args = self.tox_args
|
|
|
|
if args:
|
|
|
|
args = shlex.split(self.tox_args)
|
|
|
|
errno = tox.cmdline(args=args)
|
|
|
|
sys.exit(errno)
|
2014-05-31 07:19:27 +00:00
|
|
|
|
2010-09-27 08:12:13 +00:00
|
|
|
setup(
|
|
|
|
name='django-todo',
|
2016-04-10 17:42:24 +00:00
|
|
|
version=package.__version__,
|
|
|
|
description=package.__doc__.strip(),
|
|
|
|
author=package.__author__,
|
|
|
|
author_email=package.__email__,
|
|
|
|
url=package.__url__,
|
|
|
|
license=package.__license__,
|
2010-09-27 08:12:13 +00:00
|
|
|
packages=find_packages(),
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Web Environment',
|
2016-04-10 17:42:24 +00:00
|
|
|
'Framework :: Django',
|
2010-09-27 08:12:13 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
2016-04-10 17:42:24 +00:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Topic :: Office/Business :: Groupware',
|
|
|
|
'Topic :: Software Development :: Bug Tracking',
|
2010-09-27 08:12:13 +00:00
|
|
|
],
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2016-04-10 17:42:24 +00:00
|
|
|
tests_require=['tox'],
|
|
|
|
cmdclass={
|
|
|
|
'test': Tox,
|
|
|
|
},
|
2010-09-27 08:12:13 +00:00
|
|
|
)
|