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
|
#!/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/>.
##
##############################################################################
import os
import imp
import sys
from distutils.version import LooseVersion
from setuptools import setup, find_packages, __version__
def get_release_info():
name = "release"
setup_dir = os.path.dirname(os.path.abspath(__file__))
release_dir = os.path.join(setup_dir, 'lib', 'taurus', 'core')
data = imp.find_module(name, [release_dir])
ret = imp.load_module(name, *data)
return ret
release = get_release_info()
package_dir = {'': 'lib'}
packages = find_packages(where='lib')
provides = [
'taurus',
# 'taurus.core',
# 'taurus.qt',
# 'Taurus-Tango', # [Taurus-Tango]
# 'Taurus-Qt', # [Taurus-Qt]
# 'Taurus-Qt-PyQwt', # [Taurus-Qt-Plot]
# 'Taurus-Qt-Synoptic', # [Taurus-Qt-Synoptic]
# 'Taurus-Qt-TaurusGUI', # [Taurus-Qt-TaurusGUI]
# 'Taurus-Qt-Editor', # [Taurus-Qt-Editor] --> or maybe move it to sardana
# 'Taurus-Qt-Guiqwt', # [Taurus-Qt-Guiqwt]
]
install_requires = [
'numpy>=1.1',
'pint>=0.8',
'future',
]
#Workaround for old setuptools
if LooseVersion(__version__) < LooseVersion('20.2'):
if sys.version_info < (3, 4):
install_requires.append('enum34')
else:
install_requires.append('enum34;python_version<"3.4"')
extras_require = {
'taurus-qt': [# 'PyQt4 >=4.8',
# 'PyQt4.Qwt5 >=5.2.0', # [Taurus-Qt-Plot]
'ply >=2.3', # [Taurus-Qt-Synoptic]
'lxml >=2.1', # [Taurus-Qt-TaurusGUI]
'guiqwt >=3', # [Taurus-Qt-Guiqwt]
],
'taurus-tango': ['PyTango >=7.1',
],
'taurus-epics': ['pyepics >=3.2.4',
],
'taurus-h5file': ['h5file',
],
# 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 = [
'taurustestsuite = taurus.test.testsuite:main',
'taurusconfigbrowser = taurus.qt.qtgui.panel.taurusconfigeditor:main',
'taurusplot = taurus.qt.qtgui.qwt5.taurusplot:main',
'taurustrend = taurus.qt.qtgui.qwt5.taurustrend:main',
'taurusform = taurus.qt.qtgui.panel.taurusform:taurusFormMain',
'tauruspanel = taurus.qt.qtgui.panel.taurusdevicepanel:TaurusPanelMain',
'taurusdevicepanel = taurus.qt.qtgui.panel.taurusdevicepanel:TaurusDevicePanelMain',
'taurusgui = taurus.qt.qtgui.taurusgui.taurusgui:main',
'taurusdesigner = taurus.qt.qtdesigner.taurusdesigner:main',
'tauruscurve = taurus.qt.qtgui.extra_guiqwt.plot:taurusCurveDlgMain',
'taurustrend1d = taurus.qt.qtgui.extra_guiqwt.plot:taurusTrendDlgMain',
'taurusimage = taurus.qt.qtgui.extra_guiqwt.plot:taurusImageDlgMain',
'taurustrend2d = taurus.qt.qtgui.extra_guiqwt.taurustrend2d:taurusTrend2DMain',
'taurusiconcatalog = taurus.qt.qtgui.icon.catalog:main',
'taurusdemo = taurus.qt.qtgui.panel.taurusdemo:main',
# TODO: taurusdoc,
]
entry_points = {'console_scripts': console_scripts,
}
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+)',
'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 :: 2.7',
'Programming Language :: Python :: 3.5',
'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,
install_requires=install_requires,
extras_require=extras_require,
test_suite='taurus.test.testsuite.get_taurus_suite',
)
|