"""
Script for building the example.

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

plist = {
    "NSMainNibFile": "PyDocBrowser",
    "NSAppleScriptEnabled": True,
    "CFBundleURLTypes": [
        {"CFBundleURLName": "Python Documentation URL", "CFBundleURLSchemes": ["pydoc"]}
    ],
}

setup(
    app=["PyDocBrowser.py"],
    data_files=["PyDocBrowser.nib"],
    options={"py2app": {"plist": plist}},
    setup_requires=["py2app", "pyobjc-framework-Cocoa", "pyobjc-framework-WebKit"],
)
