Commits

Anonymous committed 668bc0f Draft

enh: add setup.py

Comments (0)

Files changed (1)

+#!/usr/bin/env python
+from distutils.core import setup
+
+# grab metadata
+version = '1.00'
+with file('dumbo/dumbo') as f:
+    for line in f:
+        if line.startswith('__version__'):
+            try:
+                version = line.split()[2].replace("'", '')
+            except IndexError:
+                pass
+            break
+with file('readme.rst') as f:
+    long_description = f.read()
+
+
+setup(
+    name          = 'pg-dumbo',
+    version       = version,
+    description   = 'A pgadmin-style database viewer for the console.',
+    author        = 'Mike Miller',
+    author_email  = 'mixmastamyk@bitbucket.org',
+    url           = 'https://bitbucket.org/mixmastamyk/dumbo',
+    download_url  = 'https://bitbucket.org/mixmastamyk/dumbo/get/default.tar.gz',
+    license       = 'GPLv3',
+    packages      = ['dumbo'],
+    requires      = ['urwid(>=1.0)', 'psycopg2'],
+    scripts       = ['dumbo/dumbo'],
+    #~ package_data  = {name: ['']},
+
+    long_description = long_description,
+    classifiers     = [
+        'Development Status :: 3 - Alpha',
+        'Environment :: Console',
+        'Intended Audience :: Developers',
+        'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
+        'Operating System :: POSIX :: Linux',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.6',
+        'Topic :: System :: Installation/Setup',
+        'Topic :: System :: Systems Administration',
+        'Topic :: Utilities',
+        'Topic :: Database',
+    ],
+)