-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (57 loc) · 2.14 KB
/
setup.py
File metadata and controls
70 lines (57 loc) · 2.14 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
#!/usr/bin/env python
"""
The MIT License (MIT)
Copyright (c) 2018 Zuse Institute Berlin, www.zib.de
Permissions are granted as stated in the license file you have obtained
with this software. If you find the library useful for your purpose,
please refer to README.md for how to cite IPET.
@author: Gregor Hendel
"""
from setuptools import setup
with open("ipet/version.py") as f:
exec(f.read())
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = "Interactive Performance Evaluation tools, see README.md"
try:
from PyQt4.Qt import PYQT_VERSION_STR
withgui = True
except ImportError:
withgui = False
pass
packages = ['ipet', 'ipet.concepts', 'ipet.evaluation', 'ipet.misc', 'ipet.parsing', 'ipet.validation']
if withgui:
packages.append('ipetgui')
requirementslist = ['requirements.txt']
if withgui:
requirementslist.append('requirements-gui.txt')
required = []
for r in requirementslist:
with open(r, 'r') as requirements:
required.append(requirements.read().splitlines())
kwargs = {
"name": "ipet",
"version": str(__version__),
"packages": ['ipet', 'ipetgui', 'ipet.concepts', 'ipet.evaluation', 'ipet.misc', 'ipet.parsing', 'ipet.validation'],
"package_data": dict(ipet = ["../images/*.png"]),
"description": "Interactive Performance Evaluation Tools",
"long_description": long_description,
"author": "Gregor Hendel",
"maintainer": "Gregor Hendel",
"author_email": "hendel@zib.de",
"maintainer_email": "hendel@zib.de",
"install_requires": required,
"url": "https://github.com/GregorCH/ipet",
"download_url": "https://github.com/GregorCH/ipet/archive/master.zip",
"keywords": "Mathematical Optimization solver log benchmark parser",
"classifiers": [
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
"scripts": ["scripts/ipet-parse", "scripts/ipet-evaluate", "scripts/ipet-gui", "scripts/ipet-rank"]
}
setup(**kwargs)