[python-meshio] 01/02: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 16 20:52:28 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-meshio.

commit 5b96022cd2cde1cbb827f2220d8222ec64eb046a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Aug 16 11:50:48 2017 +0100

    Initial debianization
---
 debian/changelog                |  5 +++++
 debian/clean                    |  1 +
 debian/compat                   |  1 +
 debian/control                  | 45 +++++++++++++++++++++++++++++++++++++++++
 debian/copyright                | 33 ++++++++++++++++++++++++++++++
 debian/gbp.conf                 |  7 +++++++
 debian/meshio-convert.md        | 34 +++++++++++++++++++++++++++++++
 debian/meshio-tools.manpages    |  1 +
 debian/patches/No-pipdate.patch | 20 ++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    | 20 ++++++++++++++++++
 debian/source/format            |  1 +
 debian/tests/control            | 11 ++++++++++
 debian/watch                    |  3 +++
 14 files changed, 183 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4489c26
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-meshio (1.8.14-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #872318)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 15 Aug 2017 17:20:32 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..6db0ab9
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+meshio-convert.1
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..12ea56d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: python-meshio
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               pandoc,
+               python3-all,
+               python3-h5py,
+               python3-lxml,
+               python3-numpy,
+               python3-pytest,
+               python3-setuptools,
+#               python3-vtk7
+Standards-Version: 4.0.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-meshio.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-meshio.git
+Homepage: https://github.com/nschloe/meshio
+X-Python3-Version: >= 3.2
+
+Package: python3-meshio
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Recommends: python3-h5py,
+            python3-lxml,
+#            python3-vtk7
+Description: library for reading and writing mesh data (Python 3)
+ Meshio can read from and write to various data formats representing
+ unstructured meshes, such as DOLFIN, Gmsh, H5M or VTK.
+ .
+ This package provides the modules for Python 3.
+
+Package: meshio-tools
+Architecture: all
+Section: utils
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-meshio
+Description: command-line tools for meshio
+ Meshio can read from and write to various data formats representing
+ unstructured meshes, such as DOLFIN, Gmsh, H5M or VTK.
+ .
+ This package provides the command-line tools.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..05900f3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: meshio
+Upstream-Contact: Nico Schlömer <nico.schloemer at gmail.com>
+Source: https://github.com/nschloe/meshio
+
+Files: *
+Copyright: 2015 Nico Schlömer
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+License: Expat
+ The MIT License
+ .
+ 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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/meshio-convert.md b/debian/meshio-convert.md
new file mode 100644
index 0000000..c2e6026
--- /dev/null
+++ b/debian/meshio-convert.md
@@ -0,0 +1,34 @@
+% MESHIO-CONVERT(1) | meshio-convert manual
+
+# NAME
+
+**meshio-convert** - convert between mesh formats
+
+# SYNOPSIS
+
+meshio-convert [*OPTIONS*] <*infile*> <*outfile*> 
+
+# OPTIONS
+
+-i *FORMAT*, \--input-format=*FORMAT*
+:   Input file format. Autodetected from *infile* by default.
+
+-o *FORMAT*, \--output-format=*FORMAT*
+:   Output file format. Autodetected from *outfile* by default.
+
+-p, --prune
+:   Remove lower order cells and orphaned nodes.
+
+-v, --version
+:   Display the meshio version.
+
+-h, --help
+:   Display this help message.
+
+# AUTHORS
+
+**meshio-convert** is developed by Nico Schlömer and is part of the `meshio` Python package. This manual page was written by Ghislain Antony Vaillant for the Debian project.
+
+# LICENSE
+
+Copying and distribution of this manual page, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
diff --git a/debian/meshio-tools.manpages b/debian/meshio-tools.manpages
new file mode 100644
index 0000000..6db0ab9
--- /dev/null
+++ b/debian/meshio-tools.manpages
@@ -0,0 +1 @@
+meshio-convert.1
diff --git a/debian/patches/No-pipdate.patch b/debian/patches/No-pipdate.patch
new file mode 100644
index 0000000..912481c
--- /dev/null
+++ b/debian/patches/No-pipdate.patch
@@ -0,0 +1,20 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 15 Aug 2017 17:27:22 +0100
+Subject: No pipdate
+
+---
+ setup.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 85d99d0..6cf2d3f 100644
+--- a/setup.py
++++ b/setup.py
+@@ -36,7 +36,6 @@ setup(
+     platforms='any',
+     install_requires=[
+         'numpy',
+-        'pipdate',
+         ],
+     extras_require={
+         'dolfin': ['lxml'],  # Dolfin's legacy format
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..60405cb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+No-pipdate.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..16ded7e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#! /usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = meshio
+export PYBUILD_DESTDIR_python3 = debian/python3-$(PYBUILD_NAME)
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	pandoc -s -t man debian/meshio-convert.md \
+		-o meshio-convert.1
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_movefiles --package=$(PYBUILD_NAME)-tools \
+		--sourcedir=$(PYBUILD_DESTDIR_python3) 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..061be66
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Test-Command: set -e
+ ; cp -r test "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v test
+ ; done
+Depends: python3-all,
+         python3-meshio,
+         python3-pytest
+Restrictions: needs-recommends
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ca0294a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?@ANY_VERSION@\.tar\.gz/meshio-$1\.tar\.gz/ \
+https://github.com/nschloe/meshio/tags .*/v?@ANY_VERSION@\.tar\.gz

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



More information about the debian-science-commits mailing list