forked from missionpinball/mpf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
140 lines (112 loc) · 3.92 KB
/
setup.py
File metadata and controls
140 lines (112 loc) · 3.92 KB
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
134
135
136
137
138
139
140
"""Mission Pinball Framework (mpf) setup.py."""
import re
from setuptools import setup
# http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
VERSIONFILE = "mpf/_version.py"
VERSION_STRING_LONG = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
_MO = re.search(VSRE, VERSION_STRING_LONG, re.M)
if _MO:
VERSION_STRING = _MO.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
pin2dmd_requires = [
'pyusb==1.1.0'
]
linux_i2c_requires = [
'smbus2_asyncio==0.0.5'
]
rpi_requires = [
'apigpio-mpf==0.0.3'
]
cli_requires = [
'prompt_toolkit==3.0.8',
'asciimatics==1.12.0',
'terminaltables==3.1.0',
]
osc_requires = [
'python-osc==1.7.4'
]
irc_requires = [
'irc==19.0.1'
]
vpe_requires = [
'grpcio_tools==1.34.0',
'grpcio==1.34.0',
'protobuf==3.14.0',
]
crash_reporter_requires = [
'requests==2.22.0'
]
all_requires = (pin2dmd_requires + cli_requires + linux_i2c_requires + rpi_requires + osc_requires + irc_requires +
vpe_requires + crash_reporter_requires)
setup(
name='mpf',
version=VERSION_STRING,
description='Mission Pinball Framework',
long_description='''Let's build a pinball machine!
The Mission Pinball Framework (MPF) is an open source, cross-platform,
Python-based software framework for powering real pinball machines.
MPF is written in Python. It can run on Windows, OS X, and Linux
with the same code and configurations.
MPF interacts with real, physical pinball machines via modern pinball
controller hardware such as a Multimorphic P-ROC or P3-ROC, a FAST Pinball
controller, or Open Pinball Project hardware controllers. You can use MPF to
power your own custom-built machine or to update the software in existing
Williams, Bally, Stern, or Data East machines.
MPF is a work-in-progress that is not yet complete, though we're actively
developing it and checking in several commits a week. It's MIT licensed,
actively developed by fun people, and supported by a vibrant, pinball-loving
community.''',
url='https://missionpinball.org',
author='The Mission Pinball Framework Team',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Topic :: Artistic Software',
'Topic :: Games/Entertainment :: Arcade'
],
keywords='pinball',
include_package_data=True,
package_data={'': ['*.yaml', '*.png', '*.so', '*.pyd', '*.ogg', '*.wav']},
# MANIFEST.in picks up the rest
packages=['mpf'],
zip_safe=False,
install_requires=['ruamel.yaml==0.15.100',
'pyserial==3.5',
'pyserial-asyncio==0.4;platform_system=="Windows"',
'pyserial-asyncio==0.5;platform_system!="Windows"',
'sortedcontainers==2.3.0',
'psutil==5.7.3',
'packaging',
],
extras_require={
'all': all_requires,
'pin2dmd': pin2dmd_requires,
'linux_i2c': linux_i2c_requires,
'rpi': rpi_requires,
'cli': cli_requires,
'osc': osc_requires,
'irc': irc_requires,
'vpe': vpe_requires,
'crash_reporter': crash_reporter_requires,
},
tests_require=[],
test_suite="mpf.tests",
entry_points={
'console_scripts': [
'mpf = mpf.commands:run_from_command_line',
]
}
)