-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
60 lines (51 loc) · 1.76 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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):
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 f:
requirements = [line.strip() for line in f 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='[email protected]',
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},
)