Load location deck from file.
[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 naja."""
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="naja",
20     version=VERSION_STR,
21     description="naja: Game for PyWeek 18",
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="Naja Team",
34     maintainer_email="ctpug@googlegroups.com",
35
36     url="http://ctpug.org.za/",
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         'PyYAML',
67     ],
68
69     # Files
70     packages=find_packages(),
71     scripts=[
72         'scripts/naja',
73     ],
74
75     # py2exe
76     windows=[{
77         'script': 'scripts/naja',
78         'icon_resources': [(0, "data/icons/naja.ico")],
79     }],
80     app=['scripts/naja'],
81     options={
82         'py2exe': {
83             'skip_archive': 1,
84             'dist_dir': 'dist/naja-%s' % VERSION_STR,
85             'packages': [
86                 'logging', 'encodings', 'naja',
87             ],
88             'includes': [
89                 'pygame', 'pymunk',
90             ],
91             'excludes': [
92                 'numpy',
93             ],
94             'ignores': [
95                 # all database modules
96                 'pgdb', 'Sybase', 'adodbapi',
97                 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
98                 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
99                 'MySQLdb', 'MySQLdb.connections',
100                 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
101                 # old datetime equivalents
102                 'DateTime', 'DateTime.ISO',
103                 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
104                 # email modules
105                 'email.Generator', 'email.Iterators', 'email.Utils',
106             ],
107         },
108         'py2app': {
109             'app': ['run_game.py'],
110             'argv_emulation': True,
111             'iconfile': 'data/icons/program/icon.icns',
112             'packages': [
113                 'logging', 'encodings', 'pygame', 'naja', 'data',
114             ],
115             'excludes': ['numpy'],
116         }},
117     data_files=[
118         # 'COPYRIGHT',
119         'LICENSE.txt',
120         'README.txt',
121     ],
122     include_package_data=True,
123 )