Bump odltools version to 0.1.2
[netvirt.git] / resources / tools / odltools / setup.py
1 import io
2 import os
3 from setuptools import Command
4 from setuptools import find_packages
5 from setuptools import setup
6 import textwrap
7 from odltools import __version__
8
9
10 with io.open('README.rst', 'rt', encoding='utf8') as f:
11     readme = f.read()
12
13 with open('requirements.txt') as f:
14     requirements = f.read().splitlines()
15
16
17 class CleanCommand(Command):
18     """Custom clean command to tidy up the project root."""
19     user_options = []
20
21     def initialize_options(self):
22         pass
23
24     def finalize_options(self):
25         pass
26
27     def run(self):
28         os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
29
30 setup(
31     name='odltools',
32     version=__version__,
33     description='NetVirt tools for troubleshooting OpenDaylight and '
34                 'OpenStack integration',
35     long_description=readme,
36     long_description_content_type='text/x-rst; charset=UTF-8',
37     url='http://github.com/shague/odltools',
38     author='Sam Hague, Vishal Thapar',
39     author_email='shague@gmail.com, thapar@gmail.com',
40     license='Eclipse Public License',
41     packages=find_packages(exclude=['tests']),
42     install_requires=requirements,
43     platforms=['All'],
44     python_requires='>=2.7',
45     keywords='development',
46     zip_safe=False,
47     # entry_points={'console_scripts': ['odltools=odltools.__main__:main']},
48     classifiers=textwrap.dedent('''
49         Development Status :: 1 - Planning
50         Intended Audience :: Developers
51         License :: OSI Approved :: Eclipse Public License 1.0 (EPL-1.0)
52         Natural Language :: English
53         Operating System :: OS Independent
54         Programming Language :: Python
55         Programming Language :: Python :: 2.7
56         Topic :: Software Development
57         Topic :: Utilities
58         ''').strip().splitlines(),
59     cmdclass={
60         'clean': CleanCommand,
61     }
62 )