debian/0000755000000000000000000000000011677467530007206 5ustar debian/changelog0000644000000000000000000001512311677467530011062 0ustar python-pmw (1.3.2-6build1) precise; urgency=low * Rebuild to drop python2.6 dependencies. -- Matthias Klose Sat, 31 Dec 2011 02:11:36 +0000 python-pmw (1.3.2-6) unstable; urgency=low * Changed -doc package to priority extra * Convert to dh_python2 (Closes: #617025) * Upgrade to Standards-Version 3.9.2 (no changes) -- Carlo Segre Tue, 21 Jun 2011 10:08:27 -0500 python-pmw (1.3.2-5) unstable; urgency=low * Added ${misc:Depends} to binary dependencies * Upgrade to Standards-Version 3.8.4 (no changes) * Switch to dpkg-source 3.0 (quilt) format -- Carlo Segre Mon, 12 Apr 2010 14:21:53 -0500 python-pmw (1.3.2-4) unstable; urgency=low [ Carlo Segre ] * Upgrade to compatibility level 7 and Standards-version 3.8.3 (no changes necessary) * Patches below accepted, thanks Christoph. [ Christoph Berg ] * Do not try to delete commands in python versions >= 2.5.4. (Closes: #561145) -- Carlo Segre Sun, 20 Dec 2009 14:20:45 -0600 python-pmw (1.3.2-3) unstable; urgency=low * Don't fail build if usr/lib is already removed (Closes: #472023) * Upgrade to Standards-Version 3.7.3 (no changes) * Remove boilerplate in README.Debian * Change doc-base section to Programming/Python -- Carlo Segre Sat, 22 Mar 2008 00:40:00 -0500 python-pmw (1.3.2-2) unstable; urgency=low * Remove empty /usr/lib directory after running pycentral. -- Carlo Segre Wed, 21 Nov 2007 00:13:03 -0600 python-pmw (1.3.2-1) unstable; urgency=low * New upstream release -- Carlo Segre Wed, 26 Sep 2007 17:15:16 -0500 python-pmw (1.3.1-1) unstable; urgency=low * New upstream release -- Carlo Segre Sat, 18 Aug 2007 17:37:53 -0500 python-pmw (1.2-6) unstable; urgency=low * New Maintainer (Closes: #395871). * Upgrade watch file to version 3. -- Carlo Segre Sat, 30 Dec 2006 16:05:33 -0600 python-pmw (1.2-5) unstable; urgency=low * Orphan the package. -- Matthias Klose Sat, 28 Oct 2006 12:13:17 +0200 python-pmw (1.2-4) unstable; urgency=low * Convert to updated Python policy. Closes: #373338. * Supports more than one python version. Closes: #216728. -- Matthias Klose Fri, 16 Jun 2006 21:22:37 +0000 python-pmw (1.2-3) unstable; urgency=low * Add watch file. -- Matthias Klose Thu, 11 Nov 2004 07:48:35 +0100 python-pmw (1.2-2) unstable; urgency=low * Update to new standards version 3.6.1 (no changes). -- Matthias Klose Wed, 15 Oct 2003 22:12:04 +0200 python-pmw (1.2-1) unstable; urgency=low * New maintainer (closes: #206861). -- Matthias Klose Wed, 24 Sep 2003 08:32:10 +0200 python-pmw (1.2-0.1) unstable; urgency=low * NMU * New upstream version (closes: #206848). * Set maintainer to Debian QA Group -- Matthias Klose Thu, 28 Aug 2003 20:16:41 +0200 python-pmw (0.8.5-6.2) unstable; urgency=low * NMU. * Standards-version is 3.6.0: - Move debhelper from build-depends-indep to build-depends. * Use dh_python, require debhelper 4.1.62. * Move to section python. * Rebuild with python 2.3 (closes: #205751, #205272, #205544). -- Josselin Mouette Tue, 19 Aug 2003 12:33:10 +0200 python-pmw (0.8.5-6.1) unstable; urgency=low * Non Maintainer Upload * Switched to Python-2.2 (closes: #158930) -- Michael Banck Sun, 1 Sep 2002 13:32:28 +0200 python-pmw (0.8.5-6) unstable; urgency=low * Stopped compiling entire site-packages tree (closes: #128576) -- Harry Henry Gebel Thu, 10 Jan 2002 09:18:07 -0500 python-pmw (0.8.5-5) unstable; urgency=low * Moved python-pmw-doc to section doc * Changed form of depends to conform to policy (closes: #118440) -- Harry Henry Gebel Mon, 7 Jan 2002 04:01:42 -0500 python-pmw (0.8.5-4) unstable; urgency=low * Changed priority to optional in accordance with override file -- Harry Henry Gebel Mon, 5 Nov 2001 20:47:07 -0500 python-pmw (0.8.5-3) unstable; urgency=low * Updated to conform to new python policy * Removed python2 package * Upgraded blt from a suggestion to a recommendation * Updated to conform to new python policy (closes: #118191) * Updated debhelper build-dep to version 3.0.0 * Changed build-depends to build-depends-indep * Changed policy to 3.5.6 -- Harry Henry Gebel Sun, 4 Nov 2001 21:41:00 -0500 python-pmw (0.8.5-2) unstable; urgency=low * Adopted package (closes: #90055) * Added python2 package * Updated out of date (1997) copyright and README.debian files * Removed unneccesary debian/dirs -- Harry Henry Gebel Thu, 24 May 2001 05:27:46 -0400 python-pmw (0.8.5-1) unstable; urgency=low * The maintainer has orphaned this package (see bug #90055); set maintainer to Debian QA Group. * New upstream version (closes: #61577). * We already use debhelper, so cleaned up various things that debhelper can do for us. * Updated to policy version 3.5.2: - FHS updates (closes: #91615). - Build dependencies. - Installed changes.html as the upstream changelog and used dh_installchangelogs to convert it to text. -- Colin Watson Thu, 29 Mar 2001 00:04:28 +0100 python-pmw (0.8.1-1) unstable; urgency=low * new upstream version. -- Frederic Lepied Tue, 17 Aug 1999 21:58:58 +0200 python-pmw (0.8-1) unstable; urgency=low * new upstream release. * fixed bug #28000. -- Frederic Lepied Sat, 19 Dec 1998 18:30:09 +0100 python-pmw (0.7-1) unstable; urgency=low * new upstream version. -- Frederic Lepied Wed, 3 Jun 1998 18:48:54 +0200 python-pmw (0.6.2-0.1) frozen unstable; urgency=low * non maintainer release. * a python-pmw 0.6.1 version was uploaded by Gregor Hoffleit to hamm before the code freeze, but disappeared somehow ... * install python files in path, where python finds them (Fixes #20200). * build binary independent package. * use debhelper. * don't include byte compiled files in deb file. * fixed examples/All.py to find python files in /usr/doc/python-pmw/examples. * look for new upstream version in the slink release. -- Matthias Klose Mon, 4 May 1998 14:59:32 +0200 python-pmw (0.5.1-1) unstable; urgency=low * Initial Release. -- Frederic Lepied Mon, 24 Nov 1997 20:54:19 +0100 debian/rules0000755000000000000000000000433411600130010010230 0ustar #! /usr/bin/make -f # Made with the aid of debmake, by Christoph Lameter, # based on the sample debian/rules file for GNU hello by Ian Jackson. packagedoc=python-pmw-doc source_dir=$(CURDIR)/src/Pmw package_dir=./debian/python-pmw pdoc=./debian/python-pmw-doc v=Pmw_1_3 PYVERS=$(shell pyversions -vr) build: build-arch build-indep build-arch: build-indep: config build-stamp build-stamp: build-all-pythons touch $@ build-all-pythons: $(PYVERS:%=build-python%) touch $@ # Build Python extensions for each version of Python # Since the tarball is not in standard distutils format, we need to # execute setup.py from the src subdirectory. build-python%: dh_testdir python$* setup.py build touch $@ clean: dh_testdir -rm -f config ./setup.py ./Pmw -rm -rf build build-stamp build-all-pythons build-python* dh_clean -i config: # Make links to conventional locations for distutils in dist root # otherwise build will not work properly. ln -s src/Pmw ./Pmw ln -s src/setup.py ./setup.py touch $@ install: build-indep install-prereq install-all-pythons install-docs install-prereq: dh_testdir dh_testroot dh_prep dh_installdirs install-all-pythons: $(PYVERS:%=install-python%) install-python%: python$* setup.py install --install-layout=deb \ --prefix=$(CURDIR)/debian/python-pmw/usr -find $(CURDIR)/debian/ -name '*.py[co]' | xargs rm -f install-docs: mkdir -p $(pdoc)/usr/share/doc/$(packagedoc)/examples install -m 644 $(source_dir)/$(v)/demos/* \ $(pdoc)/usr/share/doc/$(packagedoc)/examples/ cp -pr $(source_dir)/$(v)/doc \ $(pdoc)/usr/share/doc/$(packagedoc)/html chmod a+x $(pdoc)/usr/share/doc/$(packagedoc)/examples/All.py binary-indep: build-indep install dh_testdir dh_testroot dh_installdirs -Ai dh_installdocs -Ai $(source_dir)/README dh_installchangelogs -i $(source_dir)/$(v)/doc/changes.html dh_fixperms -i dh_compress -AiX.py dh_python2 -i --package=python-pmw dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: # There are no architecture-dependent files to be uploaded # generated by this package. If there were any they would be # made here. # Below here is fairly generic really binary: binary-indep binary-arch .PHONY: binary binary-arch binary-indep clean build debian/README.source0000644000000000000000000000353511313502562011351 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches break fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. debian/README.Debian0000644000000000000000000000026711313502562011232 0ustar Python Mega Widgets for DEBIAN ------------------------------ Pmw is configured to use BLT if it's installed. Harry Henry Gebel Thu, 24 May 2001 03:52:26 -0400 debian/control0000644000000000000000000000215711600130556010573 0ustar Source: python-pmw Section: python Priority: optional Maintainer: Carlo Segre Build-Depends: debhelper (>= 7) Build-Depends-Indep: python-all (>= 2.6.6-3) X-Python-Version: >= 2.4 Standards-Version: 3.9.2 Package: python-pmw Architecture: all Depends: python-tk (>= 2.4.3), ${python:Depends}, ${misc:Depends} Recommends: blt Suggests: python-pmw-doc Description: Pmw -- Python MegaWidgets Pmw is a framework for building high-level compound widgets in Python using the Tkinter interface to the Tk graphics library. It consists of a set of base classes and a library of flexible and extensible megawidgets built on these base classes. . This package provides the pmw modules Package: python-pmw-doc Architecture: all Depends: ${misc:Depends} Section: doc Priority: extra Description: Pmw -- Python MegaWidgets Pmw is a framework for building high-level compound widgets in Python using the Tkinter interface to the Tk graphics library. It consists of a set of base classes and a library of flexible and extensible megawidgets built on these base classes. . This package provides the pmw documentation debian/copyright0000644000000000000000000000241411313502562011120 0ustar This package was debianized by Frederic Lepied on Mon, 24 Nov 1997 20:54:19 +0100. It was downloaded from http://pmw.sourceforge.net/ Copyright: Copyright (c) 1997, 1998, 1999, 2000, 2001 Telstra Corporation Limited, Australia (ACN 051 775 556) 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/source/0000755000000000000000000000000011360671320010465 5ustar debian/source/format0000644000000000000000000000001411360671320011673 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010211313502562010206 0ustar version=3 http://sf.net/pmw/Pmw.([\d\.]*)\.tar\.gz debian uupdate debian/patches/0000755000000000000000000000000011600041277010613 5ustar debian/patches/PmwOptionMenu.py-deletecommand0000644000000000000000000000375611313502562016560 0ustar Source: http://github.com/nanotube/pmw_fixes/commit/5e6dcbdaef2bb6c40037b922dd0efa081f1575ab (Daniel Folkinshteyn) fix bug in OptionMenu.setitems, introduced with the fixing of this python bug: http://bugs.python.org/issue1342811 versions of python 2.5.4 and newer now automatically delete commands when items are deleted however, that causes error if the command is deleted manually beforehand. old versions, on the contrary, require manual command deletion to free up the objects. so we put in a python version check to see if we need to manually delete commands. fixes the Pmw bug referred to here: http://sourceforge.net/forum/forum.php?thread_id=3283195&forum_id=33675 and here: http://sourceforge.net/tracker/?func=detail&aid=2795731&group_id=10743&ati d=110743 --- a/src/Pmw/Pmw_1_3/lib/PmwOptionMenu.py +++ b/src/Pmw/Pmw_1_3/lib/PmwOptionMenu.py @@ -1,6 +1,7 @@ import types import Tkinter import Pmw +import sys class OptionMenu(Pmw.MegaWidget): @@ -59,11 +60,17 @@ class OptionMenu(Pmw.MegaWidget): def setitems(self, items, index = None): - # Clean up old items and callback commands. - for oldIndex in range(len(self._itemList)): - tclCommandName = str(self._menu.entrycget(oldIndex, 'command')) - if tclCommandName != '': - self._menu.deletecommand(tclCommandName) + # python version check + # python versions >= 2.5.4 automatically clean commands + # and manually cleaning them causes errors when deleting items + + if sys.version_info[0] * 100 + sys.version_info[1] * 10 + \ + sys.version_info[2] < 254: + # Clean up old items and callback commands. + for oldIndex in range(len(self._itemList)): + tclCommandName = str(self._menu.entrycget(oldIndex, 'command')) + if tclCommandName != '': + self._menu.deletecommand(tclCommandName) self._menu.delete(0, 'end') self._itemList = list(items) debian/patches/series0000644000000000000000000000005411600041101012011 0ustar fix-setup.py PmwOptionMenu.py-deletecommand debian/patches/fix-setup.py0000644000000000000000000000072711600041277013117 0ustar --- a/src/setup.py +++ b/src/setup.py @@ -15,12 +15,8 @@ packages=['Pmw', 'Pmw.Pmw_1_3', 'Pmw.Pmw_1_3.lib',], +# Remove everything but the libraries from the distribution package_data={'Pmw': ['Pmw_1_3/lib/Pmw.def', - 'Pmw_1_3/doc/*', - 'Pmw_1_3/contrib/*', - 'Pmw_1_3/demos/*', - 'Pmw_1_3/tests/*', - 'Pmw_1_3/bin/*', ] }, debian/compat0000644000000000000000000000000211535076753010400 0ustar 7 debian/python-pmw-doc.doc-base0000644000000000000000000000073611313502562013456 0ustar Document: python-pmw-doc Title: Python MegaWidgets Author: Greg Mc Farlane Abstract: Pmw is a framework for building high-level compound widgets in Python using the Tkinter interface to the Tk graphics library. It consists of a set of base classes and a library of flexible and extensible megawidgets built on these base classes. Section: Programming/Python Format: html Index: /usr/share/doc/python-pmw-doc/html/index.html Files: /usr/share/doc/python-pmw-doc/html/*.html