forked from mu-editor/mu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
80 lines (74 loc) · 3.05 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
from setuptools import setup
from mu import __version__
with open('README.rst') as f:
readme = f.read()
# Replace the logo URL in the README with something that works in PyPI
logo_url = 'https://mu.readthedocs.io/en/latest/_images/logo.png'
readme = readme.replace('docs/logo.png', logo_url)
with open('CHANGES.rst') as f:
changes = f.read()
install_requires = ['pycodestyle==2.4.0', 'pyflakes==2.0.0',
'pyserial==3.4', 'pyqt5==5.11.3', 'qscintilla==2.10.8',
'qtconsole==4.3.1', 'matplotlib==2.2.2',
'pgzero==1.2', 'PyQtChart==5.11.3', 'appdirs>=1.4.3',
'gpiozero>=1.4.1', 'guizero>=0.5.2',
'pigpio>=1.40.post1', 'Pillow>=5.2.0',
'requests>=2.19.1', 'semver>=2.8.0', 'nudatus>=0.0.3',
"black>=18.9b0; python_version > '3.5'"]
# Add environmental marker for packages not available for ARM in PyPI/piwheels
arm_exclude = ('pyqt5', 'qscintilla', 'PyQtChart')
install_requires = ['{}; "arm" not in platform_machine'.format(req)
if req.startswith(arm_exclude) else req
for req in install_requires]
setup(
name='mu-editor',
version=__version__,
description='A simple Python editor for beginner programmers.',
long_description='{}\n\n{}'.format(readme, changes),
author='Nicholas H.Tollervey',
author_email='[email protected]',
url='https://github.com/mu-editor/mu',
license='GPL3',
packages=['mu', 'mu.contrib', 'mu.resources', 'mu.modes', 'mu.debugger',
'mu.interface', 'mu.modes.api', ],
install_requires=install_requires,
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications :: Qt',
'Environment :: MacOS X',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Education',
'Topic :: Games/Entertainment',
'Topic :: Software Development',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Text Editors',
'Topic :: Text Editors :: Integrated Development Environments (IDE)',
],
entry_points={
'console_scripts': [
"mu-editor = mu.app:run",
],
},
options={ # Briefcase packaging options for OSX
'app': {
'formal_name': 'mu-editor',
'bundle': 'mu.codewith.editor',
},
'macos': {
'icon': 'package/icons/mac_icon',
}
}
)