-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (42 loc) · 1.16 KB
/
setup.py
File metadata and controls
45 lines (42 loc) · 1.16 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
import sys
import setuptools
PACKAGE_NAME = 'harmony_gui'
PROJECT_DIR_NAME = 'harmony_gui'
PACKAGE_VERSION = '1.0.4'
python_version = sys.version_info[:2]
if python_version < (3, 7):
print("{} requires Python version 3.7 or later".format(PACKAGE_NAME))
print("(Version {}.{} detected)".format(*python_version))
sys.exit(1)
elif python_version >= (3, 10):
print("{} is not compatible with Python 3.10 or above".format(PACKAGE_NAME))
print("(Version {}.{} detected)".format(*python_version))
sys.exit(1)
setuptools.setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
author="Renyu (Robin) Li",
author_email="rl626@cornell.edu",
description="Harmony Programming Language GUI",
packages=setuptools.find_packages(),
install_requires=[
'Pillow',
'PyQt5',
'numpy',
'harmony'
],
license="BSD",
url="https://harmonylang.dev",
include_package_data=True,
package_data={
PACKAGE_NAME: [
"gui_import/*.json",
]
},
entry_points={
'console_scripts': [
'harmony-gui=harmony_gui.gui:main',
]
},
python_requires=">=3.7, <3.10",
)