~vila/conn-check/fix-deps

7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
1
"""Installer for conn-check
2
"""
3
4
import os
5
cwd = os.path.dirname(__file__)
6
__version__ = open(os.path.join(cwd, 'conn_check/version.txt'),
116.1.5 by Wes Mason
Add aws secgroup rules conversion
7
                   'r').read().strip()
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
8
19.1.1 by Wes Mason
Split service specific requirements into separate requirements files and include via extras_requires
9
from setuptools import setup, find_packages
10
11
21.1.5 by Wes Mason
Add [all] extras tag to allow installing all extra dependencies without having to write out the whole list
12
def get_requirements(*pre):
13
    extras = []
21.1.6 by Wes Mason
Fix base requirements loading and ignore build dir
14
15
    # Base requirements
16
    if not pre:
17
        pre = ('',)
18
21.1.5 by Wes Mason
Add [all] extras tag to allow installing all extra dependencies without having to write out the whole list
19
    for p in pre:
21.1.6 by Wes Mason
Fix base requirements loading and ignore build dir
20
        sep = '-' if p else ''
21
        extras.extend(open('{}{}requirements.txt'.format(p, sep)).readlines())
21.1.5 by Wes Mason
Add [all] extras tag to allow installing all extra dependencies without having to write out the whole list
22
    return extras
19.1.1 by Wes Mason
Split service specific requirements into separate requirements files and include via extras_requires
23
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
24
25
setup(
26
    name='conn-check',
129 by Wes Mason
Switch homepage to conn-check.org
27
    description='Utility for verifying connectivity between services',
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
28
    long_description=open('README.rst').read(),
29
    version=__version__,
30
    author='James Westby, Wes Mason',
31
    author_email='james.westby@canonical.com, wesley.mason@canonical.com',
129 by Wes Mason
Switch homepage to conn-check.org
32
    url='http://conn-check.org/',
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
33
    packages=find_packages(exclude=['ez_setup']),
19.1.1 by Wes Mason
Split service specific requirements into separate requirements files and include via extras_requires
34
    install_requires=get_requirements(),
20.1.1 by Wes Mason
extras_require not extras_requires
35
    extras_require={
116.1.5 by Wes Mason
Add aws secgroup rules conversion
36
        'all': get_requirements('amqp', 'postgres', 'redis', 'mongodb',
37
                                'fwutils'),
19.1.1 by Wes Mason
Split service specific requirements into separate requirements files and include via extras_requires
38
        'amqp': get_requirements('amqp'),
39
        'postgres': get_requirements('postgres'),
40
        'redis': get_requirements('redis'),
79.1.1 by Wes Mason
Add requirements for mongodb extras
41
        'mongodb': get_requirements('mongodb'),
116.1.5 by Wes Mason
Add aws secgroup rules conversion
42
        'fwutil': get_requirements('fwutils'),
19.1.1 by Wes Mason
Split service specific requirements into separate requirements files and include via extras_requires
43
    },
8.1.2 by James Westby
Fix the AMQP check.
44
    package_data={'conn_check': ['version.txt', 'amqp0-8.xml']},
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
45
    include_package_data=True,
8.1.2 by James Westby
Fix the AMQP check.
46
    entry_points={
47
        'console_scripts': [
101.1.29 by Wes Mason
Swap main and run callables
48
            'conn-check = conn_check.main:main',
49
            'conn-check-export-fw = conn_check.utils.firewall_rules:main',
116.1.4 by Wes Mason
Add entrypoint for conn-check-convert-fw, and insist on having at least 1 path file
50
            'conn-check-convert-fw = conn_check.utils.convert_fw_rules:main',
8.1.2 by James Westby
Fix the AMQP check.
51
        ],
52
    },
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
53
    license='GPL3',
54
    classifiers=[
28 by Wes Mason
Fix setup.py tags and bump to 1.0.1
55
        "Topic :: System :: Networking",
56
        "Development Status :: 4 - Beta",
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
57
        "Programming Language :: Python",
58
        "Intended Audience :: Developers",
59
        "Operating System :: OS Independent",
60
        "Intended Audience :: System Administrators",
28 by Wes Mason
Fix setup.py tags and bump to 1.0.1
61
        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
62
    ]
63
)