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