| 1 | #!/usr/bin/env python |
|---|
| 2 | import os |
|---|
| 3 | import sys |
|---|
| 4 | import glob |
|---|
| 5 | from distutils.core import setup |
|---|
| 6 | |
|---|
| 7 | long_description = """\ |
|---|
| 8 | Two ships duel in a gravity field. Gravity doesn't affect |
|---|
| 9 | the ships themselves (which have spanking new anti-gravity |
|---|
| 10 | devices), but it affects missiles launced by the ships. |
|---|
| 11 | |
|---|
| 12 | You can play against the computer, or two players can play |
|---|
| 13 | with one keyboard. There is also a Gravity Wars mode, where |
|---|
| 14 | the two ships do not move, and the players repeatedly |
|---|
| 15 | specify the direction and velocity of their missiles. |
|---|
| 16 | |
|---|
| 17 | Latest changes |
|---|
| 18 | -------------- |
|---|
| 19 | |
|---|
| 20 | """ + '\n\n'.join(file('NEWS.txt').read().split('\n\n')[:2]) |
|---|
| 21 | |
|---|
| 22 | pkgdir = os.path.join('src', 'pyspacewar') |
|---|
| 23 | def determine_version(): |
|---|
| 24 | sys.path.insert(0, 'src') |
|---|
| 25 | from pyspacewar.version import version |
|---|
| 26 | del sys.path[0] |
|---|
| 27 | return version |
|---|
| 28 | version = determine_version() |
|---|
| 29 | |
|---|
| 30 | setup(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 | ) |
|---|