[python-osmapi] 02/03: Initial Debian packaging.

Bas Couwenberg sebastic at xs4all.nl
Sat Jan 3 18:20:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository python-osmapi.

commit 9817e331f56b0e8b9f7ebe0a9743878155c03a44
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jan 3 17:39:51 2015 +0100

    Initial Debian packaging.
---
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 44 ++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright         | 29 +++++++++++++++++++++++++++++
 debian/docs              |  1 +
 debian/gbp.conf          | 16 ++++++++++++++++
 debian/rules             | 19 +++++++++++++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata |  6 ++++++
 debian/watch             |  6 ++++++
 10 files changed, 128 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..681d5c7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-osmapi (0.5.0-1) unstable; urgency=medium
+
+  * Initial upload (closes: #774508)
+
+ -- Bas Couwenberg <sebastic at xs4all.nl>  Sat, 03 Jan 2015 17:12:54 +0100
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..6b736b4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: python-osmapi
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at xs4all.nl>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python3-all,
+               python-setuptools,
+               python3-setuptools,
+               python-flake8,
+               python3-flake8,
+               python-nose,
+               python3-nose,
+               python-mock,
+               python3-mock,
+               python-tox,
+               python-xmltodict
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/python-osmapi.git
+Vcs-Git: git://anonscm.debian.org/pkg-grass/python-osmapi.git
+Homepage: http://wiki.openstreetmap.org/wiki/Osmapi
+
+Package: python-osmapi
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: Python wrapper for the OSM API
+ The OsmApi module is a wrapper for the OpenStreetMap API.
+ As such it provides an easy access to the functionality of the API.
+ .
+ This is the Python 2 version of the library.
+
+Package: python3-osmapi
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Description: Python 3 wrapper for the OSM API
+ The OsmApi module is a wrapper for the OpenStreetMap API.
+ As such it provides an easy access to the functionality of the API.
+ .
+ This is the Python 3 version of the library.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e0895f5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Stefan Oderbolz <oderbolz at gmail.com>
+Upstream-Name: OsmApi
+Source: https://github.com/metaodi/osmapi/releases
+
+Files: *
+Copyright: 2014, Stefan Oderbolz <oderbolz at gmail.com>
+      2009-2010, Etienne Chové <chove at crans.org>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2014, Bas Couwenberg <sebastic at xs4all.nl>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9b13003
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=osmapi
+
+%:
+	dh $@ --with python2,python3 --buildsystem pybuild
+
+override_dh_auto_test:
+	# Check PEP-8 code style and McCabe complexity
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="flake8 --show-pep8 --show-source ." dh_auto_test
+
+	# run tests
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="nosetests --verbose" dh_auto_test
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.md
+
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)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..f07305b
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/metaodi/osmapi/issues
+Bug-Submit: https://github.com/metaodi/osmapi/issues/new
+Name: OsmApi
+Repository: https://github.com/metaodi/osmapi.git
+Repository-Browse: https://github.com/metaodi/osmapi
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0594cb0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts="dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/_/./g;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,\
+filenamemangle=s/(?:.*?)?v?(\d[\d\.]*)\.tar\.gz/osmapi-$1.tar.gz/" \
+https://github.com/metaodi/osmapi/releases \
+(?:.*/)*(?:rel|v|osmapi|)[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-osmapi.git



More information about the Pkg-grass-devel mailing list