From 573859193e50ed8ed552fe28a982deb331c489a5 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Mon, 10 Jun 2019 19:43:51 +0300 Subject: [PATCH] Update debian packaging for including pygeoapi to UbuntuGIS --- debian/changelog | 34 +++++++++++++++++++++++----------- debian/control | 41 ++++++++++++++++++++++++++++++++++------- debian/copyright | 4 ++-- debian/rules | 12 ++++++------ 4 files changed, 65 insertions(+), 26 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1db3f52..fce9fe8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,16 @@ -python-pygeoapi (0.6.0) trusty; urgency=medium +pygeoapi (0.6.0-1~bionic1) bionic; urgency=medium + + * Disable tests during package build. + + -- Angelos Tzotsos Mon, 10 Jun 2019 19:00:00 +0200 + +pygeoapi (0.6.0-1~bionic0) bionic; urgency=medium + + * Update debian packaging to support multiple python versions. + + -- Angelos Tzotsos Mon, 10 Jun 2019 10:00:00 +0200 + +pygeoapi (0.6.0) trusty; urgency=medium * rename feature.ID to feature.id * add HTML output for processing functionality @@ -11,7 +23,7 @@ python-pygeoapi (0.6.0) trusty; urgency=medium -- Tom Kralidis Mon, 29 Apr 2019 14:29:57 +0000 -python-pygeoapi (0.5.0) trusty; urgency=medium +pygeoapi (0.5.0) trusty; urgency=medium * plugin refactoring * add processing capabilities @@ -22,57 +34,57 @@ python-pygeoapi (0.5.0) trusty; urgency=medium -- Tom Kralidis Mon, 29 Apr 2019 17:34:02 +0000 -python-pygeoapi (0.4.1) trusty; urgency=medium +pygeoapi (0.4.1) trusty; urgency=medium * fix ES GeoJSON output -- Tom Kralidis Mon, 07 Jan 2019 12:21:10 +0000 -python-pygeoapi (0.4.0) trusty; urgency=medium +pygeoapi (0.4.0) trusty; urgency=medium * add column ordering * add properties.links support -- Tom Kralidis Mon, 17 Dec 2018 21:17:17 +0000 -python-pygeoapi (0.2.2) trusty; urgency=medium +pygeoapi (0.2.2) trusty; urgency=medium * fix ES issues for large returns -- Tom Kralidis Fri, 24 Aug 2018 14:33:03 +0000 -python-pygeoapi (0.2.1) trusty; urgency=medium +pygeoapi (0.2.1) trusty; urgency=medium * fix HTTP response headers for CSV -- Tom Kralidis Thu, 23 Aug 2018 00:23:07 +0000 -python-pygeoapi (0.2.0) trusty; urgency=medium +pygeoapi (0.2.0) trusty; urgency=medium * add support for CSV output -- Tom Kralidis Tue, 14 Aug 2018 18:30:45 +0000 -python-pygeoapi (0.1.3) trusty; urgency=medium +pygeoapi (0.1.3) trusty; urgency=medium * move elasticsearch requirements into dev -- Tom Kralidis Wed, 09 May 2018 17:38:11 +0000 -python-pygeoapi (0.1.2) trusty; urgency=medium +pygeoapi (0.1.2) trusty; urgency=medium * remove shapely support -- Tom Kralidis Fri, 04 May 2018 12:17:32 +0000 -python-pygeoapi (0.1.1) trusty; urgency=medium +pygeoapi (0.1.1) trusty; urgency=medium * add link hreflang support * refactor CORS support -- Tom Kralidis Thu, 03 May 2018 20:48:08 +0000 -python-pygeoapi (0.1.0) trusty; urgency=medium +pygeoapi (0.1.0) trusty; urgency=medium * initial Debian packaging diff --git a/debian/control b/debian/control index d71a0c5..8e1f6ff 100644 --- a/debian/control +++ b/debian/control @@ -1,15 +1,42 @@ -Source: python-pygeoapi +Source: pygeoapi Section: python Priority: optional Maintainer: Tom Kralidis -Build-Depends: debhelper (>= 9), python, python-setuptools -Standards-Version: 3.9.5 -X-Python-Version: >= 2.7 +Uploaders: Angelos Tzotsos +Build-Depends: debhelper (>= 9), + dh-python, + python-all, + python-setuptools, + python3-all, + python3-setuptools +Standards-Version: 4.3.0 Vcs-Git: https://github.com/geopython/pygeoapi.git +Homepage: https://pygeoapi.io/ Package: python-pygeoapi Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources, python-click, python-flask, python-unicodecsv, python-yaml +Depends: ${python:Depends}, + python-pkg-resources, + python-click, + python-flask, + python-unicodecsv, + python-yaml, + ${misc:Depends} Suggests: python-elasticsearch, python-geojson -Homepage: https://pygeoapi.io -Description: pygeoapi provides an API to geospatial data +Description: pygeoapi provides an API to geospatial data. + . + This package the pygeoapi module for Python 2. + +Package: python3-pygeoapi +Architecture: all +Depends: ${python3:Depends}, + python3-pkg-resources, + python3-click, + python3-flask, + python3-unicodecsv, + python3-yaml, + ${misc:Depends} +Suggests: python3-elasticsearch, python3-geojson +Description: pygeoapi provides an API to geospatial data. + . + This package the pygeoapi module for Python 3. diff --git a/debian/copyright b/debian/copyright index b610efb..1a25d0d 100644 --- a/debian/copyright +++ b/debian/copyright @@ -2,8 +2,8 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/geopython/pygeoapi Files: * -Copyright: Copyright 2019 Tom Kralidis -License: MIT +Copyright: Copyright 2018 Tom Kralidis +License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without diff --git a/debian/rules b/debian/rules index 3063259..0196377 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,13 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export PYBUILD_NAME=pygeoapi + %: - dh $@ --with python2 --build=pybuild + dh $@ --with python2,python3 --buildsystem pybuild + +override_dh_auto_test: + @echo "nocheck set, not running tests"