1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6
7Then install the bundle in dist into ~/Library/Automator.
8"""
9from distutils.core import setup
10import py2app
11
12infoPlist = dict(
13    AMAccepts=dict(
14        Container='List',
15        Optional=False,
16        Types=['com.apple.addressbook.person-object'],
17    ),
18    AMApplication=[
19        'Address Book',
20        'Messages',
21    ],
22    AMCanShowWhenRun = True,
23    AMCategory = 'Messages',
24    AMDefaultParameters = dict(),
25    AMDescription = dict(
26        AMDAlert='Messages must be running for this action to work properly.',
27        AMDNote='Information will not be returned for the current user.',
28        AMDSummary='This action returns the Instant Message information of the people passed from the previous action.',
29    ),
30    AMIconName='Messages',
31    AMKeywords=(
32        'Instant',
33        'Message',
34        'IM',
35    ),
36    AMName='Get Buddy Info',
37    AMProvides=dict(
38        Container='List',
39        Types=[
40            'com.apple.cocoa.string'
41        ],
42    )
43)
44
45setup(
46    name='Get Buddy Info',
47    plugin=['GetBuddyInfo.py'],
48    data_files=[],
49    options=dict(py2app=dict(
50        extension=".action",
51        plist=infoPlist,
52    )),
53)
54