debian/0000755000000000000000000000000012166647444007204 5ustar debian/changelog0000644000000000000000000000047112166647432011055 0ustar fabulous (0.1.5+dfsg1-1) unstable; urgency=low * Initial release. (Closes: #705947) * The licensing of the fonts file is unclear, hence removal from the source package. * Patch the except: statements to always specify a type. -- Simon Chopin Mon, 08 Jul 2013 19:45:29 -0400 debian/rules0000755000000000000000000000124612162320247010250 0ustar #!/usr/bin/make -f CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ --with python2,sphinxdoc build-arch: mkdir -p debian/tmp $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -o xtermspeedup.so fabulous/_xterm256.c override_dh_auto_build-indep: dh_auto_build -i PYTHONPATH=$(shell pwd) make -C docs/ html override_dh_auto_install-arch: dh_auto_install -a rm -f debian/tmp/usr/lib/python2*/dist-packages/fabulous*.egg-info/SOURCES.txt mv xtermspeedup.so debian/tmp override_dh_auto_clean: dh_auto_clean rm -rf docs/_build override_dh_sphinxdoc-arch: debian/python-fabulous-doc.doc-base0000644000000000000000000000051412135614260014467 0ustar Document: fabulous Title: Fabulous Author: Justine A. R. Tunney Abstract: Python module to make your terminal output fabulous Section: Text Format: HTML Index: /usr/share/doc/python-fabulous-doc/html/index.html Files: /usr/share/doc/python-fabulous-doc/html/*.html Format: Text Files: /usr/share/doc/python-fabulous-doc/rst/*.txt debian/repack.sh0000755000000000000000000000103612162342407010773 0ustar #!/bin/sh # Taken from the X Strike Force Build System set -e if ! [ -d debian/prune ]; then exit 0 fi if [ "x$1" != x--upstream-version ]; then exit 1 fi version="$2" filename="$3" source="fabulous" if [ -z "$version" ] || ! [ -f "$filename" ]; then exit 1 fi dir="$(pwd)" tempdir="$(mktemp -d)" cd "$tempdir" tar xf "$dir/$filename" cat "$dir"/debian/prune/* | while read file; do rm -rf */$file; done tar czf "$dir/$source_$version+dfsg1.orig.tar.gz" * cd "$dir" rm -rf "$tempdir" echo "Done pruning upstream tarball" exit 0 debian/python-fabulous-doc.links0000644000000000000000000000013012135614260014124 0ustar /usr/share/doc/python-fabulous-doc/html/_sources /usr/share/doc/python-fabulous-doc/rst debian/prune/0000755000000000000000000000000012166647441010332 5ustar debian/prune/fonts0000644000000000000000000000001712162342407011372 0ustar fabulous/fonts debian/clean0000644000000000000000000000004412135614260010171 0ustar fabulous.egg-info/* xtermspeedup.so debian/watch0000644000000000000000000000023012162342407010213 0ustar version=3 opts=dversionmangle=s/\+dfsg\d+// \ http://lobstertech.com/fabulous.html /media/file/fabulous/fabulous-(.*)\.tar\.gz debian debian/repack.sh debian/patches/0000755000000000000000000000000012166647441010630 5ustar debian/patches/remove_ez_setup0000644000000000000000000000176212154076155013767 0ustar Description: Remove ez_setup import in setup.py Author: Simon Chopin Forwarded: not-needed --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- fabulous-0.1.5+dfsg1.orig/setup.py +++ fabulous-0.1.5+dfsg1/setup.py @@ -4,9 +4,6 @@ # http://wiki.python.org/moin/CheeseShopTutorial # http://pypi.python.org/pypi?:action=list_classifiers -from ez_setup import use_setuptools -use_setuptools(version='0.6c11') - import os from setuptools import setup, find_packages debian/patches/fix_except0000644000000000000000000000267112155433641012710 0ustar From: Simon Chopin Date: Thu, 6 Jun 2013 12:10:24 +0200 Subject: Always specify the exception type in except: blocks Forwarded: https://github.com/jart/fabulous/pull/1 diff --git a/fabulous/utils.py b/fabulous/utils.py index 8ca3da4..9f99002 100644 --- a/fabulous/utils.py +++ b/fabulous/utils.py @@ -92,7 +92,7 @@ class TerminalInfo(object): """ try: call = fcntl.ioctl(self.termfd, termios.TIOCGWINSZ, "\000" * 8) - except: + except IOError: return (79, 40) else: height, width = struct.unpack("hhhh", call)[:2] diff --git a/fabulous/xterm256.py b/fabulous/xterm256.py index 65ed75f..6662a89 100644 --- a/fabulous/xterm256.py +++ b/fabulous/xterm256.py @@ -91,7 +91,8 @@ def compile_speedup(): sauce = join(dirname(__file__), '_xterm256.c') if not exists(library) or getmtime(sauce) > getmtime(library): build = "gcc -fPIC -shared -o %s %s" % (library, sauce) - assert os.system(build + " >/dev/null 2>&1") == 0 + if (os.system(build + " >/dev/null 2>&1") != 0): + raise OSError("GCC error") xterm256_c = ctypes.cdll.LoadLibrary(library) xterm256_c.init() def xterm_to_rgb(xcolor): @@ -102,5 +103,5 @@ def compile_speedup(): try: (rgb_to_xterm, xterm_to_rgb) = compile_speedup() -except: +except OSError: logging.debug("fabulous failed to compile xterm256 speedup code") -- 1.7.10.4 debian/patches/series0000644000000000000000000000005612154076155012041 0ustar build_xterm256_ext remove_ez_setup fix_except debian/patches/build_xterm256_ext0000644000000000000000000000153612154076155014206 0ustar Description: Look for the default xterm256.so instead of building one's own Author: Simon Chopin Forwarded: not-needed Last-Update: 2013-04-24 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/fabulous/xterm256.py +++ b/fabulous/xterm256.py @@ -80,14 +80,13 @@ You need: - Python >= 2.5 for ctypes library - - gcc (``sudo apt-get install gcc``) """ import os import ctypes from os.path import join, dirname, getmtime, exists, expanduser # library = join(dirname(__file__), '_xterm256.so') - library = expanduser('~/.xterm256.so') + library = '/usr/lib/fabulous/xtermspeedup.so' sauce = join(dirname(__file__), '_xterm256.c') if not exists(library) or getmtime(sauce) > getmtime(library): build = "gcc -fPIC -shared -o %s %s" % (library, sauce) debian/python-fabulous.install0000644000000000000000000000005212155433641013716 0ustar usr/lib xtermspeedup.so /usr/lib/fabulous debian/control0000644000000000000000000000304512155433641010577 0ustar Source: fabulous Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Simon Chopin Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-grapefruit, python-sphinx (>= 1.0.7+dfsg), python-setuptools Standards-Version: 3.9.4 X-Python-Version: >= 2.6 Homepage: http://lobstertech.com/fabulous.html Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/fabulous/trunk Vcs-Browser: http://anonscm.debian.org/viewsvn/python-modules/packages/fabulous/trunk/ Package: python-fabulous Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Description: Python module to make your terminal output fabulous Fabulous is a Python library designed to make the output of terminal applications look fabulous. Fabulous allows you to print colors, images, and stylized text to the console (without curses.) Fabulous also offers features to improve the usability of Python's standard logging system. Package: python-fabulous-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${sphinxdoc:Depends} Description: Python module to make your terminal output fabulous - documentation Fabulous is a Python library designed to make the output of terminal applications look fabulous. Fabulous allows you to print colors, images, and stylized text to the console (without curses.) Fabulous also offers features to improve the usability of Python's standard logging system. . This package provides the documentation for fabulous. debian/README.source0000644000000000000000000000031512162342407011345 0ustar The fabulous/fonts directory has been removed as the license of these files isn't specified. In order to get the tarball, simply run uscan, it will strip the downloaded tarball and add the +dfsg1 suffix. debian/python-fabulous-doc.docs0000644000000000000000000000002112135614260013733 0ustar docs/_build/html debian/source/0000755000000000000000000000000012166647441010501 5ustar debian/source/format0000644000000000000000000000001412135614260011674 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212135614260010364 0ustar 9 debian/copyright0000644000000000000000000000253612154076155011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fabulous Source: http://lobstertech.com/fabulous.html Files: * Copyright: 2010-2012 Justine A.R Tunney License: Expat Files: debian/* Copyright: 2013 Simon Chopin License: Expat License: Expat 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.