From ccaca0b40bfd037f63cda189d7edc0e51c62fad7 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Wed, 18 Apr 2018 10:43:27 +0000 Subject: [PATCH] add debian packaging --- .travis.yml | 3 ++- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 ++++++++++++++++ debian/copyright | 26 ++++++++++++++++++++++++++ debian/rules | 13 +++++++++++++ debian/source/format | 1 + 7 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.travis.yml b/.travis.yml index 85d6e92..a16df73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ python: before_install: - sudo apt-get -qq update - - sudo apt-get install -y libsqlite3-mod-spatialite pandoc + - sudo apt-get install -y libsqlite3-mod-spatialite pandoc devscripts install: - pip install -r requirements.txt @@ -27,3 +27,4 @@ script: after_success: - python setup.py sdist bdist_wheel --universal + - debuild -b -uc -us diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4811098 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-pygeoapi (0.1.0) trusty; urgency=medium + + * initial Debian packaging + + -- Tom Kralidis Sat, 31 Mar 2018 12:02:03 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b9dcc0e --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: python-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 +Vcs-Git: https://github.com/geopython/pygeoapi.git + +Package: python-pygeoapi +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources, python-click, python-flask, python-yaml +Suggests: python-elasticsearch, python-geojson, python-shapely +Homepage: https://github.com/geopython/pygeoapi.git +Description: pygeoapi provides an API to geospatial + data diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1a25d0d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/geopython/pygeoapi + +Files: * +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 + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom + the Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3063259 --- /dev/null +++ b/debian/rules @@ -0,0 +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 + +%: + dh $@ --with python2 --build=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)