Commit 71815690 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Merge branch '84-client-library-for-control-systems' into 'develop'

Resolve "Client Library for Control Systems"

Closes #84

See merge request !97
parents 5a779741 a7e69d58
Pipeline #65629 passed with stages
in 10 minutes
......@@ -181,4 +181,9 @@ if(LIMA_ENABLE_BENCHMARKS)
add_subdirectory(bench)
endif()
# Tango
if(LIMA_ENABLE_TANGO)
add_subdirectory(tango)
endif()
# Installation
# Copyright (C) 2021 Samuel Debionne, ESRF.
# Use, modification and distribution is subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
add_subdirectory(py)
# Byte / compiled / optimized
*.py[cod]
__pycache__/
*.so
# Distribution / packaging
/build/
*.egg-info/
.eggs/
# Unittest / coverage
*.py,cover
.coverage.*
htmlcov/
.cache/
.pytest_cache/
# Profiler
/prof/
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Copyright (C) 2021 Samuel Debionne, ESRF.
# Use, modification and distribution is subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required(VERSION 3.1)
project(tango-python)
if (LIMA_ENABLE_PYTHON)
install(FILES Lima2/Client/Detector.py DESTINATION "${Python_SITELIB}/Lima2/Client")
# install(PROGRAMS scripts/LimaCCDs DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
# install(FILES Lima2/Server/Control.py DESTINATION "${Python_SITELIB}/Lima2/Server")
# install(FILES __init__.py DESTINATION "${Python_SITELIB}/Lima2/Server")
endif()
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
This diff is collapsed.
# Strip the 'v' from the version tag
{% if GIT_DESCRIBE_TAG is defined %}
{% set version = GIT_DESCRIBE_TAG[1:] %}
{% else %}
{% set version = "0.0.0" %}
{% endif %}
package:
name: lima2-client
version: {{ version }}
source:
path: ..
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
noarch: python
script: "{{ PYTHON }} -m pip install . -vv"
entry_points:
- lima2_cli = Lima2.Client.Cli:main
requirements:
host:
- python
- setuptools
run:
- pytango
- gevent
- warlock
- finite-state-machine
test:
source_files:
- tests
requires:
- pytest
imports:
- Lima2.Client
commands:
- pytest tests
about:
home: https://github.com/esrf-bliss/Lima2
license: GPL
license_file: LICENCE
summary: A library for the unified control of 2D detectors
#!/usr/bin/env python
from setuptools import setup
packages = [
'Lima2.Client',
]
console_scripts_entry_points = [
"lima2_cli = Lima2.Client.Cli:main",
]
setup(name='Lima2.Client',
version='0.0.0',
description='Python client library for Lima2 detector',
url='https://gitlab.esrf.fr/limagroup/Lima2',
packages=packages,
entry_points={"console_scripts": console_scripts_entry_points},
)
def test_import():
import Lima.Client
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment