[python-hydroffice.bag] 01/02: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jun 7 09:55:21 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository python-hydroffice.bag.

commit bcc2cdea4ad2d797526932e1557e15dcc2f1c3bb
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jun 1 17:59:09 2016 +0100

    Initial debianization.
---
 debian/changelog                                   |   5 +
 debian/clean                                       |   1 +
 debian/compat                                      |   1 +
 debian/control                                     | 110 +++++++++++++++++++++
 debian/copyright                                   |  20 ++++
 debian/gbp.conf                                    |   9 ++
 .../patches/Use-local-copy-of-project-logo.patch   |  41 ++++++++
 debian/patches/series                              |   1 +
 debian/python-hydroffice.bag-common.install        |   4 +
 debian/python-hydroffice.bag-doc.doc-base          |   9 ++
 debian/python-hydroffice.bag-doc.docs              |   1 +
 debian/python-hydroffice.bag-doc.examples          |   1 +
 debian/python-hydroffice.bag-doc.install           |   1 +
 debian/python-hydroffice.bag-doc.lintian-overrides |   1 +
 debian/python-hydroffice.bag.links                 |   4 +
 debian/python-hydroffice.bag.pyremove              |   4 +
 debian/python3-hydroffice.bag.links                |   4 +
 debian/python3-hydroffice.bag.pyremove             |   4 +
 debian/rules                                       |  21 ++++
 debian/source/format                               |   1 +
 debian/tests/control                               |   7 ++
 debian/tests/python2                               |  12 +++
 debian/tests/python3                               |  12 +++
 debian/upstream/metadata                           |   6 ++
 debian/watch                                       |   3 +
 25 files changed, 283 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..60a31af
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-hydroffice.bag (0.2.15-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #823233)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Wed, 01 Jun 2016 17:58:52 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..45149aa
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+*.egg-info/*
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..814cb7a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,110 @@
+Source: python-hydroffice.bag
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: science
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-gdal,
+               python-h5py,
+               python-lxml,
+               python-setuptools,
+               python-sphinx,
+               python-wheel,
+               python3-all,
+               python3-gdal,
+               python3-h5py,
+               python3-lxml,
+               python3-setuptools,
+               python3-wheel
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-hydroffice.bag.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-hydroffice.bag.git
+Homepage: http://www.hydroffice.org/
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
+
+Package: python-hydroffice.bag
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python:Depends},
+         python-hydroffice.bag-common (= ${binary:Version})
+Suggests: python-hydroffice.bag-doc
+Description: manage Bathymetric Attributed Grid (BAG) data files in Python 2
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides hydroffice.bag for the Python 2 interpreter.
+
+Package: python3-hydroffice.bag
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python-hydroffice.bag-common (= ${binary:Version})
+Suggests: python-hydroffice.bag-doc
+Description: manage Bathymetric Attributed Grid (BAG) data files in Python 3
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides hydroffice.bag for the Python 3 interpreter.
+
+Package: python-hydroffice.bag-common
+Architecture: all
+Section: python
+Depends: ${misc:Depends}
+Description: common files for hydroffice.bag
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the common files for hydroffice.bag.
+
+Package: python-hydroffice.bag-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: documentation for hydroffice.bag
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the documentation for hydroffice.bag.
+
+Package: hydroffice.bag-tools
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-hydroffice.bag (= ${binary:Version})
+Description: command-line tools for hydroffice.bag
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the command-line tools for hydroffice.bag.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3bbefc9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Brian R. Calder <brc at ccom.unh.edu>
+                  Giuseppe Masetti <gmasetti at ccom.unh.edu>
+Source: https://github.com/hydroffice/hyo_bag
+
+Files: *
+Copyright: 2015 G.Masetti and B.R.Calder
+License: LGPL-3
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: LGPL-3
+
+License: LGPL-3
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 3 of the License.
+ .
+ On Debian systems, the complete text of version 3 of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ea5c858
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+upstream-branch = upstream/latest
+debian-branch = debian/master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[pq]
+patch-numbers = False
diff --git a/debian/patches/Use-local-copy-of-project-logo.patch b/debian/patches/Use-local-copy-of-project-logo.patch
new file mode 100644
index 0000000..9ee722d
--- /dev/null
+++ b/debian/patches/Use-local-copy-of-project-logo.patch
@@ -0,0 +1,41 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Thu, 5 May 2016 10:57:42 +0100
+Subject: Use local copy of project logo.
+
+---
+ docs/_templates/sidebarintro.html | 2 +-
+ docs/_templates/sidebarlogo.html  | 2 +-
+ docs/in_brief.rst                 | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html
+index 94728b2..151b000 100644
+--- a/docs/_templates/sidebarintro.html
++++ b/docs/_templates/sidebarintro.html
+@@ -1,3 +1,3 @@
+ <p class="logo"><a href="{{ pathto(master_doc) }}">
+-  <img class="logo" src="https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png" alt="Logo"/>
++  <img class="logo" src="favicon.png" alt="Logo"/>
+ </a></p>
+diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html
+index 94728b2..151b000 100644
+--- a/docs/_templates/sidebarlogo.html
++++ b/docs/_templates/sidebarlogo.html
+@@ -1,3 +1,3 @@
+ <p class="logo"><a href="{{ pathto(master_doc) }}">
+-  <img class="logo" src="https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png" alt="Logo"/>
++  <img class="logo" src="favicon.png" alt="Logo"/>
+ </a></p>
+diff --git a/docs/in_brief.rst b/docs/in_brief.rst
+index 9d0f539..3c3ebe2 100644
+--- a/docs/in_brief.rst
++++ b/docs/in_brief.rst
+@@ -1,7 +1,7 @@
+ In brief
+ ========
+ 
+-.. image:: https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png
++.. image:: favicon.png
+     :alt: logo
+ 
+ HydrOffice is a research development environment for ocean mapping. It provides a collection of hydro-packages, each of them dealing with a specific issue of the field.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..63bf4cd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Use-local-copy-of-project-logo.patch
diff --git a/debian/python-hydroffice.bag-common.install b/debian/python-hydroffice.bag-common.install
new file mode 100644
index 0000000..eaf57b5
--- /dev/null
+++ b/debian/python-hydroffice.bag-common.install
@@ -0,0 +1,4 @@
+hydroffice/bag/iso19139 usr/share/python-hydroffice.bag
+hydroffice/bag/iso19757-3 usr/share/python-hydroffice.bag
+hydroffice/bag/media usr/share/python-hydroffice.bag
+hydroffice/bag/samples usr/share/python-hydroffice.bag
diff --git a/debian/python-hydroffice.bag-doc.doc-base b/debian/python-hydroffice.bag-doc.doc-base
new file mode 100644
index 0000000..7bd962f
--- /dev/null
+++ b/debian/python-hydroffice.bag-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-hydroffice.bag-doc
+Title: hydroffice.bag documentation
+Author: G.Masetti and B.R.Calder
+Abstract: This is the reference documentation of the hydroffice.bag package.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-hydroffice.bag-doc/html/index.html
+Files: /usr/share/doc/python-hydroffice.bag-doc/html/*.html
diff --git a/debian/python-hydroffice.bag-doc.docs b/debian/python-hydroffice.bag-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-hydroffice.bag-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-hydroffice.bag-doc.examples b/debian/python-hydroffice.bag-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/python-hydroffice.bag-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/python-hydroffice.bag-doc.install b/debian/python-hydroffice.bag-doc.install
new file mode 100644
index 0000000..2a3567c
--- /dev/null
+++ b/debian/python-hydroffice.bag-doc.install
@@ -0,0 +1 @@
+hydroffice/bag/media/favicon.png usr/share/doc/python-hydroffice.bag-doc/html
diff --git a/debian/python-hydroffice.bag-doc.lintian-overrides b/debian/python-hydroffice.bag-doc.lintian-overrides
new file mode 100644
index 0000000..50dd275
--- /dev/null
+++ b/debian/python-hydroffice.bag-doc.lintian-overrides
@@ -0,0 +1 @@
+extra-license-file
diff --git a/debian/python-hydroffice.bag.links b/debian/python-hydroffice.bag.links
new file mode 100644
index 0000000..c1a7517
--- /dev/null
+++ b/debian/python-hydroffice.bag.links
@@ -0,0 +1,4 @@
+usr/share/python-hydroffice.bag/iso19139 usr/lib/python2.7/dist-packages/hydroffice/bag/iso19139
+usr/share/python-hydroffice.bag/iso19757-3 usr/lib/python2.7/dist-packages/hydroffice/bag/iso19757-3
+usr/share/python-hydroffice.bag/media usr/lib/python2.7/dist-packages/hydroffice/bag/media
+usr/share/python-hydroffice.bag/samples usr/lib/python2.7/dist-packages/hydroffice/bag/samples
diff --git a/debian/python-hydroffice.bag.pyremove b/debian/python-hydroffice.bag.pyremove
new file mode 100644
index 0000000..e25400e
--- /dev/null
+++ b/debian/python-hydroffice.bag.pyremove
@@ -0,0 +1,4 @@
+hydroffice/bag/iso19139
+hydroffice/bag/iso19757-3
+hydroffice/bag/media
+hydroffice/bag/samples
diff --git a/debian/python3-hydroffice.bag.links b/debian/python3-hydroffice.bag.links
new file mode 100644
index 0000000..0d49465
--- /dev/null
+++ b/debian/python3-hydroffice.bag.links
@@ -0,0 +1,4 @@
+usr/share/python-hydroffice.bag/iso19139 usr/lib/python3/dist-packages/hydroffice/bag/iso19139
+usr/share/python-hydroffice.bag/iso19757-3 usr/lib/python3/dist-packages/hydroffice/bag/iso19757-3
+usr/share/python-hydroffice.bag/media usr/lib/python3/dist-packages/hydroffice/bag/media
+usr/share/python-hydroffice.bag/samples usr/lib/python3/dist-packages/hydroffice/bag/samples
diff --git a/debian/python3-hydroffice.bag.pyremove b/debian/python3-hydroffice.bag.pyremove
new file mode 100644
index 0000000..e25400e
--- /dev/null
+++ b/debian/python3-hydroffice.bag.pyremove
@@ -0,0 +1,4 @@
+hydroffice/bag/iso19139
+hydroffice/bag/iso19757-3
+hydroffice/bag/media
+hydroffice/bag/samples
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ac12058
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=hydroffice.bag
+export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
+export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' \
+		sphinx-build -N -b html docs build/html
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_movefiles --sourcedir=$(PYBUILD_DESTDIR_python3) \
+		--package=$(PYBUILD_NAME)-tools usr/bin/*
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..31fc982
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: python2
+Depends: python-all,
+         python-hydroffice.bag
+
+Tests: python3
+Depends: python3-all,
+         python3-hydroffice.bag
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..d671646
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(pyversions -r 2>/dev/null)"
+
+cp -a ./tests "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py -m unittest discover tests 2>&1
+done
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..ac762d9
--- /dev/null
+++ b/debian/tests/python3
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(py3versions -r 2>/dev/null)"
+
+cp -a ./tests "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py -m unittest discover tests 2>&1
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..120fb68
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/hydroffice/hyo_bag/issues
+Bug-Submit: https://github.com/hydroffice/hyo_bag/issues/new
+Changelog: https://github.com/hydroffice/hyo_bag/blob/master/HISTORY.rst
+Name: hydroffice.bag
+Repository: git at github.com:hydroffice/hyo_bag.git
+Repository-Broswe: https://github.com/hydroffice/hyo_bag
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3f22dba
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/hydroffice.bag/hydroffice.bag-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hydroffice.bag.git



More information about the debian-science-commits mailing list