This repository has been archived by the owner on Jun 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
executable file
·88 lines (73 loc) · 2.74 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
#!/usr/bin/env python3
# coding=utf-8
import sys
from distutils import core
from os.path import abspath, dirname, join
from setuptools import find_packages
import ifj2017
__author__ = "Josef Kolář, Son Hai Nguyen"
__copyright__ = "Copyright 2017, Josef Kolář & Son Hai Nguyen"
__credits__ = ["Josef Kolář", "Son Hai Nguyen"]
__license__ = "GNU GPL Version 3"
if sys.version_info < (3, 5):
print('Run in python >= 3.5 please.', file=sys.stderr)
exit(1)
base_path = abspath(dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert(join(base_path, 'README.md'), 'rst')
except(IOError, ImportError) as e:
try:
long_description = open(join(base_path, 'README.md')).read()
except Exception as e:
long_description = ''
def setup():
core.setup(
name='IFJcode17-toolkit',
version=ifj2017.__version__,
license='GNU GENERAL PUBLIC LICENSE Version 3',
description='Toolkit for IFJ17 language compiler (as project at FIT BUT in Brno) with '
'interactive debugger and automatic tests.',
long_description=long_description,
url='https://github.com/thejoeejoee/VUT-FIT-IFJ-2017-toolkit',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering',
'Topic :: Utilities'
],
author='Josef Kolář, Son Hai Nguyen',
author_email='[email protected], [email protected]',
keywords='ifj17 ifjcode17 language ide utils debugger editor',
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=[
'PyOpenGL',
'PyQt5==5.7.1',
],
requires=[
'termcolor',
'PyOpenGL',
'PyQt5',
],
# package_dir={'': base_path},
entry_points={
'console_scripts': [
'ifjcode17-ide=ifj2017.ide.main:main',
'ifjcode17-tests=ifj2017.test.main:main',
'ifjcode17-interpreter=ifj2017.interpreter.main:main',
]
},
data_files=[
('share/icons/hicolor/scalable/apps', ['data/ifjcode17-ide.svg']),
('share/applications', ['data/ifjcode17-ide.desktop'])
],
include_package_data=True,
zip_safe=False,
)
if __name__ == '__main__':
setup()