X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-disk%2Fsetup.py;fp=src%2Fceph%2Fsrc%2Fceph-disk%2Fsetup.py;h=cc7ad2a81ce22871792697c9a72677b1be6dd955;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/ceph-disk/setup.py b/src/ceph/src/ceph-disk/setup.py new file mode 100644 index 0000000..cc7ad2a --- /dev/null +++ b/src/ceph/src/ceph-disk/setup.py @@ -0,0 +1,67 @@ +# +# Copyright (C) 2015 +# +# Author: Loic Dachary +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Library Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library Public License for more details. +# +import os +import sys +from setuptools import setup +from setuptools import find_packages + +assert sys.version_info >= (2, 7), \ + "Python version lower than 2.7 is not supported" + + +def read(fname): + path = os.path.join(os.path.dirname(__file__), fname) + f = open(path) + return f.read() + +tests_require = read('test-requirements.txt').split() + +setup( + name='ceph-disk', + version='1.0.0', + packages=find_packages(), + + author='Loic Dachary', + author_email='loic@dachary.org', + description='prepare storage for a Ceph OSD', + long_description=read('README.rst'), + license='LGPLv2+', + keywords='ceph', + url="https://git.ceph.com/?p=ceph.git;a=summary", + + install_requires=['setuptools'], + tests_require=tests_require, + + classifiers=[ + 'Environment :: Console', + 'Intended Audience :: Information Technology', + 'Intended Audience :: System Administrators', + 'Operating System :: POSIX :: Linux', + 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Topic :: Utilities', + ], + + entry_points={ + + 'console_scripts': [ + 'ceph-disk = ceph_disk.main:run', + ], + + }, + )