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