diff --git a/FofbTool/__init__.py b/FofbTool/__init__.py index 24c3af25d5294470aaf6526a95e8ebebad973c12..d3c88807c81c11bd8bcb6e16b47cf65cae0406bf 100644 --- a/FofbTool/__init__.py +++ b/FofbTool/__init__.py @@ -1 +1 @@ -__version__ = "AUTOVERSIONREPLACE" +__version__ = "2.2" diff --git a/README b/README new file mode 120000 index 0000000000000000000000000000000000000000..bff755aba56287b024382699e0f708bbac59cb74 --- /dev/null +++ b/README @@ -0,0 +1 @@ +README.adoc \ No newline at end of file diff --git a/install_rcm.sh b/install_rcm.sh deleted file mode 100755 index 10fdc5f135ca5d663874734615a668f5e6814edc..0000000000000000000000000000000000000000 --- a/install_rcm.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -echo "Deploy module and CLI in RCM environment" - -# Get the current version -version=$(git describe --tags) - -# Copy Python module -ipath=/home/operateur/.local/lib/python3.6/site-packages/FofbTool -mkdir -p $ipath -cp FofbTool/*.py $ipath/ -rvf -cp FofbTool/*.cfg $ipath/ -rvf - -# Copy bin CLI -cp bin/FofbTool /home/production/scripts/DG/python/bin/ -vf - -# Put exec rights -chmod +x /home/production/scripts/DG/python/bin/FofbTool - -# AWK the __init__.py file to replace the version variable -awk -v version="$version" '{ gsub("AUTOVERSIONREPLACE",version) ; print}' FofbTool/__init__.py > $ipath/__init__.py diff --git a/bin/FofbTool b/scripts/FofbTool similarity index 100% rename from bin/FofbTool rename to scripts/FofbTool diff --git a/setup.py b/setup.py new file mode 100755 index 0000000000000000000000000000000000000000..75fdb54016753c93b25fa9a456db2d60917d900e --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup(name='FofbTool', + version='2.2', + description='Python module to operate and configure SOLEIL FOFB.', + url='https://gitlab.synchrotron-soleil.fr/dg/fofb/fofbtool', + license="GNU-GPL-v3", + author='Romain BRONĂˆS', + author_email='romain.brones@synchrotron-soleil.fr', + packages=['FofbTool',], + scripts=['scripts/FofbTool',], + package_data={ + 'FofbTool': ['*.cfg'], + }, + install_requires = ['pytango>=9.2', 'numpy>=1.15'], + )