-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
113 lines (106 loc) · 4.72 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
"""
setup.py
"""
# Copyright (c) 2021 Nubis Communications, Inc.
# Copyright (c) 2018-2020 Teledyne LeCroy, Inc.
# All rights reserved worldwide.
#
# This file is part of SignalIntegrity.
#
# SignalIntegrity is free software: You can redistribute it and/or modify it under the terms
# of the GNU General Public License as published by the Free Software Foundation, either
# version 3 of the License, or any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>
from setuptools import setup,find_packages
import codecs
import os
import unittest
#https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, "SignalIntegrity", "__about__.py"), "r") as f:
for line in f:
if line[0]=='_' and '=' in line:
token=line.split('=')
keyValue=token[0].strip().strip('_')
dataValue=eval(token[1].strip().strip(os.linesep))
globals()['__'+keyValue+'__']=dataValue
install_requires=['setuptools>=58.2.0','pip>=20.2.4','numpy>=1.13.0','matplotlib>=2.2.3','urllib3>=1.22.0','Pillow>=5.4.1','scipy>=1.2.1']
pathToIcons='SignalIntegrity/App/icons/png'
pathToMoreIcons=pathToIcons+'/16x16/actions'
pathToHelp='http://teledynelecroy.github.io/SignalIntegrity/SignalIntegrity/App/Help/Help.html.LyXconv/Help-Section-1.html#toc-Section-1'
with open(os.path.join(base_dir, "README.md"), "r") as f:
readmeFile=f.read()
setup(
name=__project__,
version=__version__,
license=__license__,
description=__description__,
author=__author__,
author_email=__email__,
url=__url__,
package_dir={'SignalIntegrity':'SignalIntegrity',
'SignalIntegrity.Lib':'SignalIntegrity/Lib',
'SignalIntegrity.App':'SignalIntegrity/App'},
packages=find_packages('.'),
include_package_data=True,
data_files=[('.',['LICENSE.txt','README.md']),
(pathToIcons, [pathToIcons+'/AppIcon2.gif',
pathToIcons+'/AppIcon2.ico',
pathToIcons+'/gpl.gif']),
(pathToMoreIcons,
[pathToMoreIcons+'/document-new-3.gif',
pathToMoreIcons+'/document-open-2.gif',
pathToMoreIcons+'/document-save-2.gif',
pathToMoreIcons+'/tooloptions.gif',
pathToMoreIcons+'/help-contents-5.gif',
pathToMoreIcons+'/edit-add-2.gif',
pathToMoreIcons+'/edit-delete-6.gif',
pathToMoreIcons+'/draw-line-3.gif',
pathToMoreIcons+'/edit-copy-3.gif',
pathToMoreIcons+'/object-rotate-left-4.gif',
pathToMoreIcons+'/object-flip-horizontal-3.gif',
pathToMoreIcons+'/object-flip-vertical-3.gif',
pathToMoreIcons+'/zoom-in-3.gif',
pathToMoreIcons+'/zoom-out-3.gif',
pathToMoreIcons+'/edit-move.gif',
pathToMoreIcons+'/system-run-3.gif',
pathToMoreIcons+'/help-3.gif',
pathToMoreIcons+'/edit-undo-3.gif',
pathToMoreIcons+'/edit-redo-3.gif',
pathToMoreIcons+'/dialog-information-4.gif',
pathToMoreIcons+'/sp-view.gif',
pathToMoreIcons+'/eye.gif',
pathToMoreIcons+'/down.gif',
pathToMoreIcons+'/up.gif',
pathToMoreIcons+'/edit-3.gif',
pathToMoreIcons+'/variables-view.gif',
pathToMoreIcons+'/equations-view.gif'],
),
('.', ['LICENSE.txt','README.md'])],
install_requires=install_requires,
python_requires='>=3.6',
entry_points={
'console_scripts': [
'SignalIntegrity = SignalIntegrity.App.SignalIntegrityApp:main']},
long_description=readmeFile,
long_description_content_type="text/markdown",
classifiers=[
__status__,
__license__,
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Scientific/Engineering",
],
)