debian/0000755000000000000000000000000012150414703007163 5ustar debian/install0000644000000000000000000000003111571004404010545 0ustar debian/pyfiglet /usr/bin debian/source/0000755000000000000000000000000012150414703010463 5ustar debian/source/format0000644000000000000000000000001411324445767011711 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000510512150414700011033 0ustar pyfiglet (0.6.1+dfsg-1) unstable; urgency=low [ Stefano Rivera ] * New upstream release. - Includes manpage, drop our man page. * Update Homepage. * Bump Standards-Version to 3.9.4. - Bump debhelper Depends to 8.1 for build-{arch,indep} support. * Bump machine readable copyright format to 1.0. * Bump copyright years. * Bump debhelper compat level to 8. * Moved repack.sh into a get-packaged-orig-source rule in rules. * Drop SOURCES.txt from the binary package. * Add smoketest autopkgtest. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Stefano Rivera Sun, 26 May 2013 16:18:40 +0200 pyfiglet (0.6+dfsg-1) unstable; urgency=low * New upstream release. - Update copyright. - Update man page. * Upstream moved to github, updated watch file and get-orig-source. * Dropped patches superseded upstream: py26deprecation.diff, dir-error-path.diff, tlf-support.diff * font-location.diff: Look in /usr/share/figlet for fonts, rather than using pkg_resources. * Updated debian-defaults.diff. * Install wrapper with dh_install, as upstream has a setup.py. * Build-Depend on python-setuptools and clean up egg-info. * Move DFSG repacking into a script called by uscan. -- Stefano Rivera Thu, 18 Aug 2011 12:54:45 +0200 pyfiglet (0.4+dfsg-3) unstable; urgency=low * debian/copyright: - Update upstream maintainer's email address. - Update format. * Update my e-mail address. * Use X-Python-Version. - BD on python-all 2.6.5-13. - Specify supported versions rather than all. * Drop Breaks: ${python:Breaks}, no longer used by dh_python2. * Bump Standards-Version to 3.9.2, no changes needed. * debian/rules: Correct argument order for dh. * Patches: Update Forwarding status, upstream development has moved to github. * Correct DEP3 headers (first line of Description is the subject) -- Stefano Rivera Sun, 01 May 2011 22:03:51 -0400 pyfiglet (0.4+dfsg-2) unstable; urgency=low * Convert to dh_python2. * Move manpage installation from override rule to debian/manpages file. * Bump Standards-Version to 3.9.0, no changes needed. * get-orig-source: Don't leak uid and umask into source tarball and set -e. * Correctly subclass str, to fix a deprecation warning under Python 2.6 (Closes: #588855) -- Stefano Rivera Mon, 12 Jul 2010 21:57:41 +0200 pyfiglet (0.4+dfsg-1) unstable; urgency=low * Initial release (Closes: #564609) -- Stefano Rivera Thu, 28 Jan 2010 13:00:41 +0200 debian/tests/0000755000000000000000000000000012150414703010325 5ustar debian/tests/control0000644000000000000000000000005212150413777011737 0ustar Tests: smoketest Depends: @, toilet-fonts debian/tests/smoketest0000755000000000000000000000013712150414210012263 0ustar #!/bin/sh set -efu cd "$ADTTMP" pyfiglet --help pyfiglet hello there pyfiglet -f letter haai debian/control0000644000000000000000000000200112150414224010555 0ustar Source: pyfiglet Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Stefano Rivera Build-Depends: debhelper (>= 8.1), python-all (>= 2.6.5-13~), python-setuptools X-Python-Version: >= 2.5 XS-Testsuite: autopkgtest Standards-Version: 3.9.4 Homepage: https://github.com/pwaller/pyfiglet Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyfiglet/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyfiglet/trunk/ Package: python-pyfiglet Architecture: all Depends: ${misc:Depends}, ${python:Depends} Recommends: toilet-fonts Suggests: figlet Description: Python port of the FIGlet specification FIGLet is a program that creates large characters out of ordinary screen characters. It takes ASCII text and renders it in ASCII art fonts. . This is a Python port of the original C figlet. It can be used on the commandline or as an Object Oriented driver library in your own programs. debian/manpages0000644000000000000000000000001712074302256010703 0ustar doc/pyfiglet.1 debian/copyright0000644000000000000000000000317212074302256011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pyfiglet Upstream-Contact: Peter Waller Source: https://github.com/pwaller/pyfiglet Comment: The upstream for this package includes non-distributable items is the release tarball: * pyfiglet/fonts - a collection of figlet fonts from ftp.figlet.org * doc/figfont.txt - the Figlet specification Both clearly non-distributable, as described here http://bugs.debian.org/274950 . Instead of the included fonts, this package can use the fonts provided by toilet-fonts or figlet in /usr/share/figlet. . Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=2933719&group_id=200820&atid=975074 Files: * Copyright: 2007, Christopher Jones , 2011-2013, Peter Waller , 2011-2013, Stefano Rivera License: GPL-2+ Files: debian/* Copyright: 2010-2013, Stefano Rivera License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in the /usr/share/common-licenses/GPL-2 file. debian/rules0000755000000000000000000000132612150413557010253 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_install: dh_auto_install find debian/python-pyfiglet -name SOURCES.txt -delete get-packaged-orig-source: set -ex; \ VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p'); \ uscan --noconf --download-current-version --destdir=. --rename; \ mkdir pyfiglet-$$VER+dfsg.orig; \ tar -x --exclude=pyfiglet/fonts --exclude=doc/figfont.txt --exclude=.gitignore \ --strip-component=1 -C pyfiglet-$$VER+dfsg.orig -f pyfiglet_$$VER.orig.tar.gz; \ rm pyfiglet_$$VER.orig.tar.gz; \ GZIP=--best tar -cz --owner root --group root --mode a+rX \ -f "pyfiglet_$$VER+dfsg.orig.tar.gz" "pyfiglet-$$VER+dfsg.orig"; \ rm -rf "pyfiglet-$$VER+dfsg.orig" debian/watch0000644000000000000000000000016712074302256010224 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://githubredir.debian.net/github/pwaller/pyfiglet/(.*).tar.gz \ debian debian/pyfiglet0000755000000000000000000000051511571004404010734 0ustar #!/usr/bin/python from sys import stderr, exit from pyfiglet import main, FontNotFound try: main() except FontNotFound: stderr.write('Font not found or not compatible. ' 'Please install the toilet-fonts or figlet package for fonts.\n' "Note that not all toilet's .tlf fonts are compatible.\n") exit(1) debian/docs0000644000000000000000000000000711324445413010037 0ustar README debian/patches/0000755000000000000000000000000012150414703010612 5ustar debian/patches/series0000644000000000000000000000005011571004404012021 0ustar debian-defaults.diff font-location.diff debian/patches/debian-defaults.diff0000644000000000000000000000070311571004404014472 0ustar Description: Debian figlet defaults. Change defaults to be toilet-compatible (font: future) Author: Stefano Rivera Forwarded: not-needed Last-Update: 2011-05-29 --- a/pyfiglet/__init__.py +++ b/pyfiglet/__init__.py @@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -DEFAULT_FONT='standard' +DEFAULT_FONT='future' def figlet_format(text, font=DEFAULT_FONT, **kwargs): debian/patches/font-location.diff0000644000000000000000000000345512074302256014233 0ustar Description: Use Debian's figlet fonts. Look in /usr/share/figlet rather than using pkg_resources to find fonts. Author: Stefano Rivera Forwarded: not-needed Last-Update: 2011-05-29 --- a/pyfiglet/__init__.py +++ b/pyfiglet/__init__.py @@ -5,7 +5,7 @@ """ import os -import pkg_resources +import os.path import re import sys from optparse import OptionParser @@ -82,8 +82,8 @@ for extension in ('tlf', 'flf'): fn = '%s.%s' % (font, extension) - if pkg_resources.resource_exists('pyfiglet.fonts', fn): - self.data = pkg_resources.resource_string('pyfiglet.fonts', fn) + if os.path.isfile(os.path.join('/usr/share/figlet', fn)): + self.data = open(os.path.join('/usr/share/figlet', fn)).read() break else: raise FontNotFound(font) @@ -93,10 +93,10 @@ @classmethod def getFonts(self): return [font.rsplit('.', 2)[0] for font - in pkg_resources.resource_listdir('pyfiglet', 'fonts') + in os.listdir('/usr/share/figlet') if font.endswith(('.flf', '.tlf')) - and self.reMagicNumber.search(pkg_resources.resource_stream( - 'pyfiglet.fonts', font).readline())] + and self.reMagicNumber.search(open(os.path.join( + '/usr/share/figlet', font)).readline())] def loadFont(self): """ --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ author='Peter Waller (Thanks to Christopher Jones and Stefano Rivera)', author_email='peter.waller@gmail.com', url='https://github.com/pwaller/pyfiglet', - packages=['pyfiglet', 'pyfiglet.fonts'], - package_data={'pyfiglet.fonts' : ['*.flf']}, + packages=['pyfiglet'], ) debian/compat0000644000000000000000000000000212150412413010355 0ustar 8 debian/clean0000644000000000000000000000001511571004404010163 0ustar *.egg-info/*