-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
133 lines (124 loc) · 3.97 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
import platform
from glob import glob
VERSION = "1.2.2"
APP = ['kickstart.py']
COPYRIGHT = "Copyright 2016-2017 by Revar Desmera"
with open('README.rst') as f:
LONG_DESCR = f.read()
extra_options = {}
data_files = []
py2app_options = dict(
argv_emulation=True,
includes=[
'belfrywidgets', 'mudclientprotocol', 'pymuv', 'appdirs',
'six', 'packaging', 'packaging.requirements',
'packaging.version', 'packaging.specifiers'
],
plist=dict(
CFBundleIconFile="MufSim.icns",
CFBundleIdentifier="com.belfry.mufsimulator",
CFBundleGetInfoString="MufSimulator v%s, %s" % (VERSION, COPYRIGHT),
NSHumanReadableCopyright=COPYRIGHT,
NSHighResolutionCapable=True,
CFBundleDocumentTypes=[
dict(
CFBundleTypeName="MUF File",
CFBundleTypeRole="Viewer",
LSHandlerRank="Alternate",
CFBundleTypeMIMETypes=["text/x-muf", "application/x-muf"],
LSItemContentTypes=["org.fuzzball.muf"],
CFBundleTypeExtensions=["muf"],
),
dict(
CFBundleTypeName="MUV File",
CFBundleTypeRole="Viewer",
LSHandlerRank="Alternate",
CFBundleTypeMIMETypes=["text/x-muv", "application/x-muv"],
LSItemContentTypes=["com.belfry.muv"],
CFBundleTypeExtensions=["muv"],
),
]
)
)
py2exe_options = dict(
bundle_files=2,
dist_dir='dist-win',
excludes=["tests", "dist", "build", "docs"],
)
if platform.system() == 'Windows':
import py2exe
data_files.append(
(
"Microsoft.VC90.CRT",
glob(r'C:\Windows\WinSxS\x86_microsoft.vc90.crt_*\*.*')
)
)
sys.path.append(
glob(r'C:\Windows\WinSxS\x86_microsoft.vc90.crt_*')
)
extra_options['windows'] = APP
extra_options['zipfile'] = None
elif platform.system() == 'Darwin':
extra_options['app'] = APP
setup(
name='MufSim',
version=VERSION,
description='Muf language simulator and debugger.',
long_description=LONG_DESCR,
author='Revar Desmera',
author_email='[email protected]',
url='https://github.com/revarbat/mufsim',
download_url='https://github.com/revarbat/mufsim/archive/master.zip',
packages=find_packages(
exclude=[
'build', 'dist', 'docs', 'examples', 'icons',
'tests', 'tools',
]
),
license='MIT License',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Interpreters',
'Topic :: Software Development :: Testing',
],
keywords='muf muv debugger development',
entry_points={
'console_scripts': ['mufsim=mufsim.console:main'],
'gui_scripts': ['mufsimgui=mufsim.gui:main']
},
install_requires=[
'setuptools',
'belfrywidgets>=1.0.3',
'mudclientprotocol>=0.1.0',
'ssltelnet>=0.9.2',
'pymuv>=0.9.8',
'appdirs>=1.4.0',
'six',
'packaging',
],
data_files=data_files,
options={
'py2app': py2app_options,
'py2exe': py2exe_options,
},
# setup_requires=['py2app'],
**extra_options
)