3 from distutils.core import setup
5 from os.path import join, sep
7 from pyrisk import __version__
10 def recursive_file_list(install_root, source_root):
11 if source_root[-1] != sep:
14 for dirpath,dirnames,filenames in walk(source_root):
15 assert dirpath.startswith(source_root), dirpath
16 install_dirpath = join(install_root, dirpath[len(source_root):])
17 r.append((install_dirpath, [join(dirpath, f) for f in filenames]))
23 url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/pyrisk/',
24 description='Python Risk engine with assorted player interfaces.',
25 long_description='\n'.join([
26 'Currently implemented interfaces:',
29 download_url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz',
30 author='W. Trevor King',
31 author_email='wking@drexel.edu',
32 package_dir={'pyrisk': 'pyrisk'},
33 data_files=recursive_file_list('share/pyrisk/templates', 'templates'),
35 'Development Status :: 3 - Alpha',
36 #'Environment :: Console',
37 #'Environment :: Console :: Curses',
38 'Intended Audience :: End Users/Desktop',
39 'Intended Audience :: System Administrators',
40 'License :: OSI Approved :: GNU General Public License (GPL)',
41 'Natural Language :: English',
42 'Operating System :: OS Independent',
43 'Programming Language :: Python',
44 'Topic :: Games/Entertainment :: Board Games'