[python-imageio] 05/06: Initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Dec 28 16:20:19 UTC 2016


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

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

commit dded0edd002e225fa5e0dee4a8d25acab6dcdf18
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Dec 28 14:45:41 2016 +0000

    Initial debianization
---
 debian/changelog                   |  5 +++
 debian/compat                      |  1 +
 debian/control                     | 69 ++++++++++++++++++++++++++++++++++++++
 debian/copyright                   | 35 +++++++++++++++++++
 debian/python-imageio-doc.doc-base |  9 +++++
 debian/python-imageio-doc.docs     |  1 +
 debian/rules                       | 21 ++++++++++++
 debian/tests/control               |  5 +++
 debian/watch                       |  5 +++
 9 files changed, 151 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3ddd020
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-imageio (2.1.1+ds1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #769767)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Thu, 22 Dec 2016 14:29:28 +0000
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..88e809e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,69 @@
+Source: python-imageio
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-python,
+               dpkg-dev (>= 1.17.14),
+               python-all,
+               python-numpy,
+               python-pil,
+               python-pytest <!nocheck>,
+               python-setuptools,
+               python3-all,
+               python3-numpy,
+               python3-numpydoc <!nodoc>,
+               python3-pil,
+               python3-pytest <!nocheck>,
+               python3-setuptools,
+               python3-sphinx <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-imageio.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-imageio.git
+Homepage: http://imageio.github.io/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-imageio
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Suggests: python-astropy,
+          python-gdal,
+          python-imageio-doc
+Description: library for reading and writing image data (Python 2)
+ Imageio is a Python library that provides an easy interface to read and write
+ a wide range of image data, including animated images, video, volumetric data,
+ and scientific formats.
+ .
+ This package provides the library for Python 2.
+
+Package: python3-imageio
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-imageio-doc,
+          python3-astropy,
+          python3-gdal
+Description: library for reading and writing image data (Python 3)
+ Imageio is a Python library that provides an easy interface to read and write
+ a wide range of image data, including animated images, video, volumetric data,
+ and scientific formats.
+ .
+ This package provides the library for Python 3.
+
+Package: python-imageio-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for imageio
+ Imageio is a Python library that provides an easy interface to read and write
+ a wide range of image data, including animated images, video, volumetric data,
+ and scientific formats.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a965942
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: imageio
+Upstream-Contact: Almar Klein <almar.klein at gmail.com>
+Source: https://pypi.python.org/pypi/imageio
+Files-Excluded: docs/ext/numpydoc/*
+
+Files: *
+Copyright: 2015 imageio contributors
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: BSD-2-Clause
+
+License: BSD-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/python-imageio-doc.doc-base b/debian/python-imageio-doc.doc-base
new file mode 100644
index 0000000..1c8aba3
--- /dev/null
+++ b/debian/python-imageio-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-imageio-doc
+Title: imageio Documentation
+Author: Almar Klein
+Abstract: This is the reference documentation for imageio.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-imageio-doc/html/index.html
+Files: /usr/share/doc/python-imageio-doc/html/*.html
diff --git a/debian/python-imageio-doc.docs b/debian/python-imageio-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-imageio-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..468ff1b
--- /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 IMAGEIO_NO_INTERNET = 1
+export PYBUILD_NAME = imageio
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. sphinx-build -N -b html docs build/html
+endif
+
+override_dh_installchangelogs:
+	dh_installchangelogs docs/releasenotes.rst
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..fc49c1d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Test-Command: IMAGEIO_NO_INTERNET=1 pytest tests
+Depends: python-imageio, python-pytest
+
+Test-Command: IMAGEIO_NO_INTERNET=1 pytest-3 tests
+Depends: python3-imageio, python3-pytest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..df4f80d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+opts=repacksuffix=+ds1,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//,\
+uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/imageio/imageio-@ANY_VERSION@@ARCHIVE_EXT@

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



More information about the debian-science-commits mailing list