Add tox configuration and integration with setup.py
Add Travis CI build server configuration Add badges and Tests section to README Bump version (development)
This commit is contained in:
parent
33ec166c6f
commit
dadb8f1ff6
7 changed files with 106 additions and 15 deletions
49
setup.py
49
setup.py
|
@ -1,26 +1,59 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
import todo
|
||||
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)
|
||||
|
||||
setup(
|
||||
name='django-todo',
|
||||
version=todo.__version__,
|
||||
description='A multi-user, multi-group task management and assignment system for Django.',
|
||||
author=todo.__author__,
|
||||
author_email=todo.__email__,
|
||||
url=todo.__url__,
|
||||
license=todo.__license__,
|
||||
version=package.__version__,
|
||||
description=package.__doc__.strip(),
|
||||
author=package.__author__,
|
||||
author_email=package.__email__,
|
||||
url=package.__url__,
|
||||
license=package.__license__,
|
||||
packages=find_packages(),
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Framework :: Django',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Topic :: Office/Business :: Groupware',
|
||||
'Topic :: Software Development :: Bug Tracking',
|
||||
],
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
tests_require=['tox'],
|
||||
cmdclass={
|
||||
'test': Tox,
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue