Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 1 | import glob |
| 2 | import os |
| 3 | |
Alex | 3ebc563 | 2019-04-18 16:47:18 -0500 | [diff] [blame] | 4 | from setuptools import find_packages, setup |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 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', '*'))]), |
Alex | 3ebc563 | 2019-04-18 16:47:18 -0500 | [diff] [blame] | 12 | # ('res', [f for f in glob.glob(os.path.join('res', '*'))]) |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 13 | ] |
| 14 | |
| 15 | dependencies = [ |
| 16 | 'six', |
| 17 | 'pyyaml', |
| 18 | 'jinja2', |
| 19 | 'requests', |
Alex | b151fbe | 2019-04-22 16:53:30 -0500 | [diff] [blame^] | 20 | 'ipaddress', |
| 21 | 'configparser' |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 22 | ] |
| 23 | |
| 24 | entry_points = { |
Alex Savatieiev | c905571 | 2019-03-01 14:43:56 -0600 | [diff] [blame] | 25 | "console_scripts": [ |
| 26 | "mcp-checker = cfg_checker.cfg_check:cli_main", |
| 27 | "package-report = cfg_checker.cli.package", |
| 28 | "network-check = cfg_checker.cli.network", |
| 29 | "reclass-compare = cfg_checker.cli.reclass" |
| 30 | ] |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | |
| 34 | setup( |
| 35 | name="Mirantis Cloud Configuration Checker", |
| 36 | version="0.1", |
| 37 | author="Alex Savatieiev", |
| 38 | author_email="osavatieiev@mirantis.com", |
| 39 | classifiers=[ |
| 40 | "Programming Language :: Python", |
| 41 | "Programming Language :: Python :: 2.7" |
| 42 | ], |
| 43 | keywords="QA, openstack, salt, config, reclass", |
| 44 | entry_points=entry_points, |
| 45 | url="", |
| 46 | packages=find_packages(), |
| 47 | include_package_data=True, |
| 48 | package_data={ |
| 49 | '': ['*.conf', '*.env', '*.list', '*.html'] |
| 50 | }, |
| 51 | zip_safe=False, |
| 52 | install_requires=dependencies, |
| 53 | data_files=DATA, |
| 54 | license="Apache Licence, version 2", |
| 55 | description="MCP Checker tool. For best results use on MCP deployments", |
| 56 | long_description=README |
| 57 | ) |