source: setup.py@ 224:b6db213e53a2

Last change on this file since 224:b6db213e53a2 was 12:2318792b83c6, checked in by Simon Cross <hodgestar@…>, 8 years ago

Small PEP8 fixes and add author email.

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