Skip to content
Snippets Groups Projects
Commit 38049a9e authored by BRONES Romain's avatar BRONES Romain
Browse files

chore(setup): Add proper setup.py

* remove old deploy script
parent 43e01ecc
No related branches found
No related tags found
No related merge requests found
Pipeline #3233 failed
"""
Python module for extracting attribute from Archive Extractor Device.
Python module for extracting data from Archive Extractor Tango Device.
Example scripts available on GitLab: https://gitlab.synchrotron-soleil.fr/dg/archiveextractor/-/tree/main/examples
Main functions
* findattr
Look into the list of archived attributes for matching names.
* extract
Entry point function for data extraction.
Quick usage in ipython shell:
In [1]: import ArchiveExtractor as AE
In [2]: AE.findattr("ans/dg/*dcct*")
In [3]: AE.extract('ANS/DG/DCCT-CTRL/current', '2021-12-13', '2021-12-13-12:00', method='between')
"""
__version__ = "AUTOVERSIONREPLACE"
__version__ = "2.1"
__all__ = ["Access", ]
......
README 0 → 120000
README.md
\ No newline at end of file
#!/bin/bash
echo "Deploy module in RCM environment"
# Get the current version
version=$(git describe --tags)
# Copy Python module
ipath=/home/operateur/.local/lib/python3.6/site-packages/ArchiveExtractor
mkdir -p $ipath
cp ArchiveExtractor/*.py $ipath/ -rvf
# cwAWKSed the __init__.py file to replace the version variable
awk -v version="$version" '{ gsub("AUTOVERSIONREPLACE",version) ; print}' ArchiveExtractor/__init__.py > $ipath/__init__.py
setup.py 0 → 100755
#!/usr/bin/env python
from distutils.core import setup
setup(name='ArchiveExtractor',
version='2.1',
description='Python module for extracting data from Archive Extractor Tango Device.',
url='https://gitlab.synchrotron-soleil.fr/dg/archiveextractor',
license="GNU-GPL-v3",
author='Romain BRONÈS',
author_email='romain.brones@synchrotron-soleil.fr',
packages=['ArchiveExtractor',],
install_requires = ['pytango>=9.2', 'numpy>=1.15', 'pandas>=1.1'],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment