Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r9f0f35e r26f77a6  
    1 # coding: utf-8
     1#!/usr/bin/python
     2# -*- coding: utf-8 -*-
     3'''
     4    Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    25
    3 import sys
     6    This program is free software: you can redistribute it and/or modify
     7    it under the terms of the GNU General Public License as published by
     8    the Free Software Foundation, either version 3 of the License, or
     9    (at your option) any later version.
     10
     11    This program is distributed in the hope that it will be useful,
     12    but WITHOUT ANY WARRANTY; without even the implied warranty of
     13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14    GNU General Public License for more details.
     15
     16    You should have received a copy of the GNU General Public License
     17    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18'''
     19import os
    420from setuptools import setup, find_packages
    521
    6 NAME = 'gnuboat'
    7 version = open('VERSION', 'r')
    8 VERSION = version.read().strip()
    9 version.close()
    10 
    11 # shapely is required by geoalchemy2
    12 REQUIRES = [
    13     'connexion==2.6.0',
    14     'swagger-ui-bundle',
    15     'python-dateutil',
    16     'setuptools>=21.0.0',
    17     'flask',
    18     'flask-sqlalchemy',
    19     'flask-cors',
    20     'flask-mail',
    21     'flask-migrate',
    22     'shapely',
    23     'geoalchemy2',
    24     'sqlalchemy-utils',
    25     'celery',
    26     'python-memcached',
    27     'pathlib',
    28     'pytz',
    29     'rrdtool',
    30     'pynmea2',
    31     'gdal<=2.4.3',
    32     'mercantile',
    33     'Pillow',
    34     'requests',
    35     'progressbar2',
    36     'urllib3',
    37     'gunicorn',
    38     'dataclasses',
    39     # 'gps', no pip variant, install it from system
    40 ]
    41 
    42 readme = open('README.md', 'r')
     22readme = open('src/python/README', 'r')
    4323README_TEXT = readme.read()
    4424readme.close()
    4525
    46 # To install the library, run the following
    47 #
    48 # python setup.py install
    49 #
    50 # prerequisite: setuptools
    51 # http://pypi.python.org/pypi/setuptools
    52 
    5326setup(
    54     name=NAME,
    55     version=VERSION,
    56     description='GNUBoat python package',
    57     author_email='info@engsas.de',
    58     url='https://trac.engsas.de/gnuboat',
    59     license='GNU General Public License v3 or later (GPLv3+)',
    60     keywords=['OpenAPI', 'GNUBoat'],
    61     install_requires=REQUIRES,
    62     packages=find_packages('src', exclude=['*test*', 'mapservice-webclient']),
    63     package_dir={'': 'src'},
    64     package_data={'gnuboat': [
    65             'src/gnuboat/mapservice/openapi/openapi.yaml',
    66             'src/gnuboat/mapservice_impl/templats/*',
    67             'src/gnuboat/deviceservice/openapi/openapi.yaml',
    68             'src/gnuboat/deviceservice_impl/static/*',
    69             'src/gnuboat/samples',
    70         ]
    71     },
    72     include_package_data=True,
    73     scripts=[
    74         'src/gnuboat/device/bin/gnuboat-splashscreen',
    75         'src/gnuboat/device/bin/gnuboat-data-generator',
    76         'src/gnuboat/common/bin/gnuboat-log-converter',
    77         'src/gnuboat/common/bin/gnuboat-log-analyser',
    78         'src/gnuboat/common/bin/gnuboat-log-uploader',
    79         'src/gnuboat/common/bin/gdal2tiles-gnuboat.py',
    80     ],
    81     entry_points={
    82         'console_scripts': [
    83             ('gnuboat-dev-mapservice='
    84              'gnuboat.mapservice_impl.demo.service_entry:main'),
    85             ('gnuboat-dev-mapservice-worker='
    86              'gnuboat.mapservice_impl.demo.celery_entry:main'),
    87             ('gnuboat-dev-deviceservice='
    88              'gnuboat.deviceservice_impl.demo.service_entry:main'),
    89             ('gnuboat-device-daemon='
    90              'gnuboat.device.daemon.daemon:main'),
    91         ]
    92     },
    93     long_description=README_TEXT,
     27  name="gnuboat",
     28  version="0.4.2",
     29  maintainer="EngSaS - Langenbach",
     30  maintainer_email="info@engsas.de",
     31  description=("Tools to run gnuboat daemon"),
     32  license="GNU General Public License v3 or later (GPLv3+)",
     33  keywords="",
     34  url="http://trac.engsas.de/gnuboat",
     35  package_dir={'': 'src/python'},
     36  packages=find_packages("src/python"),
     37  scripts=["src/python/bin/gnuboat", "src/python/bin/gnuboat-splashscreen", "src/python/bin/gnuboat-log-converter", "src/python/bin/gnuboat-data-generator"],
     38  long_description=README_TEXT,
     39  install_requires=[
     40    "rrdtool",
     41    "python-dateutil",
     42    "pytz",
     43    "pynmea2",
     44  ],
    9445)
Note: See TracChangeset for help on using the changeset viewer.