-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (84 loc) · 2.19 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
89
90
91
92
try:
import numpy as np
except ImportError:
np = None
from setuptools import setup, find_packages
import sys
sys.path.append('tttrconvert')
import info
NAME = info.__name__
VERSION = info.__version__
AUTHOR = info.__author__
LICENSE = info.__license__
DESCRIPTION = info.__description__
LONG_DESCRIPTION = info.LONG_DESCRIPTION
URL = info.__url__
EMAIL = info.__email__
APP_ID = info.__app_id__
def dict_from_txt(fn):
d = {}
with open(fn) as f:
for line in f:
(key, val) = line.split()
d[str(key)] = val
return d
gui_scripts = dict_from_txt("./tttrconvert/entry_points/gui.txt")
console_scripts = dict_from_txt("./tttrconvert/entry_points/cmd.txt")
metadata = dict(
name=NAME,
version=VERSION,
license=LICENSE,
description=DESCRIPTION,
author=AUTHOR,
author_email=EMAIL,
url=URL,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
],
keywords='fluorescence spectroscopy',
packages=find_packages(
include=(NAME + "*",)
),
package_dir={
NAME: NAME
},
include_package_data=True,
package_data={
'': [
'*.json', '*.yaml',
'*.ui', '*.css', '*.qss',
'*.png', '*.svg',
'*.csv', '*.npy', '*.dat',
'*.dll', '*.so', '*.pyd'
]
},
install_requires=[
'PyQt5', 'qtpy', 'sip', 'pyqtgraph',
'numpy',
'PyYAML',
'typing-extensions',
'opencv-python'
],
setup_requires=[
'numpy',
'PyYAML',
'setuptools'
],
entry_points={
"console_scripts": [
# There is currently no console interface
# "%s=%s" % (key, console_scripts[key]) for key in console_scripts
],
"gui_scripts": [
"%s=%s" % (key, gui_scripts[key]) for key in gui_scripts
]
}
)
setup(**metadata)