Changes in / [ce5244e:8fd7454]


Ignore:
Files:
119 added
299 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rce5244e r8fd7454  
     1build/*
    12# Compiled python modules.
    23*.pyc
    3 __pycache__/
    4 .directory
    54
    65# Setuptools distribution folder.
    76dist/
    8 build/
     7
    98# Python egg metadata, regenerated from source files by setuptools.
    109*.egg-info
    11 
    12 .tox/
    13 .pytest_cache/
    14 .coverage
    15 .coverage.*
    16 reports
    17 
    18 buildhelpers/codegen/openapi-generator-cli-*.jar
    19 src/gnuboat/mapservice/
    20 src/gnuboat/mapservice_client/
    21 src/mapservice-webclient/src-gen
    22 celerybeat-schedule
    23 src/gnuboat/deviceservice/
    24 src/gnuboat/deviceservice_impl/static/common
  • debian/changelog

    rce5244e r8fd7454  
    1 gnubiat (0.5.99) testing; urgency=medium
    2   * New upstream version 0.5.99
    3 
    4  -- Joachim Langenbach <joachim.langenbach@engsas.de> Sat, 22.8.
    51gnuboat (0.5.2) jessie; urgency=low
    62
  • debian/compat

    rce5244e r8fd7454  
    1 10
     19
  • debian/control

    rce5244e r8fd7454  
    11Source: gnuboat
    2 Section: science
     2Section: misc
    33Priority: optional
    4 Maintainer: Joachim Langenbach <joachim.langenbach@engsas.de>
    5 Build-Depends: debhelper (>= 10~),
    6     dh-python,
    7     dh-systemd (>= 1.5),
    8     python3-all,
    9     python3-all-dbg,
    10     python3-setuptools,
    11     python3-flask (>= 1.0),
    12     python3-flask-sqlalchemy,
    13     python3-flask-cors,
    14     python3-flask-mail,
    15     python3-flask-migrate,
    16     python3-swagger-ui-bundle,
    17     python3-connexion (>=2.6.0),
    18     python3-celery,
    19     python3-shapelym,
    20     python3-geoalchemy2,
    21     python3-memcached,
    22     python3-pathlib,
    23     python3-pytz,
    24     python3-rrdtool,
    25     python3-pynmea2,
    26     gdal,
    27     python3-mercantile,
    28     python3-Pillow,
    29     python3-requests,
    30     python3-prgressbar2,
    31     python3-urllib3,
    32     python3-gunicorn,
    33     pyhon3-dataclasses
    34 Standards-Version: 4.5.0
    35 Homepage: https://trac.engsas.de/gnuboat
    36 Vcs-Git: https://svn.engsas.de/gnuboat -b debian/bullseye
    37 Vcs-Browser: https://trac.engsas.de/gnuboat/browser
    38 X-Python3-Version: >= 3.6
     4Maintainer: EngSaS - Maintainer <info@engsas.de>
     5# To get a hint how debconf could be used, have a look at revision ecee2e69fa25cf158e950f4d4359363198c313a6 from debian/jessie branch
     6Build-Depends: debhelper (>= 9), lsb-release, dh-python, dh-systemd (>= 1.5), python-all, python3-all, python-all-dbg, python3-all-dbg, python-setuptools, python3-setuptools, python-rrdtool, python-pynmea2, python3-pynmea2, phing, php-pear
     7Standards-Version: 3.9.6
     8Homepage: https://trac.falaba.de/gnuboat
     9Vcs-Git: https://svn.falaba.de/gnuboat -b debian/jessie
     10Vcs-Browser: https://trac.falaba.de/gnuboat/browser
     11X-Python-Version: >= 2.6
     12#X-Python3-Version: >= 3.2
    3913
    40 Package: python3-gnuboat
     14Package: gnuboat-webserver
    4115Architecture: all
     16Depends: ${misc:Depends}, php5-rrd, php5-json, php5-sqlite, php5-cgi, python-gnuboat
     17Description: GNUBoat server with log daemon and webservice
     18 The GNUBoat server drives a webservice, serving clients,
     19 feeded with data from python-gnuboat.
     20
     21Package: gnuboat-webclient
     22Architecture: all
     23Depends: ${misc:Depends}
     24Description: GNUBoat webclient to display data from gnuboat-server
     25 Display data from GNUBoat server in a browser.
     26
     27Package: python-gnuboat
    4228Section: python
    43 Depends: ${python3:Depends},
    44          ${misc:Depends}
    45 Description: Measuring and analysing water depth
    46  GNUBoat packages provides functions to measure,
    47  analyse and view water depth data.
     29Architecture: all
     30Depends: ${misc:Depends}, ${python:Depends}, python-pil, python-dateutil, python-tz, python-rrdtool, python-pynmea2, gpsd, gpsbabel, n2kd-scripts, n2kd-bin, gnuboat-daemon-config
     31Recommends: python-epd
     32Description: GNUBoat logging daemon
     33 The GNUBoat daemon provides a daemon to collect data, optionally drives
     34 the display.
     35
     36#Package: python3-gnuboat
     37#Section: python
     38#Architecture: all
     39#Depends: ${misc:Depends}, ${python3:Depends}, python3-pil, python3-dateutil, python3-tz, python3-rrdtool, python3-pynmea2, gpsd, gpsbabel, n2kd-scripts, n2kd-bin, gnuboat-daemon-config
     40#Recommends: python-epd
     41#Description: GNUBoat logging daemon
     42# The GNUBoat daemon provides a daemon to collect data, optionally drives
     43# the display.
     44
     45Package: gnuboat-daemon-config
     46Depends: ${misc:Depends}
     47Architecture: all
     48Recommends: python-gnuboat | python3-gnuboat
     49Description: GNUBoat logging daemon config files
     50 The GNUBoat daemon provides a daemon to collect data, optionally drives
     51 the display.
    4852 .
    49  This package contains the common module for Python 3.
    50 
    51 Package: gnuboat-common-bin
    52 Architecure: all
    53 Section: utils
    54 Depends: python3-gnuboat (>= ${binary:Version})
    55          ${python3:Depends},
    56          ${misc:Depends}
    57 Description: Measuring and analysing water depth
    58  GNUBoat packages provides functions to measure,
    59  analyse and view water depth data.
    60  .
    61  This package contains the GNUBoat common utilities.
    62 
    63 Package: gnuboat-device-bin
    64 Architecure: all
    65 Section: utils
    66 Depends: python3-gnuboat-device (>= ${binary:Version}),
    67          ${python3:Depends},
    68          ${misc:Depends}
    69 Recommends: gnuboat-common-bin (>= ${binary:Version})
    70 Description: Measuring and analysing water depth
    71  GNUBoat packages provides functions to measure,
    72  analyse and view water depth data.
    73  .
    74  This package contains the GNUBoat device utilities.
    75 
    76 Package: gnuboat-dev
    77 Architecure: all
    78 Section: dev
    79 Depends: gnuboat-common-bin (>= ${binary:Version}),
    80          gnuboat-device-bin (>= ${binary:Version}),
    81          python3-gnuboat (>= ${binary:Version}),
    82          ${python3:Depends},
    83          ${misc:Depends}
    84 Description: Measuring and analysing water depth
    85  GNUBoat packages provides functions to measure,
    86  analyse and view water depth data.
    87  .
    88  This package contains the GNUBoat development utilities.
     53 This package installs the needed config files.
    8954
    9055Package: gnuboat-puppet
    … …  
    9560 as a gnu.boat server and webclient
    9661
    97 Package: gnuboat-config
     62Package: gnuboat-jessie
    9863Architecture: all
    9964Section: admin
    10065Depends: ${misc:Depends}
    101 Description: Release packages for the GNUBoat repository
     66Description: Release packages for the GNUBoat jessie repository
    10267 This package adds the gnuboat repository and the
    10368 needed trusted keyring to apt.
    104  
    105 Package: gnuboat-jessie
    106 Depends: gnuboat-config, ${misc:Depends}
    107 Architecture: all
    108 Priority: optional
    109 Section: oldlibs
    110 Description: transitional package
    111  This is a transitional package. It can safely be removed.
    11269
  • debian/rules

    rce5244e r8fd7454  
    22
    33#export DH_VERBOSE = 1
    4 export PYBUILD_NAME=gnuboat
     4export PYBUILD_NAME = gnuboat
     5export PYBUILD_OPTION="-d src/python"
     6DESTDIR := $(CURDIR)/debian/build/webapp
    57
    68%:
    7         dh $@ --with systemd,python3 --buildsystem=pybuild
     9        dh $@ --with systemd,python2,python3 --buildsystem=pybuild
    810
    9 override_dh_auto_clean:
    10         dh_auto_clean
    11 
    12         $(RM) -R .pytest_cache
    13         $(RM) -R *.egg-info
    14 
    15 override_dh_auto_install:
    16         dh_auto_install
    17        
    18         # Move files into gnuboat-commmon-bin package
    19         mkdir -p debian/gnuboat-common-bin/usr/bin
    20         mv debian/python3-gnuboat/usr/bin/gnuboat-log-* debian/gnuboat-common-bin/usr/bin
    21         mv debian/python3-gnuboat/usr/bin/gdal2tiles-gnuboat.py debian/gnuboat-common-bin/usr/bin
    22 
    23         # Move files into gnuboat-device package
    24         mkdir -p debian/gnuboat-device-bin/usr/bin
    25         mkdir -p debian/gnuboat-device-bin/lib/systemd/system
    26         mv debian/python3-gnuboat/usr/bin/gnuboat-device-daemon debian/gnuboat-device-bin/usr/bin
    27         mv debian/python3-gnuboat/usr/bin/gnuboat-splashscreen debian/gnuboat-device-bin/usr/bin
    28         mv src/python/device/config/gnuboat.service debian/gnuboat-device-bin/lib/systemd/system
    29        
    30         # Move files into gnuboat-dev package
    31         mkdir -p debian/gnuboat-dev/usr/bin
    32         mv debian/python3-gnuboat/usr/bin/gnuboat-data-generator debian/gnuboat-dev/usr/bin
    33 
    34         # Move files into gnuboat-puppet package
    35         mkdir -p debian/gnuboat-puppet/etc/puppet
    36         src/puppetcode/gnuboat_hiera.yaml debian/gnuboat-puppet/etc/puppet/
    37         src/puppetcode/gnuboat_puppet.conf debian/gnuboat-puppetetc/puppet/
    38         src/puppetcode/environments debian/gnuboat-puppetetc/puppet/
     11override_dh_auto_build-indep:
     12        dh_auto_build
     13        phing -Dbuilddir=$(DESTDIR) -f $(CURDIR)/src/webapp/build.xml
  • setup.py

    rce5244e r8fd7454  
    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.8",
     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)
  • src/puppetcode/environments/gnuboat/hiera.yaml

    rce5244e r8fd7454  
    55  data_hash: yaml_data
    66hierarchy:
    7   - name: "Per GNUBoat type"
    8     path: "gnuboat/%{facts.gnuboat_type}.yaml"
     7  - name: "Per os"
     8    path: "os/%{facts.os.family}.yaml"
    99  - name: "Common"
    1010    path: "common.yaml"
Note: See TracChangeset for help on using the changeset viewer.