added setup.py
authorEd Bartosh <bartosh@gmail.com>
Sat, 10 Jan 2009 00:44:46 +0000 (00:44 +0000)
committerEd Bartosh <bartosh@gmail.com>
Sat, 10 Jan 2009 00:44:46 +0000 (00:44 +0000)
setup.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..17f1c12
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,31 @@
+#!/usr/bin/python -tt
+
+""" Setup """
+
+import glob
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
+PKG = open('debian/changelog').readline().split(' ')[0]
+
+setup(name=PKG,
+    description='XKCD viewer Home Applet',
+    version=open('debian/changelog').readline().split(' ')[1][1:-1],
+    author="Ed Bartosh",
+    author_email="bartosh@gmail.com",
+    license='MIT',
+    data_files=[\
+        ('share/%s/icons' % PKG, glob.glob('icons/*')),
+        ('share/applications/hildon', ['%s.desktop' % PKG]),
+        ('lib/hildon-desktop', ['%s.py' % PKG])],
+    classifiers=[
+    'Development Status :: 3 - Alpha',
+    'Environment :: Console',
+    'Intended Audience :: Developers',
+    'License :: OSI Approved :: MIT',
+    'Natural Language :: English',
+    'Operating System :: POSIX :: Linux',
+    'Programming Language :: Python',
+    ])