"""
Script for building the example:

Usage:
    python3 setup.py py2app
"""
from setuptools import setup

plist = dict(
    CFBundleDocumentTypes=[
        dict(
            CFBundleTypeExtensions=[
                "CurrencyConvBinding",
                "*",
            ],
            CFBundleTypeName="CurrencyConvBinding File",
            CFBundleTypeRole="Editor",
            NSDocumentClass="CurrencyConvBindingDocument",
        ),
    ],
)

setup(
    name="CurrencyConvBinding",
    app=["CurrencyConvBinding.py"],
    data_files=["English.lproj"],
    options=dict(py2app=dict(
        plist=plist,
    )),
    setup_requires=[
        "py2app",
        "pyobjc-framework-Cocoa",
    ]
)
