-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (60 loc) · 1.93 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
import os
from sys import platform as _platform
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
REQUIRES_PYTHON = '>=3.0.0'
REQUIRED_DEP = ['flask', 'flask_sockets', 'flask_cors',
'pythonnet ; sys_platform == "win32"',
'pyobjc ; sys_platform == "darwin"',
'PyQt5 ; sys_platform == "openbsd6"', ]
about = {}
NAME = 'Flair'
with open('README.md') as readme_file:
readme = readme_file.read()
# OS specific settings
SET_REQUIRES = []
if _platform == "linux" or _platform == "linux2":
# linux
print('linux')
elif _platform == "darwin":
# MAC OS X
SET_REQUIRES.append('py2app')
APP = ['flair.py']
OPTIONS = {
'argv_emulation': False,
'strip': True,
'packages': ['flask', 'werkzeug', 'jinja2', 'gevent', 'geventwebsocket', 'flask_cors'],
'includes': ['WebKit', 'Foundation', 'webview', 'sys', 'subprocess', 'os'],
'resources': ['./templates', './static'],
}
extras_require = {
'qt': ['PyQt5', 'pyqtwebengine'],
'cef': ['cefpython3'],
'gtk': ['PyGObject'],
}
setup(
app=APP,
name=NAME,
version='1.0',
description="Flair - Build cross platform desktop apps with JavaScript (ReactJS), Python, HTML, and CSS",
long_description=readme,
author="Saran Sundararajan",
author_email='[email protected]',
url='https://github.com/SaranSundar/Flair',
python_requires=REQUIRES_PYTHON,
package_dir={'Flair': '.'},
include_package_data=True,
install_requires=REQUIRED_DEP,
license="MIT license",
zip_safe=False,
extras_require=extras_require,
keywords='Flair - Cross Platform Desktop Apps, JavaScript, ReactJS, Python, HTML, CSS',
classifiers=[
'Intended Audience :: Developers',
'License :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
],
options={'py2app': OPTIONS},
setup_requires=SET_REQUIRES,
)