root/trunk/setup.py

Revision 273, 1.8 KB (checked in by mg, 3 years ago)

Include last changelog entries from NEWS.txt in the long description.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/usr/bin/env python
2import os
3import sys
4import glob
5from distutils.core import setup
6
7long_description = """\
8Two ships duel in a gravity field.   Gravity doesn't affect
9the ships themselves (which have spanking new anti-gravity
10devices), but it affects missiles launced by the ships.
11
12You can play against the computer, or two players can play
13with one keyboard.  There is also a Gravity Wars mode, where
14the two ships do not move, and the players repeatedly
15specify the direction and velocity of their missiles.
16
17Latest changes
18--------------
19
20""" + '\n\n'.join(file('NEWS.txt').read().split('\n\n')[:2])
21
22pkgdir = os.path.join('src', 'pyspacewar')
23def determine_version():
24    sys.path.insert(0, 'src')
25    from pyspacewar.version import version
26    del sys.path[0]
27    return version
28version = determine_version()
29
30setup(name='pyspacewar',
31      version=version,
32      author='Marius Gedminas',
33      author_email='marius@pov.lt',
34      license='GPL',
35      platforms=['any'],
36      url='http://mg.pov.lt/pyspacewar/',
37      description='A game loosely inspired by the original Spacewar',
38      long_description=long_description,
39      classifiers=[
40            'Development Status :: 4 - Beta',
41            'Environment :: MacOS X',
42            'Environment :: Win32 (MS Windows)',
43            'Environment :: X11 Applications',
44            'Intended Audience :: End Users/Desktop',
45            'License :: OSI Approved :: GNU General Public License (GPL)',
46            'Natural Language :: English',
47            'Operating System :: OS Independent',
48            'Programming Language :: Python',
49            'Topic :: Games/Entertainment :: Arcade',
50        ],
51      scripts=['pyspacewar'],
52      packages=['pyspacewar'],
53      package_dir={'pyspacewar': 'src/pyspacewar'},
54      package_data={'pyspacewar': ['images/*', 'sounds/*', 'music/*']},
55     )
Note: See TracBrowser for help on using the browser.