Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 1 | import glob |
| 2 | import os |
| 3 | |
| 4 | from setuptools import setup, find_packages |
| 5 | |
| 6 | here = os.path.abspath(os.path.dirname(__file__)) |
| 7 | README = open(os.path.join(here, 'README.md')).read() |
| 8 | |
| 9 | DATA = [ |
| 10 | ('etc', [f for f in glob.glob(os.path.join('etc', '*'))]), |
| 11 | ('templates', [f for f in glob.glob(os.path.join('templates', '*'))]), |
| 12 | # ('res', [f for f in glob.glob(os.path.join('res', '*'))]) |
| 13 | ] |
| 14 | |
| 15 | dependencies = [ |
| 16 | 'six', |
| 17 | 'pyyaml', |
| 18 | 'jinja2', |
| 19 | 'requests', |
| 20 | 'ipaddress' |
| 21 | ] |
| 22 | |
| 23 | entry_points = { |
| 24 | "console_scripts": |
Alex Savatieiev | 4c40632 | 2019-02-28 17:37:09 -0600 | [diff] [blame] | 25 | "mcp_checker = cfg_checker.cfg_check:cli_main" |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | |
| 29 | setup( |
| 30 | name="Mirantis Cloud Configuration Checker", |
| 31 | version="0.1", |
| 32 | author="Alex Savatieiev", |
| 33 | author_email="osavatieiev@mirantis.com", |
| 34 | classifiers=[ |
| 35 | "Programming Language :: Python", |
| 36 | "Programming Language :: Python :: 2.7" |
| 37 | ], |
| 38 | keywords="QA, openstack, salt, config, reclass", |
| 39 | entry_points=entry_points, |
| 40 | url="", |
| 41 | packages=find_packages(), |
| 42 | include_package_data=True, |
| 43 | package_data={ |
| 44 | '': ['*.conf', '*.env', '*.list', '*.html'] |
| 45 | }, |
| 46 | zip_safe=False, |
| 47 | install_requires=dependencies, |
| 48 | data_files=DATA, |
| 49 | license="Apache Licence, version 2", |
| 50 | description="MCP Checker tool. For best results use on MCP deployments", |
| 51 | long_description=README |
| 52 | ) |