source: setup.py@ 293:47226c661ae2

Last change on this file since 293:47226c661ae2 was 290:e3ec67b04c03, checked in by David Fraser <davidf@…>, 8 years ago

Avoid long lines

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