I missed a capital YAML
[naja.git] / setup.py
1 # setup.py
2 # -*- coding: utf8 -*-
3 # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
4
5 """Setuptools setup.py file for Robolock II."""
6
7 from setuptools import setup, find_packages
8
9 try:
10     import py2exe
11     py2exe  # To make pyflakes happy.
12 except ImportError:
13     pass
14
15 # This should probably be pulled from constants.py
16 VERSION_STR = "0.1"
17
18 setup(
19     name="robolock-II",
20     version=VERSION_STR,
21     description="Robolock II - a puzzle game",
22
23     author=(", ".join([
24         "Simon Cross",
25         "Neil Muller",
26         "Adrianna Pinska",
27         "Stefano Rivera",
28         "David Sharpe",
29         "Jeremy Thurgood",
30     ])),
31     author_email="ctpug@googlegroups.com",
32
33     maintainer="Team Naja (CTPUG)",
34     maintainer_email="ctpug@googlegroups.com",
35
36     url="http://robolock.org/",
37     download_url="http://ctpug.org.za/git/naja",
38
39     license="MIT",
40
41     classifiers=[
42         'Development Status :: 4 - Beta',
43         'Environment :: MacOS X',
44         'Environment :: Win32 (MS Windows)',
45         'Environment :: X11 Applications',
46         'Intended Audience :: End Users/Desktop',
47         'License :: OSI Approved :: MIT License',
48         'Natural Language :: English',
49         'Operating System :: Microsoft :: Windows',
50         'Operating System :: POSIX',
51         'Operating System :: MacOS :: MacOS X',
52         'Programming Language :: Python :: 2.6',
53         'Programming Language :: Python :: 2.7',
54         'Topic :: Games/Entertainment',
55     ],
56
57     platforms=[
58         'Linux',
59         'Mac OS X',
60         'Windows',
61     ],
62
63     # Dependencies
64     install_requires=[
65         'pygame',
66     ],
67
68     # Files
69     packages=find_packages(),
70     scripts=[
71         'scripts/naja',
72     ],
73
74     # py2exe
75     windows=[{
76         'script': 'scripts/naja',
77         'icon_resources': [(0, "data/icons/robolock.ico")],
78     }],
79     app=['scripts/naja'],
80     options={
81         'py2exe': {
82             'skip_archive': 1,
83             'dist_dir': 'dist/naja-%s' % VERSION_STR,
84             'packages': [
85                 'logging', 'encodings', 'naja',
86             ],
87             'includes': [
88                 'pygame',
89             ],
90             'excludes': [
91                 'numpy', 'pygame.sdlmain_osx', 'winreg', 'AppKit', 'Foundation',
92                 'Numeric', 'OpenGL.GL', '_scproxy', '_sysconfigdata',
93                 'copyreg', 'dummy.Process', 'pkg_resources', 'queue',
94                 'win32evtlog', 'win32evtlogutil',
95             ],
96             'ignores': [
97                 # all database modules
98                 'pgdb', 'Sybase', 'adodbapi',
99                 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
100                 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
101                 'MySQLdb', 'MySQLdb.connections',
102                 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
103                 # old datetime equivalents
104                 'DateTime', 'DateTime.ISO',
105                 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
106                 # email modules
107                 'email.Generator', 'email.Iterators', 'email.Utils',
108             ],
109         },
110         'py2app': {
111             'app': ['run_game.py'],
112             'argv_emulation': True,
113             'iconfile': 'data/icons/program/icon.icns',
114             'packages': [
115                 'logging', 'encodings', 'pygame', 'naja', 'data',
116             ],
117             'excludes': ['numpy'],
118         }},
119     data_files=[
120         # 'COPYRIGHT',
121         'LICENSE.txt',
122         'README.txt',
123     ],
124     include_package_data=True,
125 )