add a comma to the classifiers
[be.git] / setup.py
index 7c4c98a0e208ce80272bd2dca203a92861bfef55..c3496f7dd0d31399d991443032a2d703fc93f099 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,64 @@
 #!/usr/bin/env python
 
 from distutils.core import setup
+import os.path
+
+from libbe import version
+
+
+_this_dir = os.path.dirname(__file__)
+
+rev_id = version.version_info['revision']
+rev_date = version.version_info['date']
+
+data_files = []
+
+man_path = os.path.join('doc', 'man', 'be.1')
+if os.path.exists(man_path):
+    data_files.append(('share/man/man1', [man_path]))
 
 setup(
-    name='Bugs Everywhere',
-    version='0.0.193',
-    description='Bugtracker built on distributed revision control',
-    url='http://panoramicfeedback.com/opensource/',
-    packages=['becommands', 'libbe'],
+    name='bugs-everywhere',
+    version='{}'.format(version.version()),
+    maintainer='W. Trevor King',
+    maintainer_email='wking@tremily.us',
+    url='http://bugseverywhere.org/',
+    download_url=(
+        'http://downloads.bugseverywhere.org/releases/be-{}.tar.gz'.format(
+            version.version())),
+    license='GNU General Public License (GPL)',
+    platforms=['all'],
+    description='Bugtracker supporting distributed revision control',
+    long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
+    classifiers=[
+        'Development Status :: 4 - Beta',
+        'Environment :: Console',
+        'Environment :: Web Environment',
+        'Framework :: CherryPy',
+        'Intended Audience :: Customer Service',
+        'Intended Audience :: Developers',
+        'Intended Audience :: End Users/Desktop',
+        'License :: OSI Approved :: GNU General Public License (GPL)',
+        'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
+        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
+        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.7',
+        'Topic :: Software Development :: Bug Tracking',
+        ],
+    packages=['libbe',
+              'libbe.command',
+              'libbe.storage',
+              'libbe.storage.util',
+              'libbe.storage.vcs',
+              'libbe.ui',
+              'libbe.ui.util',
+              'libbe.util'],
     scripts=['be'],
+    data_files=data_files,
+    requires=[
+        'Jinja2 (>=2.6)',
+        'CherryPy (>=3.2)',
+        ]
     )