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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
|
#!/usr/bin/env python
# ###########################################################################
#
# This file is part of Taurus
#
# http://taurus-scada.org
#
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
#
# Taurus is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Taurus 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Taurus. If not, see <http://www.gnu.org/licenses/>.
#
# ###########################################################################
from setuptools import setup, find_packages
def get_release_info():
from importlib.util import spec_from_file_location, module_from_spec
from pathlib import Path
path = Path(__file__).parent / "lib" / "taurus" / "_release.py"
spec = spec_from_file_location("release", path.as_posix())
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module
release = get_release_info()
package_dir = {"": "lib"}
packages = find_packages(where="lib")
provides = [
"taurus",
]
install_requires = [
"numpy>=1.16",
"pint>=0.8",
"click",
"packaging",
]
extras_require = {
"taurus-qt": [
"ply >=2.3", # synoptics
"lxml >=2.1", # taurusgui
"PyQtWebEngine", # taurusgui
"guiqwt >=3", # extra_guiqwt
],
"taurus-tango": [
"PyTango >=7.1",
],
"taurus-epics": [
"pyepics >=3.2.4",
],
"taurus-h5file": [
"h5py",
],
# separate the editor from 'taurus-qt' to avoid forcing spyder>3
# which implies many more dependencies that may be hard on older system
"taurus-qt-editor": [
"spyder >=3",
],
}
console_scripts = [
"taurus = taurus.cli:main",
]
taurus_subcommands = [
"config = taurus.qt.qtgui.panel.taurusconfigeditor:config_cmd",
"device = taurus.qt.qtgui.panel.taurusdevicepanel:device_cmd",
"panel = taurus.qt.qtgui.panel.taurusdevicepanel:panel_cmd",
"loadui = taurus.qt.qtgui.taurusgui.taurusgui:ui_cmd",
"gui = taurus.qt.qtgui.taurusgui.taurusgui:gui_cmd",
"newgui = taurus.qt.qtgui.taurusgui.taurusgui:newgui_cmd",
"designer = taurus.qt.qtdesigner.taurusdesigner:designer_cmd",
"icons = taurus.qt.qtgui.icon.catalog:icons_cmd",
"form = taurus.qt.qtgui.panel.taurusform:form_cmd",
"demo = taurus.qt.qtgui.panel.taurusdemo:demo_cmd",
"logmon = taurus.core.util.remotelogmonitor:logmon_cmd",
"qlogmon = taurus.qt.qtgui.table.qlogtable:qlogmon_cmd",
"check-deps = taurus._taurushelper:check_dependencies_cmd",
"plot = taurus.cli.alt:plot_cmd",
"trend = taurus.cli.alt:trend_cmd",
"trend2d = taurus.cli.alt:trend2d_cmd",
"image = taurus.cli.alt:image_cmd",
]
trend2d_alternatives = [
"guiqwt = taurus.qt.qtgui.extra_guiqwt:TaurusTrend2DDialog",
]
image_alternatives = [
"guiqwt = taurus.qt.qtgui.extra_guiqwt:TaurusImageDialog",
]
model_selectors = [
"Tango = taurus.qt.qtgui.panel.taurusmodelchooser:TangoModelSelectorItem",
]
formatters = [
"taurus = taurus.qt.qtgui.base:defaultFormatter",
"tango = taurus.core.tango.util:tangoFormatter",
"{:2.3e} = taurus.qt.qtgui.base:expFormatter",
"{:.5f} = taurus.qt.qtgui.base:floatFormatter",
]
entry_points = {
"console_scripts": console_scripts,
"taurus.cli.subcommands": taurus_subcommands,
"taurus.model_selector.items": model_selectors,
"taurus.qt.formatters": formatters,
"taurus.trend2d.alts": trend2d_alternatives,
"taurus.image.alts": image_alternatives,
}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: X11 Applications :: Qt",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", # noqa
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
]
setup(
name="taurus",
version=release.version,
description=release.description,
long_description=release.long_description,
author=release.authors["Tiago_et_al"][0],
maintainer=release.authors["Community"][0],
maintainer_email=release.authors["Community"][1],
url=release.url,
download_url=release.download_url,
platforms=release.platforms,
license=release.license,
keywords=release.keywords,
packages=packages,
package_dir=package_dir,
classifiers=classifiers,
include_package_data=True,
entry_points=entry_points,
provides=provides,
python_requires=">=3.5",
install_requires=install_requires,
extras_require=extras_require,
)
|