Commits

Josh VanderLinden committed 337266b

Added some py2app code

  • Participants
  • Parent commits 69e0f4c

Comments (0)

Files changed (2)

 from distutils.core import setup
 from treedo import __version__, __author__
 import os
+import sys
+
+APP_TITLE = 'TreeDo'
+extra = {}
+
+if 'py2app' in sys.argv and sys.platform == 'darwin':
+    import py2app
+
+    options = dict(
+        #iconfile='treedo/res/treedo.incs',
+        compressed=1,
+        optimize=1,
+        plist=dict(
+            CFBundleName=APP_TITLE,
+            CFBundleShortVersionString=__version__,
+            CFBundleGetInfoString='%s %s' % (APP_TITLE, __version__),
+            CFBundleExecutable=APP_TITLE,
+            CFBundleIdentifier='com.codekoala.treedo',
+        ),
+        packages=[
+            'lxml',
+        ],
+        frameworks=[
+            '/usr/lib/libxml2.2.7.3.dylib',
+        ],
+        includes=[
+            'gzip',
+        ],
+    )
+    extra = dict(
+        app=['treedo/treedo.py'],
+        options=dict(py2app=options),
+        setup_requires=[
+            'py2app',
+            'lxml',
+        ],
+    )
 
 setup(
     name='treedo',
     scripts=[
         'treedo/scripts/treedo',
     ],
+    data_files=[
+        ('.', (
+            'README',
+            'LICENSE',
+        )),
+        ('res', (
+            'treedo/res/add_subtask.png',
+            'treedo/res/add.png',
+            'treedo/res/collapse.png',
+            'treedo/res/expand.png',
+            'treedo/res/save.jpg',
+        )),
+    ],
     classifiers=[
-        "Development Status :: 5 - Production/Stable",
+        "Development Status :: 4 - Beta",
         "Environment :: Console",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: BSD License",
         "Programming Language :: Python :: 2.6",
         "Topic :: Utilities",
     ],
+    **extra
 )
 
 # -*- coding: utf-8 -*-
 
 __author__ = 'Josh VanderLinden'
-__version__ = '0.2'
+__version__ = '0.3'
 
 def main():
     from gui import TreeDoFrame