Updated and fleshed out setup.py
authorW. Trevor King <wking@drexel.edu>
Sun, 28 Mar 2010 09:08:14 +0000 (05:08 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 28 Mar 2010 09:08:14 +0000 (05:08 -0400)
setup.py

index 4ef8f6787ccc4306c6ccf9c6ea482a50a761b44b..1b210b51639fea519ec72c729255d70c58084ed2 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,45 @@
 #!/usr/bin/env python
 
 from distutils.core import setup
+from os import walk
+from os.path import join, sep
+
 from pyrisk import __version__
 
+
+def recursive_file_list(install_root, source_root):
+    if source_root[-1] != sep:
+        source_root += sep
+    r = []
+    for dirpath,dirnames,filenames in walk(source_root):
+        assert dirpath.startswith(source_root), dirpath
+        install_dirpath = join(install_root, dirpath[len(source_root):])
+        r.append((install_dirpath, [join(dirpath, f) for f in filenames]))
+    return r
+
 setup(
     name='PyRisk',
     version=__version__,
-    description='Python Risk engine',
-    url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz',
-    packages=['pyrisk',
-              'pyrisk.player'],
+    description='Python Risk engine with assorted player interfaces.',
+    long_description='\n'.join([
+            'Currently implemented interfaces:',
+            '  * email',
+            ]),
+    download_url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz',
+    author='W. Trevor King',
+    author_email='wking@drexel.edu',
+    package_dir={'pyrisk': 'pyrisk'},
+    data_files=recursive_file_list('share/pyrisk', 'share/'),
+    classifiers = [
+        'Development Status :: 3 - Alpha',
+        #'Environment :: Console',
+        #'Environment :: Console :: Curses',
+        'Intended Audience :: End Users/Desktop',
+        'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: GNU General Public License (GPL)',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        'Topic :: Games/Entertainment :: Board Games'
+        ],
     )