debian/0000755000000000000000000000000011635760032007171 5ustar debian/watch0000644000000000000000000000010611635760032010217 0ustar version=3 http://releases.navi.cx/pycaptcha/pycaptcha-(.*)\.tar\.bz2 debian/source/0000755000000000000000000000000011635760032010471 5ustar debian/source/format0000644000000000000000000000001411635760032011677 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001511635760032010040 0ustar BUGS README debian/copyright0000644000000000000000000000655511635760032011137 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: pycaptcha Source: http://pypi.python.org/pypi/PyCAPTCHA/0.4 Files: * Copyright: 2004 Micah Dowty License: MIT Files: setup/my_install_data.py Copyright: 2000 Rene Liebscher License: MIT Files: Captcha/data/fonts/vera/* Copyright: 2003 Bitstream, Inc Comment: only pertinent to source package, binary packages use system-wide installed copy License: Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. Files: debian/* Copyright: 2011 Olivier Sallou License: MIT License: MIT 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. debian/python-captcha.examples0000644000000000000000000000006711635760032013656 0ustar http_example.py modpython_example.py simple_example.py debian/control0000644000000000000000000000155611635760032010603 0ustar Source: pycaptcha Section: python Priority: optional Uploaders: Olivier Sallou Maintainer: Debian Python Modules Team Build-Depends: debhelper (>= 8), python-imaging (>= 1.1.5),python (>= 2.6) Standards-Version: 3.9.2 Homepage: http://pypi.python.org/pypi/PyCAPTCHA/0.4 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-pycaptcha/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-pycaptcha/trunk/ Package: python-captcha Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-imaging (>= 1.1.5), ttf-bitstream-vera Description: collection of Python modules implementing CAPTCHAs This package contains Python modules to add some captcha in an application to recognize a human versus a robot. The package generates an image based on a dictionary. debian/get-orig-source0000755000000000000000000000045311635760032012134 0ustar #!/bin/bash set -e PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` VERSION=`uscan --verbose --force-download | grep "Newest version on remote site is .* local version is .*" | head -n 1 | sed "s/Newest version on remote site is \([a-z0-9.]\+\),.*/\1/"` mkdir -p ../tarballs debian/rules0000755000000000000000000000052211635760032010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_auto_install: dh_auto_install rm -rf debian/python-captcha/usr/lib/python2.*/dist-packages/Captcha/data/fonts rm -rf debian/python-captcha/Captcha/data/fonts/vera get-orig-source: bash debian/get-orig-source debian/changelog0000644000000000000000000000031411635760032011041 0ustar pycaptcha (0.4-1) unstable; urgency=low * Initial release (Closes: #637109) * Upload is sponsored by Yaroslav Halchenko -- Olivier Sallou Mon, 08 Aug 2011 14:55:59 +0200 debian/compat0000644000000000000000000000000211635760032010367 0ustar 8 debian/patches/0000755000000000000000000000000011635760032010620 5ustar debian/patches/series0000644000000000000000000000004611635760032012035 0ustar up_examples_shebangs change_font_path debian/patches/change_font_path0000644000000000000000000000212511635760032014032 0ustar Author: Olivier Sallou Description: search fonts in Debian font dir Last-Update: 2011-08-09 --- a/Captcha/Visual/Tests.py +++ b/Captcha/Visual/Tests.py @@ -44,7 +44,7 @@ class AntiSpam(ImageCaptcha): """A fixed-solution CAPTCHA that can be used to hide email addresses or URLs from bots""" - fontFactory = Text.FontFactory(20, "vera/VeraBd.ttf") + fontFactory = Text.FontFactory(20, "ttf-bitstream-vera/VeraBd.ttf") defaultSize = (512,50) def getLayers(self, solution="murray@example.com"): --- a/Captcha/Visual/Text.py +++ b/Captcha/Visual/Text.py @@ -19,7 +19,7 @@ in that directory will be added. """ extensions = [".ttf"] - basePath = "fonts" + basePath = "/usr/share/fonts/truetype/" def __init__(self, sizes, *fileNames): File.RandomFileFactory.__init__(self, *fileNames) @@ -38,7 +38,7 @@ return (fileName, size) # Predefined font factories -defaultFontFactory = FontFactory((30, 40), "vera") +defaultFontFactory = FontFactory((30, 40), "ttf-bitstream-vera") class TextLayer(Visual.Layer): debian/patches/up_examples_shebangs0000644000000000000000000000031511635760032014736 0ustar --- a/modpython_example.py +++ b/modpython_example.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # # An example that presents CAPTCHA tests in a web environment # and gives the user a chance to solve them.