source: setup.py@ 674:03fc9cf0f556

Last change on this file since 674:03fc9cf0f556 was 674:03fc9cf0f556, checked in by Neil Muller <drnlmuller@…>, 8 years ago

We have icons now, so I suppose is needed.

  • Property exe set to *
File size: 3.6 KB
Line 
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 nagslang."""
6
7from setuptools import setup, find_packages
8
9try:
10 import py2exe
11 py2exe # To make pyflakes happy.
12except ImportError:
13 pass
14
15try:
16 from pip.req import parse_requirements
17 import os
18 game_dir = os.path.dirname(__file__)
19 req_file = os.path.join(game_dir, 'requirements.txt')
20 install_reqs = parse_requirements(req_file)
21 reqs = [str(ir.req) for ir in install_reqs]
22except ImportError:
23 reqs = []
24
25# This should probably be pulled from constants.py
26VERSION_STR = "0.1"
27
28setup(
29 name="nagslang",
30 version=VERSION_STR,
31 description="naglsang: Game for PyWeek 17",
32
33 author=(", ".join([
34 "Simon Cross",
35 "David Fraser",
36 "Neil Muller",
37 "Adrianna Pinska",
38 "Stefano Rivera",
39 "David Sharpe",
40 "Jeremy Thurgood",
41 ])),
42 author_email="ctpug@googlegroups.com",
43
44 maintainer="Nagslang Team",
45 maintainer_email="ctpug@googlegroups.com",
46
47 url="http://ctpug.org.za/",
48 download_url="https://ctpug.org.za/hg/nagslang/",
49
50 license="MIT",
51
52 classifiers=[
53 'Development Status :: 4 - Beta',
54 'Environment :: MacOS X',
55 'Environment :: Win32 (MS Windows)',
56 'Environment :: X11 Applications',
57 'Intended Audience :: End Users/Desktop',
58 'License :: OSI Approved :: MIT License',
59 'Natural Language :: English',
60 'Operating System :: Microsoft :: Windows',
61 'Operating System :: POSIX',
62 'Operating System :: MacOS :: MacOS X',
63 'Programming Language :: Python :: 2.6',
64 'Programming Language :: Python :: 2.7',
65 'Topic :: Games/Entertainment :: Role-Playing',
66 'Topic :: Games/Entertainment :: Arcade',
67 ],
68
69 platforms=[
70 'Linux',
71 'Mac OS X',
72 'Windows',
73 ],
74
75 # Dependencies
76 install_requires=reqs,
77
78 # Files
79 packages=find_packages(),
80 scripts=[
81 'scripts/nagslang',
82 ],
83
84 # py2exe
85 windows=[{
86 'script': 'scripts/nagslang',
87 'icon_resources': [(0, "data/icons/werewolf-sonata.ico")],
88 }],
89 app=['scripts/nagslang'],
90 options={
91 'py2exe': {
92 'skip_archive': 1,
93 'dist_dir': 'dist/nagslang-%s' % VERSION_STR,
94 'packages': [
95 'logging', 'encodings', 'nagslang',
96 ],
97 'includes': [
98 'pygame', 'pymunk',
99 ],
100 'excludes': [
101 'numpy',
102 ],
103 'ignores': [
104 # all database modules
105 'pgdb', 'Sybase', 'adodbapi',
106 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
107 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
108 'MySQLdb', 'MySQLdb.connections',
109 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
110 # old datetime equivalents
111 'DateTime', 'DateTime.ISO',
112 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
113 # email modules
114 'email.Generator', 'email.Iterators', 'email.Utils',
115 ],
116 },
117 'py2app': {
118 'app': ['run_game.py'],
119 'argv_emulation': True,
120 'iconfile': 'data/icons/program/icon.icns',
121 'packages': [
122 'logging', 'encodings', 'pygame', 'pymunk', 'nagslang', 'data',
123 ],
124 'excludes': ['numpy'],
125 }},
126 data_files=[
127 # 'COPYRIGHT',
128 'LICENSE.txt',
129 'README.txt',
130 ],
131 include_package_data=True,
132)
Note: See TracBrowser for help on using the repository browser.