| [43fd35c] | 1 | # coding: utf-8
|
|---|
| 2 |
|
|---|
| 3 | import sys
|
|---|
| 4 | from setuptools import setup, find_packages
|
|---|
| 5 |
|
|---|
| 6 | NAME = 'gnuboat'
|
|---|
| [f9321aa] | 7 | version = open('VERSION', 'r')
|
|---|
| 8 | VERSION = version.read().strip()
|
|---|
| 9 | version.close()
|
|---|
| [43fd35c] | 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',
|
|---|
| [705ff14] | 17 | 'flask',
|
|---|
| [43fd35c] | 18 | 'flask-sqlalchemy',
|
|---|
| 19 | 'flask-cors',
|
|---|
| 20 | 'flask-mail',
|
|---|
| 21 | 'shapely',
|
|---|
| 22 | 'geoalchemy2',
|
|---|
| 23 | 'sqlalchemy-utils',
|
|---|
| 24 | 'celery',
|
|---|
| 25 | 'python-memcached',
|
|---|
| 26 | 'pathlib',
|
|---|
| 27 | 'pytz',
|
|---|
| 28 | 'rrdtool',
|
|---|
| 29 | 'pynmea2',
|
|---|
| 30 | 'numpy',
|
|---|
| 31 | 'gdal<=2.4.3',
|
|---|
| 32 | 'mercantile',
|
|---|
| 33 | 'Pillow',
|
|---|
| 34 | 'requests',
|
|---|
| 35 | 'progressbar2',
|
|---|
| [f30ecc5] | 36 | 'urllib3',
|
|---|
| 37 | 'gunicorn'
|
|---|
| [43fd35c] | 38 | ]
|
|---|
| 39 |
|
|---|
| [f0e8020] | 40 | readme = open('README.md', 'r')
|
|---|
| [43fd35c] | 41 | README_TEXT = readme.read()
|
|---|
| 42 | readme.close()
|
|---|
| 43 |
|
|---|
| 44 | # To install the library, run the following
|
|---|
| 45 | #
|
|---|
| 46 | # python setup.py install
|
|---|
| 47 | #
|
|---|
| 48 | # prerequisite: setuptools
|
|---|
| 49 | # http://pypi.python.org/pypi/setuptools
|
|---|
| 50 |
|
|---|
| 51 | setup(
|
|---|
| 52 | name=NAME,
|
|---|
| 53 | version=VERSION,
|
|---|
| [488be44] | 54 | description='GNUBoat python package',
|
|---|
| [43fd35c] | 55 | author_email='info@engsas.de',
|
|---|
| 56 | url='https://trac.engsas.de/gnuboat',
|
|---|
| 57 | license='GNU General Public License v3 or later (GPLv3+)',
|
|---|
| [488be44] | 58 | keywords=['OpenAPI', 'GNUBoat'],
|
|---|
| [43fd35c] | 59 | install_requires=REQUIRES,
|
|---|
| 60 | packages=find_packages('src', exclude=['*test*', 'mapservice-webclient']),
|
|---|
| 61 | package_dir={'': 'src'},
|
|---|
| [488be44] | 62 | package_data={'gnuboat': [
|
|---|
| 63 | 'src/gnuboat/mapservice/openapi/openapi.yaml',
|
|---|
| [2c86c99] | 64 | 'src/gnuboat/mapservice_impl/templats/*',
|
|---|
| 65 | 'src/gnuboat/deviceservice/openapi/openapi.yaml',
|
|---|
| 66 | 'src/gnuboat/deviceservice_impl/static/*',
|
|---|
| [57f7384] | 67 | 'src/gnuboat/samples',
|
|---|
| [43fd35c] | 68 | ]
|
|---|
| 69 | },
|
|---|
| 70 | include_package_data=True,
|
|---|
| 71 | scripts=[
|
|---|
| 72 | 'src/gnuboat/device/bin/gnuboat',
|
|---|
| 73 | 'src/gnuboat/device/bin/gnuboat-splashscreen',
|
|---|
| 74 | 'src/gnuboat/device/bin/gnuboat-data-generator',
|
|---|
| 75 | 'src/gnuboat/common/bin/gnuboat-log-converter',
|
|---|
| 76 | 'src/gnuboat/common/bin/gnuboat-log-analyser',
|
|---|
| 77 | 'src/gnuboat/common/bin/gnuboat-log-uploader',
|
|---|
| 78 | 'src/gnuboat/common/bin/gdal2tiles-gnuboat.py',
|
|---|
| 79 | ],
|
|---|
| 80 | entry_points={
|
|---|
| [50f6fb0] | 81 | 'console_scripts': [
|
|---|
| [24a7f16] | 82 | ('gnuboat-dev-mapservice='
|
|---|
| [f30ecc5] | 83 | 'gnuboat.mapservice_impl.demo.MapserviceEntry:main'),
|
|---|
| [24a7f16] | 84 | ('gnuboat-dev-mapservice-worker='
|
|---|
| [2c86c99] | 85 | 'gnuboat.mapservice_impl.demo.CeleryEntry:main'),
|
|---|
| 86 | ('gnuboat-dev-deviceservice='
|
|---|
| [f30ecc5] | 87 | 'gnuboat.deviceservice_impl.demo.DeviceserviceEntry:main'),
|
|---|
| [50f6fb0] | 88 | ]
|
|---|
| [43fd35c] | 89 | },
|
|---|
| 90 | long_description=README_TEXT,
|
|---|
| 91 | )
|
|---|