debian/0000755000000000000000000000000012202122307007155 5ustar debian/control0000644000000000000000000000314112161306064010567 0ustar Source: grapefruit Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Simon Chopin Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools, python-pytest, python-sphinx (>= 1.0.7+dfsg), Standards-Version: 3.9.4 Homepage: http://code.google.com/p/grapefruit/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/grapefruit/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/grapefruit/trunk/ X-Python-Version: >= 2.5 Package: python-grapefruit Architecture: all Depends: ${misc:Depends}, ${python:Depends} Suggests: python-grapefruit-doc Description: Python module to manipulate color information easily GrapeFruit is a pure Python module that lets you easily manipulate and convert color information. Its primary goal is to be natural and flexible. . The following color systems are supported by GrapeFruit: * RGB (sRGB) * HSL * HSV * YIQ * YUV * CIE-XYZ * CIE-LAB (with the illuminant you want) * CMY * CMYK * HTML/CSS color definition (#RRGGBB, #RGB or the X11 color name) * RYB (artistic color wheel) Package: python-grapefruit-doc Section: doc Architecture: all Depends: ${sphinxdoc:Depends}, ${misc:Depends} Recommends: python-grapefruit Description: Python module to manipulate color information easily - documentation GrapeFruit is a pure Python module that let you easily manipulate and convert color information. Its primary goal is to be natural and flexible. . This package provides the documentation for GrapeFruit. debian/copyright0000644000000000000000000000377412137753250011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: grapefruit Source: http://code.google.com/p/grapefruit/ Files: * Copyright: 2008-2012 Xavier Basty 2012 Christian Oudard License: Apache Files: debian/* Copyright: 2013 Simon Chopin License: Apache License: Apache Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the 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. . On Debian systems, a copy of the license should be at /usr/share/common-licenses/Apache-2.0 debian/python-grapefruit-doc.doc-base0000644000000000000000000000052312135602270015015 0ustar Document: grapefruit Title: Grapefruit Author: Xavier Basty Abstract: Python module to manipulate color information easily Section: Graphics Format: HTML Index: /usr/share/doc/python-grapefruit-doc/html/index.html Files: /usr/share/doc/python-grapefruit-doc/html/*.html Format: Text Files: /usr/share/doc/python-grapefruit-doc/rst/*.txt debian/patches/0000755000000000000000000000000012202122105010600 5ustar debian/patches/fix-typos0000644000000000000000000001313312137753250012510 0ustar Description: Fix typos in comments and doc. Author: Simon Chopin Bug: http://code.google.com/p/grapefruit/issues/detail?id=7 Last-Update: 2013-04-30 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/doc/index.rst +++ b/doc/index.rst @@ -18,7 +18,7 @@ .. class:: Color The grapefruit module contains only the :class:`Color` class, which exposes all -the functionnalities. It can be used to store a color value and manipulate it, +the functionalities. It can be used to store a color value and manipulate it, or convert it to another color system. If you are only interested in converting you colors from one system to another, @@ -42,7 +42,7 @@ Some operations may provide results a bit outside the specified ranges, the results are not capped. - This is due to certain color systems having a widers gamut than others. + This is due to certain color systems having a wider gamut than others. Class content @@ -423,7 +423,7 @@ The generation methods let you create a color scheme by using a color as the start point. -All the method, appart from Gradient and MonochromeScheme, have a 'mode' +All the method, apart from Gradient and MonochromeScheme, have a 'mode' parameter that let you choose which color wheel should be used to generate the scheme. --- a/grapefruit.py +++ b/grapefruit.py @@ -1111,7 +1111,7 @@ @staticmethod def NewFromRgb(r, g, b, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed RGB values. + '''Create a new instance based on the specified RGB values. Parameters: :r: @@ -1138,7 +1138,7 @@ @staticmethod def NewFromHsl(h, s, l, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed HSL values. + '''Create a new instance based on the specified HSL values. Parameters: :h: @@ -1165,7 +1165,7 @@ @staticmethod def NewFromHsv(h, s, v, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed HSV values. + '''Create a new instance based on the specified HSV values. Parameters: :h: @@ -1193,7 +1193,7 @@ @staticmethod def NewFromYiq(y, i, q, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed YIQ values. + '''Create a new instance based on the specified YIQ values. Parameters: :y: @@ -1220,7 +1220,7 @@ @staticmethod def NewFromYuv(y, u, v, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed YUV values. + '''Create a new instance based on the specified YUV values. Parameters: :y: @@ -1247,7 +1247,7 @@ @staticmethod def NewFromXyz(x, y, z, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed CIE-XYZ values. + '''Create a new instance based on the specified CIE-XYZ values. Parameters: :x: @@ -1274,7 +1274,7 @@ @staticmethod def NewFromLab(l, a, b, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed CIE-LAB values. + '''Create a new instance based on the specified CIE-LAB values. Parameters: :l: @@ -1305,7 +1305,7 @@ @staticmethod def NewFromCmy(c, m, y, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed CMY values. + '''Create a new instance based on the specified CMY values. Parameters: :c: @@ -1332,7 +1332,7 @@ @staticmethod def NewFromCmyk(c, m, y, k, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed CMYK values. + '''Create a new instance based on the specified CMYK values. Parameters: :c: @@ -1361,7 +1361,7 @@ @staticmethod def NewFromHtml(html, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed HTML color definition. + '''Create a new instance based on the specified HTML color definition. Parameters: :html: @@ -1392,7 +1392,7 @@ @staticmethod def NewFromPil(pil, alpha=1.0, wref=_DEFAULT_WREF): - '''Create a new instance based on the specifed PIL color. + '''Create a new instance based on the specified PIL color. Parameters: :pil: @@ -1834,11 +1834,11 @@ Color((h2, s, l), 'hsl', self.__a, self.__wref)) def TetradicScheme(self, angle=30, mode='ryb'): - '''Return three colors froming a tetrad with this one. + '''Return three colors forming a tetrad with this one. Parameters: :angle: - The angle to substract from the adjacent colors hues [-90...90]. + The angle to subtract from the adjacent colors hues [-90...90]. You can use an angle of zero to generate a square tetrad. :mode: Select which color wheel to use for the generation (ryb/rgb). --- a/grapefruit_test.py +++ b/grapefruit_test.py @@ -28,7 +28,7 @@ def failUnlessNear(self, first, second, diff=9e-5, msg=None): ''' Fail if the difference between the two objects is greater - than a certain amout (default 9e-5). + than a certain amount (default 9e-5). ''' if hasattr(first,'__iter__') and hasattr(second,'__iter__'): if len(first) != len(second): @@ -112,7 +112,7 @@ self.assertEqual((0.6, 0.6, 0.6), grapefruit.Color.RgbToGreyscale(1, 0.8, 0)) class NewFromTest(GrapeFruitTestCase): - '''Test the static color instanciation methods.''' + '''Test the static color instantiation methods.''' def testNewFromRgb(self): c = grapefruit.Color.NewFromRgb(1.0, 0.5, 0.0) self.assertEqual(c, (1.0, 0.5, 0.0, 1.0)) debian/patches/series0000644000000000000000000000001212137753250012030 0ustar fix-typos debian/python-grapefruit.docs0000644000000000000000000000000712135602270013522 0ustar README debian/python-grapefruit.install0000644000000000000000000000001112135602270014233 0ustar usr/lib/ debian/python-grapefruit-doc.docs0000644000000000000000000000002012135602270014260 0ustar doc/_build/html debian/compat0000644000000000000000000000000212156300122010354 0ustar 9 debian/watch0000644000000000000000000000026412135602270010217 0ustar version=3 opts=uversionmangle=s/(a|b|rc)/~$1/,dversionmangle=s/\+dfsg//; \ http://github.com/xav/Grapefruit/downloads /downloads/xav/Grapefruit/grapefruit-(.+?)(?:\.tar)?\.tar\.gz debian/python-grapefruit-doc.links0000644000000000000000000000013412135602270014456 0ustar /usr/share/doc/python-grapefruit-doc/html/_sources /usr/share/doc/python-grapefruit-doc/rst debian/source/0000755000000000000000000000000012202122105010451 5ustar debian/source/format0000644000000000000000000000001412135602270011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000046112202122057011032 0ustar grapefruit (0.1~a3+dfsg-1) unstable; urgency=low [ Simon Chopin ] * Initial release. (Closes: #706042) * Do not ship the logo as its license situation is unclear. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Simon Chopin Mon, 12 Aug 2013 11:00:26 +0200 debian/rules0000755000000000000000000000132012202121376010236 0ustar #!/usr/bin/make -f PYVERS := $(shell pyversions -r) UPSTREAM = $(shell dpkg-parsechangelog | egrep '^Version: ' | cut -d ' ' -f 2- | sed 's/+dfsg.*//') %: dh $@ --with python2,sphinxdoc override_dh_auto_build: dh_auto_build PYTHONPATH=$(shell pwd) make -C doc/ html override_dh_install: dh_install -X SOURCES.txt override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -ex; \ for py in $(shell pyversion -r); do \ PYTHONPATH=$(CURDIR) $$py -m pytest; \ done endif override_dh_auto_clean: dh_auto_clean rm -rf doc/_build get-orig-source: gzip -cd '../grapefruit_$(UPSTREAM).orig.tar.gz' | tar --delete doc/_static/GrapeFruit.png | gzip > '../grapefruit_$(UPSTREAM)+dfsg.orig.tar.gz' debian/clean0000644000000000000000000000002612135602270010167 0ustar grapefruit.egg-info/*