blob: 9c9fbf14d6fefb073cab8ba01364b76a3710addb [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', '*'))]),
Alexe9547d82019-06-03 15:22:50 -050012 ('scripts', [f for f in glob.glob(os.path.join('scripts', '*'))]),
13 ('versions', [f for f in glob.glob(os.path.join('versions', '*'))])
Alex Savatieiev30862b82019-02-28 17:27:49 -060014]
15
16dependencies = [
17 'six',
18 'pyyaml',
19 'jinja2',
20 'requests',
Alexb151fbe2019-04-22 16:53:30 -050021 'ipaddress',
22 'configparser'
Alex Savatieiev30862b82019-02-28 17:27:49 -060023]
24
25entry_points = {
Alex Savatieievc9055712019-03-01 14:43:56 -060026 "console_scripts": [
Alex265f45e2019-04-23 18:51:23 -050027 "mcp-checker = cfg_checker.cfg_check:config_check_entrypoint",
Alexd0391d42019-05-21 18:48:55 -050028 "mcp-pkg = cfg_checker.cli.packages:entrypoint",
29 "mcp-net = cfg_checker.cli.network:entrypoint",
30 "cmp-reclass = cfg_checker.cli.reclass:entrypoint"
Alex Savatieievc9055712019-03-01 14:43:56 -060031 ]
Alex Savatieiev30862b82019-02-28 17:27:49 -060032}
33
34
35setup(
Alex836fac82019-08-22 13:36:16 -050036 name="mcp-checker",
37 version="0.41a",
Alex Savatieiev30862b82019-02-28 17:27:49 -060038 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)