/
setup.py
109 lines (90 loc) · 4.99 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
"""percivalui setuptools based setup module.
Created on 23 April 2015
@author: Ulrik Pedersen
"""
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
rootdir = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(rootdir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='percivalui',
version='0.4.0',
description='A Python based user control interface to the Percival detector',
long_description=long_description,
# The project's main homepage.
url='https://github.com/percival-detector/percivalui',
# Author details
author='Ulrik Pedersen',
author_email='ulrik.pedersen@diamond.ac.uk',
# Choose your license
license='Apache Software License, Version 2.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
keywords='Percival Xray Detector Science Syncrotron XFEL',
# Specify the packages that this project provides (using find_packages() for automation)
packages=find_packages(exclude=['docs', 'sandbox', 'tests*']),
# run-time dependencies here. These will be installed by pip when the project is installed.
install_requires=[],
# Additional groups of dependencies (e.g. development dependencies).
# You can install these using the following syntax, for example:
# $ pip install -e .[dev,test]
extras_require={
'test': ['nose>=1.3', 'coverage', 'mock'],
},
# Data files included in the packages
#package_data={
# 'sample': ['package_data.dat'],
#},
# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages. See:
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
#data_files=[('my_data', ['data/data_file'])],
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'percival-control=percival_detector.percivalcontrol:main',
'percival-client=percival_detector.client:main',
'percival-scan-devices=percival_detector.scandevices:main',
'percival-hl-configure-sensor-dacs=percival_detector.scripts.hl_configure_sensor_dacs:main',
'percival-hl-apply-setpoint=percival_detector.scripts.hl_apply_setpoint:main',
'percival-hl-configure-system-settings=percival_detector.scripts.hl_configure_system_settings:main',
'percival-hl-configure-chip-readout-settings=percival_detector.scripts.hl_configure_chip_readout_settings:main',
'percival-hl-configure-clock-settings=percival_detector.scripts.hl_configure_clock_settings:main',
'percival-hl-configure-sensor-configuration=percival_detector.scripts.hl_configure_sensor_configuration:main',
'percival-hl-configure-sensor-calibration=percival_detector.scripts.hl_configure_sensor_calibration:main',
'percival-hl-configure-sensor-debug=percival_detector.scripts.hl_configure_sensor_debug:main',
'percival-hl-configure-control-groups=percival_detector.scripts.hl_configure_control_groups:main',
'percival-hl-configure-monitor-groups=percival_detector.scripts.hl_configure_monitor_groups:main',
'percival-hl-configure-setpoints=percival_detector.scripts.hl_configure_setpoints:main',
'percival-hl-initialise-channels=percival_detector.scripts.hl_initialise_channels:main',
'percival-hl-download-channel-settings=percival_detector.scripts.hl_download_channel_settings:main',
'percival-hl-scan-setpoints=percival_detector.scripts.hl_scan_setpoints:main',
'percival-hl-safety-setpoint-scan=percival_detector.scripts.hl_safety_setpoint_scan:main',
'percival-hl-set-channel=percival_detector.scripts.hl_set_channel:main',
'percival-hl-system-command=percival_detector.scripts.hl_system_command:main',
'percival-hl-update-monitors=percival_detector.scripts.hl_update_monitors:main',
'percival-hl-apply-sensor-roi=percival_detector.scripts.hl_apply_sensor_roi:main',
'percival-hl-set-system-setting=percival_detector.scripts.hl_set_system_setting:main',
],
},
)