[Python-modules-commits] [colorspacious] 03/08: add initial Debian packaging

Sandro Tosi morph at moszumanska.debian.org
Sun Sep 18 19:29:55 UTC 2016


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

morph pushed a commit to branch master
in repository colorspacious.

commit 9c846eaf634e6911974f3ad1aed6b9adf772b178
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Sep 18 19:48:38 2016 +0100

    add initial Debian packaging
---
 debian/.git-dpm                      |   3 +
 debian/changelog                     |   6 ++
 debian/compat                        |   1 +
 debian/control                       | 186 +++++++++++++++++++++++++++++++++++
 debian/copyright                     |  14 +++
 debian/python-colorspacious-doc.docs |   2 +
 debian/rules                         |  13 +++
 debian/source/options                |   1 +
 debian/watch                         |   4 +
 9 files changed, 230 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index e1b9977..a100884 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@ a640388be2969b4dcf64ea82faf38514daa09ac6
 colorspacious_1.0.0.orig.tar.xz
 fec0c98d9c37dcd8900a2a5b2bd96f289248b3eb
 676120
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ddd7f47
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+colorspacious (1.0.0-1) unstable; urgency=low
+
+  * Initial release (closes: #NNNNNN)
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 18 Sep 2016 18:48:37 +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..24ad84a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,186 @@
+Source: colorspacious
+Section: python
+Priority: optional
+Maintainer: Sandro Tosi <morph at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+               python-all,
+               python-setuptools,
+               python3-all,
+               python3-numpy,
+               python3-setuptools,
+               python3-sphinx,
+Standards-Version: 3.9.8
+Homepage: https://github.com/njsmith/colorspacious
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/colorspacious.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/colorspacious.git
+
+Package: python-colorspacious
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: powerful, accurate, and easy-to-use Python library for doing colorspace conversi - Python 2.X
+  .. image:: https://travis-ci.org/njsmith/colorspacious.png?branch=master
+    :target: https://travis-ci.org/njsmith/colorspacious
+  .. image:: https://coveralls.io/repos/njsmith/colorspacious/badge.png?branch=master
+    :target: https://coveralls.io/r/njsmith/colorspacious?branch=master
+ .
+ Colorspacious is a powerful, accurate, and easy-to-use library for
+ performing colorspace conversions.
+ .
+ In addition to the most common standard colorspaces (sRGB, XYZ, xyY,
+ CIELab, CIELCh), we also include: color vision deficiency ("color
+ blindness") simulations using the approach of Machado et al (2009); a
+ complete implementation of `CIECAM02
+ <https://en.wikipedia.org/wiki/CIECAM02>`_; and the perceptually
+ uniform CAM02-UCS / CAM02-LCD / CAM02-SCD spaces proposed by Luo et al
+ (2006).
+ .
+ To get started, simply write::
+ .
+   from colorspacious import cspace_convert
+ .
+   Jp, ap, bp = cspace_convert([64, 128, 255], "sRGB255", "CAM02-UCS")
+ .
+ This converts an sRGB value (represented as integers between 0-255) to
+ CAM02-UCS `J'a'b'` coordinates (assuming standard sRGB viewing
+ conditions by default). This requires passing through 4 intermediate
+ colorspaces; ``cspace_convert`` automatically finds the optimal route
+ and applies all conversions in sequence:
+ .
+ This function also of course accepts arbitrary NumPy arrays, so
+ converting a whole image is just as easy as converting a single value.
+ .
+ Documentation:
+   http://colorspacious.readthedocs.org/
+ .
+ Installation:
+   ``pip install colorspacious``
+ .
+ Downloads:
+   https://pypi.python.org/pypi/colorspacious/
+ .
+ Code and bug tracker:
+   https://github.com/njsmith/colorspacious
+ .
+ Contact:
+   Nathaniel J. Smith <njs at pobox.com>
+ .
+ Dependencies:
+   * Python 2.6+, or 3.3+
+   * NumPy
+ .
+ Developer dependencies (only needed for hacking on source):
+   * nose: needed to run tests
+ .
+ License:
+   MIT, see LICENSE.txt for details.
+ .
+ References:
+ .
+  * Luo, M. R., Cui, G., & Li, C. (2006). Uniform colour spaces based on
+   CIECAM02 colour appearance model. Color Research & Application, 31(4),
+   320–330. doi:10.1002/col.20227
+ .
+  * Machado, G. M., Oliveira, M. M., & Fernandes, L. A. (2009). A
+   physiologically-based model for simulation of color vision
+   deficiency. Visualization and Computer Graphics, IEEE Transactions on,
+   15(6), 1291–1298. http://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html
+ .
+ Other Python packages with similar functionality that you might want
+ to check out as well or instead:
+ .
+  * ``colour``: http://colour-science.org/
+  * ``colormath``: http://python-colormath.readthedocs.org/
+  * ``ciecam02``: https://pypi.python.org/pypi/ciecam02/
+  * ``ColorPy``: http://markkness.net/colorpy/ColorPy.html
+
+Package: python3-colorspacious
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: powerful, accurate, and easy-to-use Python library for doing colorspace conversi
+  .. image:: https://travis-ci.org/njsmith/colorspacious.png?branch=master
+    :target: https://travis-ci.org/njsmith/colorspacious
+  .. image:: https://coveralls.io/repos/njsmith/colorspacious/badge.png?branch=master
+    :target: https://coveralls.io/r/njsmith/colorspacious?branch=master
+ .
+ Colorspacious is a powerful, accurate, and easy-to-use library for
+ performing colorspace conversions.
+ .
+ In addition to the most common standard colorspaces (sRGB, XYZ, xyY,
+ CIELab, CIELCh), we also include: color vision deficiency ("color
+ blindness") simulations using the approach of Machado et al (2009); a
+ complete implementation of `CIECAM02
+ <https://en.wikipedia.org/wiki/CIECAM02>`_; and the perceptually
+ uniform CAM02-UCS / CAM02-LCD / CAM02-SCD spaces proposed by Luo et al
+ (2006).
+ .
+ To get started, simply write::
+ .
+   from colorspacious import cspace_convert
+ .
+   Jp, ap, bp = cspace_convert([64, 128, 255], "sRGB255", "CAM02-UCS")
+ .
+ This converts an sRGB value (represented as integers between 0-255) to
+ CAM02-UCS `J'a'b'` coordinates (assuming standard sRGB viewing
+ conditions by default). This requires passing through 4 intermediate
+ colorspaces; ``cspace_convert`` automatically finds the optimal route
+ and applies all conversions in sequence:
+ .
+ This function also of course accepts arbitrary NumPy arrays, so
+ converting a whole image is just as easy as converting a single value.
+ .
+ Documentation:
+   http://colorspacious.readthedocs.org/
+ .
+ Installation:
+   ``pip install colorspacious``
+ .
+ Downloads:
+   https://pypi.python.org/pypi/colorspacious/
+ .
+ Code and bug tracker:
+   https://github.com/njsmith/colorspacious
+ .
+ Contact:
+   Nathaniel J. Smith <njs at pobox.com>
+ .
+ Dependencies:
+   * Python 2.6+, or 3.3+
+   * NumPy
+ .
+ Developer dependencies (only needed for hacking on source):
+   * nose: needed to run tests
+ .
+ License:
+   MIT, see LICENSE.txt for details.
+ .
+ References:
+ .
+  * Luo, M. R., Cui, G., & Li, C. (2006). Uniform colour spaces based on
+   CIECAM02 colour appearance model. Color Research & Application, 31(4),
+   320–330. doi:10.1002/col.20227
+ .
+  * Machado, G. M., Oliveira, M. M., & Fernandes, L. A. (2009). A
+   physiologically-based model for simulation of color vision
+   deficiency. Visualization and Computer Graphics, IEEE Transactions on,
+   15(6), 1291–1298. http://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html
+ .
+ Other Python packages with similar functionality that you might want
+ to check out as well or instead:
+ .
+  * ``colour``: http://colour-science.org/
+  * ``colormath``: http://python-colormath.readthedocs.org/
+  * ``ciecam02``: https://pypi.python.org/pypi/ciecam02/
+  * ``ColorPy``: http://markkness.net/colorpy/ColorPy.html
+
+Package: python-colorspacious-doc
+Section: doc
+Architecture: all
+Priority: extra
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: documentation for the colorspacious Python library
+ This package provides documentation for colorspacious 
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2965f45
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,14 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: colorspacious
+Upstream-Contact: Nathaniel J. Smith <njs at pobox.com>
+Source: https://github.com/njsmith/colorspacious
+
+Files: *
+Copyright: Nathaniel J. Smith <njs at pobox.com>
+License: MIT
+
+Files: debian/*
+Copyright: 2016 © Sandro Tosi <morph at debian.org>
+License: MIT
+
+License: MIT
diff --git a/debian/python-colorspacious-doc.docs b/debian/python-colorspacious-doc.docs
new file mode 100644
index 0000000..1618a62
--- /dev/null
+++ b/debian/python-colorspacious-doc.docs
@@ -0,0 +1,2 @@
+.pybuild/docs/*
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..86e6dd8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=colorspacious
+%:
+	dh $@ --with python3,python2,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+	cd doc && \
+	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
+	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
+	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
+endif
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ded557e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/colorspacious/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/colorspacious/colorspacious-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the Python-modules-commits mailing list