compass-core/setup.py
xiaodongwang 7f080e4e51 fix pep8 warning and move major util code from bin to compass dir.
Change-Id: I7baa536888db1ca46cadcdf07ef9cc0a1a3a12fb
2014-02-19 22:25:45 -08:00

68 lines
1.8 KiB
Python

"""setup script."""
try:
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import os
class Tox(TestCommand):
"""Tox to do the setup"""
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
INSTALL_REQUIRES_DIR = os.path.join(
os.path.dirname(__file__), 'requirements.txt')
with open(INSTALL_REQUIRES_DIR, 'r') as requires_file:
REQUIREMENTS = [line.strip() for line in requires_file if line != '\n']
setup(
name='compass',
version='0.1.0',
# general info
description='Open Deployment System for zero touch installation',
long_description='Open Deployment System for zero touch installation',
author='Compass Dev Group, Huawei Cloud',
author_email='shuo.yang@huawei.com',
url='https://github.com/huawei-cloud/compass',
download_url='',
# dependency
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['compass.tests']),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
# test,
tests_require=['tox'],
cmdclass={'test': Tox},
)