3 from setuptools import Command
4 from setuptools import find_packages
5 from setuptools import setup
7 from odltools import __version__
10 with io.open('README.rst', 'rt', encoding='utf8') as f:
13 with open('requirements.txt') as f:
14 requirements = f.read().splitlines()
17 class CleanCommand(Command):
18 """Custom clean command to tidy up the project root."""
21 def initialize_options(self):
24 def finalize_options(self):
28 os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
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,
44 python_requires='>=2.7',
45 keywords='development',
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
58 ''').strip().splitlines(),
60 'clean': CleanCommand,