blob: 28f8bfce43a0b987ed2c38c6875a9b973f742dfa [file] [log] [blame]
Alex0989ecf2022-03-29 13:43:21 -05001# Author: Alex Savatieiev (osavatieiev@mirantis.com; a.savex@gmail.com)
2# Copyright 2019-2022 Mirantis, Inc.
Alex Savatieiev30862b82019-02-28 17:27:49 -06003import glob
4import os
5
Alex3ebc5632019-04-18 16:47:18 -05006from setuptools import find_packages, setup
Alex Savatieiev30862b82019-02-28 17:27:49 -06007
8here = os.path.abspath(os.path.dirname(__file__))
9README = open(os.path.join(here, 'README.md')).read()
10
11DATA = [
12 ('etc', [f for f in glob.glob(os.path.join('etc', '*'))]),
13 ('templates', [f for f in glob.glob(os.path.join('templates', '*'))]),
Alexe9547d82019-06-03 15:22:50 -050014 ('scripts', [f for f in glob.glob(os.path.join('scripts', '*'))]),
15 ('versions', [f for f in glob.glob(os.path.join('versions', '*'))])
Alex Savatieiev30862b82019-02-28 17:27:49 -060016]
17
18dependencies = [
19 'six',
20 'pyyaml',
21 'jinja2',
22 'requests',
Alexb151fbe2019-04-22 16:53:30 -050023 'ipaddress',
Alexb78191f2021-11-02 16:35:46 -050024 'configparser',
25 'kubernetes',
26 'gevent',
27 'falcon'
Alex Savatieiev30862b82019-02-28 17:27:49 -060028]
29
30entry_points = {
Alex Savatieievc9055712019-03-01 14:43:56 -060031 "console_scripts": [
Alex0989ecf2022-03-29 13:43:21 -050032 "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",
Alexb78191f2021-11-02 16:35:46 -050036 "checker-agent = cfg_checker.agent.cfg_agent:entrypoint"
Alex Savatieievc9055712019-03-01 14:43:56 -060037 ]
Alex Savatieiev30862b82019-02-28 17:27:49 -060038}
39
40
41setup(
Alex836fac82019-08-22 13:36:16 -050042 name="mcp-checker",
Alex0989ecf2022-03-29 13:43:21 -050043 version="0.7",
Alex Savatieiev30862b82019-02-28 17:27:49 -060044 author="Alex Savatieiev",
45 author_email="osavatieiev@mirantis.com",
46 classifiers=[
47 "Programming Language :: Python",
Alex7b0ee9a2021-09-21 17:16:17 -050048 "Programming Language :: Python :: 3.6"
Alex Savatieiev30862b82019-02-28 17:27:49 -060049 ],
Alex5cace3b2021-11-10 16:40:37 -060050 keywords="QA, openstack, kubernetes, salt, config, "
51 "reclass, networking, ceph",
Alex Savatieiev30862b82019-02-28 17:27:49 -060052 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",
Alex5cace3b2021-11-10 16:40:37 -060063 description="MCP/MCC/MOS Checker tool. "
64 "For use only on Mirantis product deployments",
Alex Savatieiev30862b82019-02-28 17:27:49 -060065 long_description=README
66)