Skip to content
Snippets Groups Projects
setup.py 1.78 KiB
Newer Older
#!/usr/bin/env python
#   This file is part of nexdatas - Tango Server for NeXus data writer
#
#    Copyright (C) 2017-2017 DESY, Jan Kotanski <jkotan@mail.desy.de>
#
#    nexdatas is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    nexdatas 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 General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with nexdatas.  If not, see <http://www.gnu.org/licenses/>.
#

""" setup.py for NXS configuration server """

import os
from distutils.core import setup

def read(fname):
    """ read the file

    :param fname: readme file name
    """
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

#: (:obj:`str`) full release number
release = "1.6.2"

#: (:obj:`dict` <:obj:`str` , any >`) metadata for distutils
SETUPDATA = dict(
    name="pidp.tools",
    version=release,
    author="Jan Kotanski",
    author_email="jankotan@gmail.com",
    description=("PETRA III Debian Package Tools"),
    license="GNU GENERAL PUBLIC LICENSE v3",
    keywords="gbp git stash desy debian package hasylab fs-ec",
    url="https://stash.desy.de/projects/JMK/repos/pidptools/browse/",
    platforms=("Linux Debian"),
    scripts=[
        'pidpclone',
        'pidpbuild',
        'pidppush',
        'pidpcreate',
    ],
    long_description=read('README')
)


def main():
    """ the main function """
    setup(**SETUPDATA)


if __name__ == '__main__':
    main()