source: setup.py@ 3:04f61ecb89a1

Last change on this file since 3:04f61ecb89a1 was 3:04f61ecb89a1, checked in by Jeremy Thurgood <firxen@…>, 9 years ago

Replace setup.py with our own version.

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