blob: 9c3291558624aa91fcd5e531c5db73c48439a72c [file] [log] [blame]
Alex Savatieiev30862b82019-02-28 17:27:49 -06001import glob
2import os
3
Alex3ebc5632019-04-18 16:47:18 -05004from setuptools import find_packages, setup
Alex Savatieiev30862b82019-02-28 17:27:49 -06005
6here = os.path.abspath(os.path.dirname(__file__))
7README = open(os.path.join(here, 'README.md')).read()
8
9DATA = [
10 ('etc', [f for f in glob.glob(os.path.join('etc', '*'))]),
11 ('templates', [f for f in glob.glob(os.path.join('templates', '*'))]),
Alexe0c5b9e2019-04-23 18:51:23 -050012 ('scripts', [f for f in glob.glob(os.path.join('scripts', '*'))])
Alex Savatieiev30862b82019-02-28 17:27:49 -060013]
14
15dependencies = [
16 'six',
17 'pyyaml',
18 'jinja2',
19 'requests',
Alexb151fbe2019-04-22 16:53:30 -050020 'ipaddress',
21 'configparser'
Alex Savatieiev30862b82019-02-28 17:27:49 -060022]
23
24entry_points = {
Alex Savatieievc9055712019-03-01 14:43:56 -060025 "console_scripts": [
Alex265f45e2019-04-23 18:51:23 -050026 "mcp-checker = cfg_checker.cfg_check:config_check_entrypoint",
Alexd0391d42019-05-21 18:48:55 -050027 "mcp-pkg = cfg_checker.cli.packages:entrypoint",
28 "mcp-net = cfg_checker.cli.network:entrypoint",
29 "cmp-reclass = cfg_checker.cli.reclass:entrypoint"
Alex Savatieievc9055712019-03-01 14:43:56 -060030 ]
Alex Savatieiev30862b82019-02-28 17:27:49 -060031}
32
33
34setup(
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)