From 08f5586376b996584805fc1031451de66223eb41 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 28 Mar 2010 05:08:14 -0400 Subject: [PATCH] Updated and fleshed out setup.py --- setup.py | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 4ef8f67..1b210b5 100755 --- 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' + ], ) -- 2.26.2