Alex | 0989ecf | 2022-03-29 13:43:21 -0500 | [diff] [blame] | 1 | # Author: Alex Savatieiev (osavatieiev@mirantis.com; a.savex@gmail.com) |
| 2 | # Copyright 2019-2022 Mirantis, Inc. |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 3 | import glob |
| 4 | import os |
| 5 | |
Alex | 3ebc563 | 2019-04-18 16:47:18 -0500 | [diff] [blame] | 6 | from setuptools import find_packages, setup |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 7 | |
| 8 | here = os.path.abspath(os.path.dirname(__file__)) |
| 9 | README = open(os.path.join(here, 'README.md')).read() |
| 10 | |
| 11 | DATA = [ |
| 12 | ('etc', [f for f in glob.glob(os.path.join('etc', '*'))]), |
| 13 | ('templates', [f for f in glob.glob(os.path.join('templates', '*'))]), |
Alex | e9547d8 | 2019-06-03 15:22:50 -0500 | [diff] [blame] | 14 | ('scripts', [f for f in glob.glob(os.path.join('scripts', '*'))]), |
| 15 | ('versions', [f for f in glob.glob(os.path.join('versions', '*'))]) |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 16 | ] |
| 17 | |
| 18 | dependencies = [ |
| 19 | 'six', |
| 20 | 'pyyaml', |
| 21 | 'jinja2', |
| 22 | 'requests', |
Alex | b151fbe | 2019-04-22 16:53:30 -0500 | [diff] [blame] | 23 | 'ipaddress', |
Alex | b78191f | 2021-11-02 16:35:46 -0500 | [diff] [blame] | 24 | 'configparser', |
| 25 | 'kubernetes', |
| 26 | 'gevent', |
| 27 | 'falcon' |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 28 | ] |
| 29 | |
| 30 | entry_points = { |
Alex Savatieiev | c905571 | 2019-03-01 14:43:56 -0600 | [diff] [blame] | 31 | "console_scripts": [ |
Alex | 0989ecf | 2022-03-29 13:43:21 -0500 | [diff] [blame] | 32 | "mos-checker = cfg_checker.cfg_check:config_check_entrypoint", |
| 33 | "chk-pkg = cfg_checker.cli.packages:entrypoint", |
| 34 | "chk-net = cfg_checker.cli.network:entrypoint", |
| 35 | "chk-reclass = cfg_checker.cli.reclass:entrypoint", |
Alex | b78191f | 2021-11-02 16:35:46 -0500 | [diff] [blame] | 36 | "checker-agent = cfg_checker.agent.cfg_agent:entrypoint" |
Alex Savatieiev | c905571 | 2019-03-01 14:43:56 -0600 | [diff] [blame] | 37 | ] |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | |
| 41 | setup( |
Alex | 836fac8 | 2019-08-22 13:36:16 -0500 | [diff] [blame] | 42 | name="mcp-checker", |
Alex | 0989ecf | 2022-03-29 13:43:21 -0500 | [diff] [blame] | 43 | version="0.7", |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 44 | author="Alex Savatieiev", |
| 45 | author_email="osavatieiev@mirantis.com", |
| 46 | classifiers=[ |
| 47 | "Programming Language :: Python", |
Alex | 7b0ee9a | 2021-09-21 17:16:17 -0500 | [diff] [blame] | 48 | "Programming Language :: Python :: 3.6" |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 49 | ], |
Alex | 5cace3b | 2021-11-10 16:40:37 -0600 | [diff] [blame] | 50 | keywords="QA, openstack, kubernetes, salt, config, " |
| 51 | "reclass, networking, ceph", |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 52 | entry_points=entry_points, |
| 53 | url="", |
| 54 | packages=find_packages(), |
| 55 | include_package_data=True, |
| 56 | package_data={ |
| 57 | '': ['*.conf', '*.env', '*.list', '*.html'] |
| 58 | }, |
| 59 | zip_safe=False, |
| 60 | install_requires=dependencies, |
| 61 | data_files=DATA, |
| 62 | license="Apache Licence, version 2", |
Alex | 5cace3b | 2021-11-10 16:40:37 -0600 | [diff] [blame] | 63 | description="MCP/MCC/MOS Checker tool. " |
| 64 | "For use only on Mirantis product deployments", |
Alex Savatieiev | 30862b8 | 2019-02-28 17:27:49 -0600 | [diff] [blame] | 65 | long_description=README |
| 66 | ) |