annotate setup.py @ 3:04f61ecb89a1

Replace setup.py with our own version.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 01 Sep 2013 10:25:52 +0200
parents 1ea8fa09b70f
children 827ee160ff23
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
1 # setup.py
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
2 # -*- coding: utf8 -*-
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
3 # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
4
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
5 """Setuptools setup.py file for nagslang."""
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
6
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
7 from setuptools import setup, find_packages
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
8
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
9 try:
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
10 import py2exe
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
11 py2exe # To make pyflakes happy.
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
12 except ImportError:
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
13 pass
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
14
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
15 # This should probably be pulled from constants.py
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
16 VERSION_STR = "0.1a"
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
17
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
18 setup( # Metadata
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
19 name="nagslang",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
20 version=VERSION_STR,
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
21 description="naglsang: Game for PyWeek 17",
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
22
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
23 author=(", ".join([
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
24 "Adrianna Pinska",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
25 "Jeremy Thurgood",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
26 "Neil Muller",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
27 "Simon Cross",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
28 "Stefano Rivera"])),
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
29 author_email="",
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
30
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
31 maintainer="Nagslang Team",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
32 maintainer_email="ctpug@googlegroups.com",
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
33
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
34 url="http://ctpug.org.za/",
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
35 download_url="https://ctpug.org.za/hg/nagslang/",
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
36
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
37 license="MIT",
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
38
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
39 classifiers=[
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
40 'Development Status :: 4 - Beta',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
41 'Environment :: MacOS X',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
42 'Environment :: Win32 (MS Windows)',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
43 'Environment :: X11 Applications',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
44 'Intended Audience :: End Users/Desktop',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
45 'License :: OSI Approved :: MIT License',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
46 'Natural Language :: English',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
47 'Operating System :: Microsoft :: Windows',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
48 'Operating System :: POSIX',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
49 'Operating System :: MacOS :: MacOS X',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
50 'Programming Language :: Python :: 2.5',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
51 'Programming Language :: Python :: 2.6',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
52 'Topic :: Games/Entertainment :: Role-Playing',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
53 'Topic :: Games/Entertainment :: Arcade',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
54 ],
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
55
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
56 platforms=[
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
57 'Linux',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
58 'Mac OS X',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
59 'Windows',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
60 ],
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
61
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
62 # Dependencies
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
63 install_requires=[],
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
64
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
65 # Files
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
66 packages=find_packages(),
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
67 scripts=[
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
68 'scripts/nagslang',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
69 ],
0
1ea8fa09b70f Add skellington
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
70
3
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
71 # py2exe
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
72 console=['scripts/testconsole.py'],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
73 windows=[{
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
74 'script': 'scripts/nagslang',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
75 'icon_resources': [(0, "data/icons/program/icon.ico")],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
76 }],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
77 app=['scripts/nagslang'],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
78 options={
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
79 'py2exe': {
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
80 'skip_archive': 1,
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
81 'dist_dir': 'dist/nagslang-%s' % VERSION_STR,
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
82 'packages': [
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
83 'logging', 'encodings', 'nagslang',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
84 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
85 'includes': [
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
86 'pygame',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
87 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
88 'excludes': [
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
89 'numpy',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
90 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
91 'ignores': [
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
92 # all database modules
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
93 'pgdb', 'Sybase', 'adodbapi',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
94 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
95 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
96 'MySQLdb', 'MySQLdb.connections',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
97 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
98 # old datetime equivalents
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
99 'DateTime', 'DateTime.ISO',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
100 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
101 # email modules
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
102 'email.Generator', 'email.Iterators', 'email.Utils',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
103 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
104 },
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
105 'py2app': {
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
106 'app': ['run_game.py'],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
107 'argv_emulation': True,
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
108 'iconfile': 'data/icons/program/icon.icns',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
109 'packages': [
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
110 'logging', 'encodings', 'pygame', 'nagslang', 'data',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
111 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
112 'excludes': ['numpy'],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
113 }},
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
114 data_files=[
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
115 # 'COPYRIGHT',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
116 'LICENSE.txt',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
117 'README.txt',
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
118 ],
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
119 include_package_data=True,
04f61ecb89a1 Replace setup.py with our own version.
Jeremy Thurgood <firxen@gmail.com>
parents: 0
diff changeset
120 )