Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / ceph-detect-init / setup.py
1 #
2 # Copyright (C) 2015 SUSE LINUX GmbH
3 # Copyright (C) 2015 <contact@redhat.com>
4 #
5 # Author: Owen Synge <osynge@suse.com>
6 # Author: Loic Dachary <loic@dachary.org>
7 #
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as
10 # published by the Free Software Foundation, either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU Affero General Public License for more details.
17 #
18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program.  If not, see `<http://www.gnu.org/licenses/>`.
20 #
21 import os
22 import sys
23 from setuptools import setup
24 from setuptools import find_packages
25
26 assert sys.version_info >= (2, 7), \
27     "Python version lower than 2.7 is not supported"
28
29 def read(fname):
30     path = os.path.join(os.path.dirname(__file__), fname)
31     f = open(path)
32     return f.read()
33
34 tests_require = read('test-requirements.txt').split()
35
36 setup(
37     name='ceph-detect-init',
38     version='1.0.1',
39     packages=find_packages(),
40
41     author='Owen Synge, Loic Dachary',
42     author_email='osynge@suse.de, loic@dachary.org',
43     description='display the normalized name of the init system',
44     long_description=read('README.rst'),
45     license='LGPLv2+',
46     keywords='ceph',
47     url="https://git.ceph.com/?p=ceph.git;a=summary",
48
49     install_requires=['setuptools'],
50     tests_require=tests_require,
51
52     classifiers=[
53         'Environment :: Console',
54         'Intended Audience :: Information Technology',
55         'Intended Audience :: System Administrators',
56         'Operating System :: POSIX :: Linux',
57         'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
58         'Programming Language :: Python',
59         'Programming Language :: Python :: 2.7',
60         'Programming Language :: Python :: 3',
61         'Topic :: Utilities',
62     ],
63
64     entry_points={
65
66         'console_scripts': [
67             'ceph-detect-init = ceph_detect_init.main:run',
68             ],
69
70         },
71     )