debian/0000775000000000000000000000000012324202276007170 5ustar debian/scripts/0000775000000000000000000000000012235440105010653 5ustar debian/scripts/bpython-urwid0000775000000000000000000000010312235440105013406 0ustar #!/bin/sh exec python -O /usr/share/bpython/bpython-urwid.py "$@" debian/scripts/bpython-gtk0000775000000000000000000000010112235440105013037 0ustar #!/bin/sh exec python -O /usr/share/bpython/bpython-gtk.py "$@" debian/scripts/bpython-urwid.py0000664000000000000000000000011412235440105014034 0ustar #!/usr/bin/env python import sys from urwid_ import main sys.exit(main()) debian/control0000664000000000000000000001110512324201054010562 0ustar Source: bpython Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: David Paleino Build-Depends: debhelper (>= 7.0.50~) , python (>= 2.6.6-3~) , python-setuptools , python3 , python3-setuptools , dh-buildinfo , python-babel , python-sphinx Standards-Version: 3.9.5 Homepage: http://bpython-interpreter.org/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/bpython.git Vcs-Git: git://anonscm.debian.org/collab-maint/bpython.git X-Python-Version: >= 2.5 Package: bpython Architecture: all Depends: ${python:Depends} , ${misc:Depends} , python-pygments , python-pkg-resources Description: fancy interface to the Python interpreter - Curses frontend bpython is a fancy interface to the Python interpreter, and has the following features: . * In-line syntax highlighting. * Readline-like autocomplete with suggestions displayed as you type * Expected parameter list for any Python function. Uses pydoc to attempt to divine params for C functions. * "Rewind" function to pop the last line of code from memory and re-evaluate. Note: this is only really useful when laying out classes and functions, since a true "undo" function is impossible, so be careful when using this. * Send the code you've entered off to a pastebin and display the pastebin URL for copying, etc. * Save the code you've entered to a file. * Auto-indentation. * Anti-Crash Mode. . This package contains the Curses frontend to bpython. Package: bpython3 Architecture: all Depends: ${python3:Depends} , ${misc:Depends} , python3-pygments , python3-pkg-resources Description: fancy interface to the Python3 interpreter - Curses frontend bpython is a fancy interface to the Python3 interpreter, and has the following features: . * In-line syntax highlighting. * Readline-like autocomplete with suggestions displayed as you type * Expected parameter list for any Python function. Uses pydoc to attempt to divine params for C functions. * "Rewind" function to pop the last line of code from memory and re-evaluate. Note: this is only really useful when laying out classes and functions, since a true "undo" function is impossible, so be careful when using this. * Send the code you've entered off to a pastebin and display the pastebin URL for copying, etc. * Save the code you've entered to a file. * Auto-indentation. * Anti-Crash Mode. . This package contains the Curses frontend to bpython for Python 3. Package: bpython-gtk Architecture: all Depends: ${python:Depends} , ${misc:Depends} , python , python-gobject , python-gtk2 , bpython (= ${source:Version}) Description: fancy interface to the Python interpreter - GTK+ frontend bpython is a fancy interface to the Python interpreter, and has the following features: . * In-line syntax highlighting. * Readline-like autocomplete with suggestions displayed as you type * Expected parameter list for any Python function. Uses pydoc to attempt to divine params for C functions. * "Rewind" function to pop the last line of code from memory and re-evaluate. Note: this is only really useful when laying out classes and functions, since a true "undo" function is impossible, so be careful when using this. * Send the code you've entered off to a pastebin and display the pastebin URL for copying, etc. * Save the code you've entered to a file. * Auto-indentation. * Anti-Crash Mode. . This package contains the GTK+ frontend to bpython. Package: bpython-urwid Architecture: all Depends: ${python:Depends} , ${misc:Depends} , python , python-urwid , bpython (= ${source:Version}) Suggests: python-twisted Description: fancy interface to the Python interpreter - urwid frontend bpython is a fancy interface to the Python interpreter, and has the following features: . * In-line syntax highlighting. * Readline-like autocomplete with suggestions displayed as you type * Expected parameter list for any Python function. Uses pydoc to attempt to divine params for C functions. * "Rewind" function to pop the last line of code from memory and re-evaluate. Note: this is only really useful when laying out classes and functions, since a true "undo" function is impossible, so be careful when using this. * Send the code you've entered off to a pastebin and display the pastebin URL for copying, etc. * Save the code you've entered to a file. * Auto-indentation. * Anti-Crash Mode. . This package contains the urwid frontend to bpython. debian/bpython3.install0000664000000000000000000000010012235440105012311 0ustar usr/bin/bpython3 usr/lib/python3* usr/share/man/man1/bpython3.* debian/bpython-urwid.install0000664000000000000000000000026612235440105013373 0ustar usr/lib/python*/*-packages/bpython/urwid.py /usr/share/bpython/ debian/scripts/bpython-urwid /usr/bin/ debian/scripts/bpython-urwid.py /usr/share/bpython/ debian/README.source0000664000000000000000000000036712235440105011351 0ustar bpython for Debian ------------------ To obtain the patches source, plase run: dh_quilt_patch For more information, please refer to /usr/share/doc/quilt/README.Debian. -- David Paleino Thu, 03 Sep 2009 12:49:26 +0200 debian/clean0000664000000000000000000000005012235440105010164 0ustar bpython/translations/*/LC_MESSAGES/*.mo debian/bpython-gtk.lintian-overrides0000664000000000000000000000010412235440105015005 0ustar bpython-gtk: copyright-should-refer-to-common-license-file-for-gfdl debian/bpython-gtk.links0000664000000000000000000000010512235440105012470 0ustar usr/share/man/man1/bpython.1.gz /usr/share/man/man1/bpython-gtk.1.gz debian/bpython3.lintian-overrides0000664000000000000000000000010112235440105014302 0ustar bpython3: copyright-should-refer-to-common-license-file-for-gfdl debian/bpython-urwid.links0000664000000000000000000000010712235440105013037 0ustar usr/share/man/man1/bpython.1.gz /usr/share/man/man1/bpython-urwid.1.gz debian/bpython.examples0000664000000000000000000000005112235440105012403 0ustar sample-config sample.theme windows.theme debian/bpython.install0000664000000000000000000000015212235440105012235 0ustar usr/bin/bpython usr/lib/python2* usr/share/applications/ usr/share/man/man5/ usr/share/man/man1/bpython.* debian/watch0000664000000000000000000000011312235440105010210 0ustar version=3 http://bpython-interpreter.org/releases/bpython-(\d+.*)\.tar\.gz debian/changelog0000664000000000000000000002104012324200753011035 0ustar bpython (0.12-1ubuntu1.1) trusty-proposed; urgency=medium * fix wrong shebang of bpython (LP: #1307149) -- Julian Taylor Fri, 18 Apr 2014 12:41:06 +0200 bpython (0.12-1ubuntu1) trusty; urgency=medium * Rewrite the python shebang path to /usr/bin/python3. -- Matthias Klose Thu, 20 Feb 2014 15:17:16 +0100 bpython (0.12-1) unstable; urgency=low * Acknowledge NMU. * New upstream version (Closes: #697053). * Suggest python-twisted for bpython-urwid (Closes: #681765) * Standards-Version bump to 3.9.5, no changes needed. * Use canonical urls for Vcs-* fields. * Update debian/ to correctly compile the new version: - Build-Depend on python-babel to allow translations building (Closes: #700187). - Build-Depend on python-sphinx to build the manpages. -- David Paleino Sun, 03 Nov 2013 13:23:28 +0100 bpython (0.11-1.1) unstable; urgency=low * Non-maintainer upload. * Build using just the default python3 version to fix FTBFS when there is more than one (Closes: #707309) -- Scott Kitterman Sun, 04 Aug 2013 17:18:19 -0400 bpython (0.11-1) unstable; urgency=low * New upstream version * Add windows.theme to installed example themes * Updated debian/copyright * debian/patches/03-support_new_urwid.patch removed, merged upstream -- David Paleino Sat, 07 Apr 2012 19:31:00 +0200 bpython (0.10.1-3) unstable; urgency=low * Apply patch from upstream to handle newer urwid (Closes: #645658) * Add dh-buildinfo -- David Paleino Mon, 17 Oct 2011 19:08:01 +0200 bpython (0.10.1-2) unstable; urgency=low * Huge BUG in the conversion from dh_pysupport to dh_python2: in 0.9.7.1-1's (pysupport) postrm, I inconditionally removed /usr/lib/python*/*-packages/bpython (which was wrong), and this removed also files shipped by 0.10.1-1, thus causing an ImportError fixable only by re-installation. Added preinst nuking old postrms, so that upgrades are clean (Closes: #640969) -- David Paleino Fri, 09 Sep 2011 13:13:51 +0200 bpython (0.10.1-1) unstable; urgency=low [ David Paleino ] * New upstream version * Patches refreshed, 03-fix_manpage.patch removed (merged upstream) * Standards-Version bump to 3.9.3, no changes needed [ Tanguy Ortolo ] * Include sample.theme in installed examples * Use "$@" in wrapper scripts for correct argument passing * Switch debian/rules in debian/control to dh_python2 * debian/postrm: deleted as useless and harmful * Adapt packaging to support python3 (Closes: #572776) -- David Paleino Wed, 07 Sep 2011 09:18:27 +0200 bpython (0.9.7.1-1) unstable; urgency=low * New upstream release (Closes: #590551) * debian/patches/: - 01-fix_logo_path.patch refreshed - 03-fix_manpage.patch added, fixes typo (Closes: #583191) * debian/copyright updated * debian/source/format: use 3.0 (quilt) * debian/control: - added bpython-urwid binary package - Standards-Version bumped to 3.9.1, no changes needed * debian/scripts/bpython-urwid, debian/scripts/bpython-urwid.py added, wrapper scripts to provide a separate urwid package * debian/bpython-urwid.install, debian/bpython-urwid.links added, install the correct files in the new package * debian/bpython-urwid.lintian-overrides added, make lintian happy also with the new package * debian/rules: - remove "--with quilt" - remove "logo.png" from pyshared directory (use mv instead of cp) - remove "urwid.py*" from bpython binary package - rename urwid.py to urwid_.py in the bpython-urwid package -- David Paleino Mon, 02 Aug 2010 23:08:12 +0200 bpython (0.9.6.2-2) unstable; urgency=low * Reduce delta with Ubuntu, and prepare for near-future Debian: support Python >= 2.5: - debian/control: bump XS-Python-Version - debian/postinst, debian/postrm: remove python*/*-packages/bpython, to catch both python2.5/site-packages and python2.6/dist-packages. -- David Paleino Sat, 16 Jan 2010 17:53:57 +0100 bpython (0.9.6.2-1) unstable; urgency=low * Upstream broke things with 0.9.6, new release -- David Paleino Thu, 31 Dec 2009 11:21:13 +0100 bpython (0.9.6-1) unstable; urgency=low * New upstream release * debian/patches/: - 01-fix_logo_path.patch added, make bpython-gtk look for the icon in the right place - 02-fix_entrypoints_imports.patch added, make sure everything is in place to move gtk_.py out of PYTHONPATH - 01-add_write_to_FakeStdin.patch, 02-add_flush_to_FakeStdin.patch removed, merged upstream * debian/control: - package split in "bpython" and "bpython-gtk" - build-dependency on debhelper bumped * debian/rules: - rewritten with implicit dh7 targets * debian/scripts/bpython-gtk added, wrapper around bpython-gtk.py -- David Paleino Wed, 30 Dec 2009 16:14:21 +0100 bpython (0.9.5.2-3) unstable; urgency=low * debian/postinst: only do something if an "old-version" is passed to the script (Closes: #560229) -- David Paleino Fri, 11 Dec 2009 18:19:39 +0100 bpython (0.9.5.2-2) unstable; urgency=low * debian/control: - updated my email address - DMUA removed - add quilt Build-Dependency - add python-support Build-Dependency * debian/patches/: - 01-add_write_to_FakeStdin.patch added (Closes: #558054) - 02-add_flush_to_FakeStdin.patch added * debian/rules, add --with quilt * debian/postinst, debian/postrm added, correctly handle removal of .pyc files after the move to /usr/share/pyshared -- David Paleino Sun, 29 Nov 2009 00:51:56 +0100 bpython (0.9.5.2-1) unstable; urgency=low * New upstream version -- David Paleino Fri, 09 Oct 2009 14:39:52 +0200 bpython (0.9.5.1-1) unstable; urgency=low * New upstream version * Removed quilt patchsystem (no more patches here) * debian/patches/01-fix_python_history_file.patch removed, merged upstream -- David Paleino Wed, 23 Sep 2009 11:36:13 +0200 bpython (0.9.4-1) unstable; urgency=low * New upstream version * debian/rules, debian/control: - adding quilt infrastructure (>= 0.46-7~ for dh7 integration) * debian/patches/: - 01-fix_python_history_file.patch added, thanks to Philipp Winter (Closes: #537504) * debian/control: - only support python2.5 at the moment (setuptools import fails on py2.6, thus FTBFS) - Standards-Version bump to 3.8.3, no changes needed * debian/examples updated, sample file has been renamed * debian/README.source added -- David Paleino Thu, 03 Sep 2009 13:12:23 +0200 bpython (0.9.3-1) unstable; urgency=low * New upstream version * debian/watch updated * debian/control: - python-pyparsing is no more needed, removed from dependencies - new Homepage, field updated -- David Paleino Thu, 11 Jun 2009 22:18:33 +0200 bpython (0.9.2-1) unstable; urgency=low * New upstream version -- David Paleino Fri, 05 Jun 2009 21:15:59 +0200 bpython (0.9.1-1) unstable; urgency=low * New upstream version (Closes: #531598) * debian/copyright updated * debian/examples updated -- David Paleino Tue, 02 Jun 2009 21:35:37 +0200 bpython (0.8.0-1) unstable; urgency=low * New upstream version * debian/control: - fixed Section to "python" -- David Paleino Sat, 23 May 2009 14:41:07 +0200 bpython (0.7.1-1) unstable; urgency=low * Initial Debian release (Closes: #526740) -- David Paleino Sun, 03 May 2009 12:55:56 +0200 bpython (0.7.0-1~ppa1) hardy; urgency=low * Pushed man-pages and desktop-file upstream. * New upstream release. -- Jørgen Pedersen Tjernø Mon, 25 Aug 2008 21:19:57 +0200 bpython (0.6.3-1~ppa3) hardy; urgency=low * Bump, fixed some packaging issues. -- Jørgen Pedersen Tjernø Thu, 14 Aug 2008 00:32:25 +0200 bpython (0.6.3-1~ppa2) hardy; urgency=low * Fixed so installation of .desktop-file is performed. * Fixed bugs in bpython.desktop. * Cleaned up the control file / description. * Wrote a man-page for config and binary. * Made it install a sample rc-file. -- Jørgen Pedersen Tjernø Wed, 13 Aug 2008 23:37:25 +0200 bpython (0.6.3-1~ppa1) hardy; urgency=low * Initial release -- Jørgen Pedersen Tjernø Wed, 13 Aug 2008 16:12:36 +0200 debian/source/0000775000000000000000000000000012235440105010464 5ustar debian/source/format0000664000000000000000000000001412235440105011672 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212235440105010362 0ustar 7 debian/postinst0000664000000000000000000000242312235440105010773 0ustar #!/bin/sh # postinst script for bpython # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) # This is needed for upgrades from < 0.9.5.2-2, since we're being # installed in /usr/share/pyshared/ with python-support > 0.90.0 [ -n "$2" ] && \ dpkg --compare-versions $2 lt 0.9.5.2-2 && \ rm -rf /usr/share/python*/*-packages/bpython && \ rm -rf /usr/lib/python*/*-packages/bpython ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/bpython-gtk.install0000664000000000000000000000030712235440105013022 0ustar usr/share/pixmaps/ usr/lib/python*/*-packages/bpython/gtk_.py /usr/share/bpython/ data/bpython-gtk /usr/share/bpython/ debian/scripts/bpython-gtk /usr/bin/ debian/patches/0000775000000000000000000000000012235440105010613 5ustar debian/patches/01-fix_logo_path.patch0000664000000000000000000000133712235440105014700 0ustar From: David Paleino Subject: look for the icon in /usr/share/pixmaps/, rather than the python module directory Forwarded: not-needed --- bpython/gtk_.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- bpython.orig/bpython/gtk_.py +++ bpython/bpython/gtk_.py @@ -800,8 +800,7 @@ def main(args=None): # branding # fix icon to be distributed and loaded from the correct path - icon = gtk.gdk.pixbuf_new_from_file(os.path.join(os.path.dirname(__file__), - 'logo.png')) + icon = gtk.gdk.pixbuf_new_from_file("/usr/share/pixmaps/bpython.png") parent.set_title('bpython') parent.set_icon(icon) debian/patches/series0000664000000000000000000000007012235440105012025 0ustar 01-fix_logo_path.patch 02-fix_entrypoints_imports.patch debian/patches/02-fix_entrypoints_imports.patch0000664000000000000000000000062612235440105017100 0ustar From: David Paleino Subject: fix import, so that gtk_.py can be safely put outside PYTHONPATH Forwarded: not-needed --- data/bpython-gtk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- bpython.orig/data/bpython-gtk +++ bpython/data/bpython-gtk @@ -1,6 +1,6 @@ #!/usr/bin/env python import sys -from bpython.gtk_ import main +from gtk_ import main sys.exit(main()) debian/copyright0000664000000000000000000000560312235440105011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Source: Files: * Copyright: © 2008-2012, Bob Farrell License: MIT Files: bpython/importcompletion.py Copyright: © 2009, Andreas Stuehrk License: MIT Files: bpython/urwid.py Copyright: © 2010, Marien Zwart License: MIT Files: debian/* Copyright: © 2008, Jørgen Pedersen Tjernø © 2009-2012, David Paleino License: MIT Files: docs/* Copyright: ©, Jørgen Pedersen Tjernø License: MIT X-Comment: Message-ID: <49FD72A9.2090502@devsoft.no> On Sun, 03 May 2009 12:32:09 +0200, Jørgen P. Tjernø wrote: > David Paleino wrote: > > On Sun, 03 May 2009 10:52:57 +0200, Jørgen P. Tjernø wrote: > >> David Paleino wrote: > >> > But I saw that you wrote two manpages for upstream: under which > >> > license are those released? > >> > >> I hadn't really considered this, but I guess GNU FDL is a good > >> license; please mark them as being under this license. :-) > > > > Hrm. GFDL isn't a good choice for manpages IMHO. Moreover, it is > > considered non-free under the DFSG, if you mark any section invariant. > Ah, I wasn't aware of this. Thanks for informing me. > > > A better choice would be re-releasing everything the same license the > > package has, that is MIT/X11. > Yes, that'd be the simplest solution. > > > Do you agree with this? (I'll embed copy of this thread into > > debian/copyright) > Well, I use the three-clause BSD-license on other works, and it's fairly > similar to the MIT/X11 license, so you have a go-ahead from me to > distribute it with the MIT/X11 license. > Thanks for your feedback on this matter; I've never licensed / released > documentation separate from software. ;-) 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/bpython-urwid.lintian-overrides0000664000000000000000000000010612235440105015354 0ustar bpython-urwid: copyright-should-refer-to-common-license-file-for-gfdl debian/rules0000775000000000000000000000301212324201173010237 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 override_dh_auto_build: dh_auto_build for py in $(shell py3versions -d); do \ $$py setup.py build --force; \ done override_dh_auto_install: for py in $(shell py3versions -d); do \ $$py setup.py install --force --root=$(CURDIR)/debian/tmp --no-compile -O0 --install-layout=deb; \ done mv $(CURDIR)/debian/tmp/usr/bin/bpython \ $(CURDIR)/debian/tmp/usr/bin/bpython3 install -m644 -D $(CURDIR)/build/man/bpython.1 $(CURDIR)/debian/tmp/usr/share/man/man1/bpython3.1 dh_auto_install mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps/ find $(CURDIR)/debian/tmp -name "logo.png" -exec mv {} $(CURDIR)/debian/tmp/usr/share/pixmaps/bpython.png \; override_dh_install: dh_install dh_buildinfo mv $(CURDIR)/debian/bpython-gtk/usr/share/bpython/bpython-gtk \ $(CURDIR)/debian/bpython-gtk/usr/share/bpython/bpython-gtk.py mv $(CURDIR)/debian/bpython-urwid/usr/share/bpython/urwid.py \ $(CURDIR)/debian/bpython-urwid/usr/share/bpython/urwid_.py override_dh_python2: dh_python2 -pbpython -pbython-urwid -pbpython-gtk find $(CURDIR)/debian/bpython/ -name "gtk_.py*" -delete find $(CURDIR)/debian/bpython/ -name "urwid.py*" -delete override_dh_python3: dh_python3 -pbpython3 --shebang=/usr/bin/python3 override_dh_auto_clean: dh_auto_clean rm -rf bpython.egg-info build for py in $(shell py3versions -r); do \ $$py setup.py clean -a; \ done rm -rf bpython/__pycache__ %: dh $@ \ --with python2 \ --with python3 debian/bpython.lintian-overrides0000664000000000000000000000010012235440105014216 0ustar bpython: copyright-should-refer-to-common-license-file-for-gfdl debian/bpython.preinst0000664000000000000000000000200712235440105012254 0ustar #!/bin/sh # preinst script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install) ;; upgrade) old_version=$2 postrm=/var/lib/dpkg/info/bpython.postrm if [ -n "$old_version" ] && dpkg --compare-versions "$old_version" lt 0.10.1-1; then # see http://lists.debian.org/debian-devel/2011/09/msg00143.html sed -i "s/rm -rf/#rm -rf/" /var/lib/dpkg/info/bpython.postrm fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0