# HG changeset patch # User Paul Boddie # Date 1244233988 -7200 # Node ID d78039f0071a51128139ae2c2a2f0fba515069a9 # Parent 448313b5b34e367f9b11b2bbe29daffbb2d25e9c Updated release information. Added packaging support for Ubuntu Hardy 8.04. diff -r 448313b5b34e -r d78039f0071a PKG-INFO --- a/PKG-INFO Fri Jun 05 21:23:25 2009 +0200 +++ b/PKG-INFO Fri Jun 05 22:33:08 2009 +0200 @@ -1,19 +1,19 @@ Metadata-Version: 1.1 Name: pprocess -Version: 0.4.1 +Version: 0.5 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie Maintainer-email: paul at boddie org uk Home-page: http://www.boddie.org.uk/python/pprocess.html -Download-url: http://www.boddie.org.uk/python/downloads/pprocess-0.4.1.tar.gz +Download-url: http://www.boddie.org.uk/python/downloads/pprocess-0.5.tar.gz Summary: Elementary parallel programming for Python License: LGPL (version 3 or later) Description: The pprocess module provides elementary support for parallel programming in Python using a fork-based process creation model in conjunction with a channel-based communications model implemented - using socketpair and poll. -Keywords: parallel pprocess fork socketpair socket channel map pmap Queue daemon + using socketpair (or pipes) and poll. +Keywords: parallel pprocess fork socketpair pipe socket channel map pmap Queue daemon Platform: Any Classifier: Development Status :: 3 - Alpha Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) diff -r 448313b5b34e -r d78039f0071a README.txt --- a/README.txt Fri Jun 05 21:23:25 2009 +0200 +++ b/README.txt Fri Jun 05 22:33:08 2009 +0200 @@ -162,17 +162,20 @@ available only on "UNIX"; it has only been tested repeatedly on a GNU/Linux system, and occasionally on systems running OpenSolaris. -New in pprocess 0.4.1 (Changes since pprocess 0.4) --------------------------------------------------- +New in pprocess 0.5 (Changes since pprocess 0.4) +------------------------------------------------ - * Fixed the get_number_of_cores function to work with /proc/cpuinfo where - the "physical id" field is missing. + * Added proper support in the Exchange class for continuous communications + between processes, providing examples: simple_continuous_queue.py and the + concurrency-sig directory. * Changed the Map class to permit incremental access to received results from completed parts of the sequence of inputs, also adding an iteration interface. * Added an example, simple_pmap_iter.py, to demonstrate iteration over maps. - * Added proper support in the Exchange class for continuous communications - between processes. + * Fixed the get_number_of_cores function to work with /proc/cpuinfo where + the "physical id" field is missing. + * Tidied the Exchange class, adding distinct status methods: unfinished and + busy. New in pprocess 0.4 (Changes since pprocess 0.3.1) -------------------------------------------------- diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-feisty/python-pprocess/debian/changelog --- a/packages/ubuntu-feisty/python-pprocess/debian/changelog Fri Jun 05 21:23:25 2009 +0200 +++ b/packages/ubuntu-feisty/python-pprocess/debian/changelog Fri Jun 05 22:33:08 2009 +0200 @@ -1,14 +1,20 @@ -pprocess (0.4.1-0ubuntu1) feisty; urgency=low +pprocess (0.5-0ubuntu1) feisty; urgency=low - * Fixed the get_number_of_cores function to work with - /proc/cpuinfo where the "physical id" field is missing. + * Added proper support in the Exchange class for + continuous communications between processes, providing + examples: simple_continuous_queue.py and the + concurrency-sig directory. * Changed the Map class to permit incremental access to received results from completed parts of the sequence of inputs, also adding an iteration interface. * Added an example, simple_pmap_iter.py, to demonstrate iteration over maps. + * Fixed the get_number_of_cores function to work with + /proc/cpuinfo where the "physical id" field is missing. + * Tidied the Exchange class, adding distinct status + methods: unfinished and busy. - -- Paul Boddie Thu, 21 May 2009 19:13:47 +0200 + -- Paul Boddie Fri, 05 Jun 2009 22:30:21 +0200 pprocess (0.4-0ubuntu1) feisty; urgency=low diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/changelog Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,135 @@ +pprocess (0.5-0ubuntu1) hardy; urgency=low + + * Added proper support in the Exchange class for + continuous communications between processes, providing + examples: simple_continuous_queue.py and the + concurrency-sig directory. + * Changed the Map class to permit incremental access to + received results from completed parts of the sequence of + inputs, also adding an iteration interface. + * Added an example, simple_pmap_iter.py, to demonstrate + iteration over maps. + * Fixed the get_number_of_cores function to work with + /proc/cpuinfo where the "physical id" field is missing. + * Tidied the Exchange class, adding distinct status + methods: unfinished and busy. + + -- Paul Boddie Fri, 05 Jun 2009 22:30:21 +0200 + +pprocess (0.4-0ubuntu1) feisty; urgency=low + + * Added support for persistent/background processes. + * Added a utility function to detect and return the number + of processor cores available. + * Added missing documentation stylesheet. + * Added support for Solaris using pipes instead of socket + pairs, since the latter do not apparently work properly + with poll on Solaris. + + -- Paul Boddie Fri, 1 Aug 2008 20:03:18 +0200 + +pprocess (0.3.1-0ubuntu1) feisty; urgency=low + + * Moved the reference material out of the module docstring + and into a separate document, converting it to XHTML in + the process. + * Fixed the project name in the setup script. + + -- Paul Boddie Sat, 24 Nov 2007 01:07:39 +0100 + +pprocess (0.3-0ubuntu1) feisty; urgency=low + + * Added managed callables: wrappers around callables which + cause them to be automatically managed by the exchange + from which they were acquired. + * Added MakeParallel: a wrapper instantiated around a + normal function which sends the result of that function + over the supplied channel when invoked. + * Added MakeReusable: a wrapper like MakeParallel which + can be used in conjunction with the newly-added reuse + capability of the Exchange class in order to reuse + processes and channels. + * Added a Map class which attempts to emulate the built-in + map function, along with a pmap function using this + class. + * Added a Queue class which provides a simpler + iterator-style interface to data produced by created + processes. + * Added a create method to the Exchange class and an exit + convenience function to the module. + * Changed the Exchange implementation to not block when + attempting to start new processes beyond the process + limit: such requests are queued and performed as running + processes are completed. This permits programs using + the start method to proceed to consumption of results + more quickly. + * Extended and updated the examples. Added a tutorial. + * Added Ubuntu Feisty (7.04) package support. + + -- Paul Boddie Sun, 16 Sep 2007 20:10:25 +0200 + +parallel-pprocess (0.2.5-0ubuntu1) hoary; urgency=low + + * Added a start method to the Exchange class for more + convenient creation of processes. + * Relicensed under the LGPL (version 3 or later) - this + also fixes the contradictory situation where the GPL was + stated in the pprocess module (which was not, in fact, + the intention) and the LGPL was stated in the + documentation. + + -- Paul Boddie Sun, 8 Jul 2007 00:08:39 +0200 + +parallel-pprocess (0.2.4-0ubuntu1) hoary; urgency=low + + * Set buffer sizes to zero for the file object wrappers + around sockets: this may prevent deadlock issues. + + -- Paul Boddie Thu, 29 Mar 2007 01:50:13 +0200 + +parallel-pprocess (0.2.3-0ubuntu1) hoary; urgency=low + + * Added convenient message exchanges, offering methods + handling common situations at the cost of having to + define a subclass of Exchange. + * Added a simple example of performing a parallel + computation. + * Improved the PyGmy raytracer example to use the newly + added functionality. + + -- Paul Boddie Sun, 14 Jan 2007 23:50:54 +0100 + +parallel-pprocess (0.2.2-0ubuntu1) hoary; urgency=low + + * Changed the status testing in the Exchange class, + potentially fixing the premature closure of channels + before all data was read. + * Fixed the PyGmy raytracer example's process accounting + by relying on the possibly more reliable Exchange + behaviour, whilst also preventing erroneous creation of + "out of bounds" processes. + * Added a removed attribute on the Exchange to record + which channels were removed in the last call to the + ready method. + + -- Paul Boddie Sun, 19 Nov 2006 20:35:25 +0100 + +parallel-pprocess (0.2.1-0ubuntu1) hoary; urgency=low + + * Added a PyGmy raytracer example. + * Updated copyright and licensing details (FSF address, + additional works). + + -- Paul Boddie Sun, 1 Oct 2006 17:46:17 +0200 + +parallel-pprocess (0.2-0ubuntu1) hoary; urgency=low + + * Changed the parallel module to pprocess. + + -- Paul Boddie Tue, 11 Oct 2005 18:50:24 +0200 + +parallel-module (0.1-0ubuntu1) hoary; urgency=low + + * New upstream release. + + -- Paul Boddie Wed, 28 Sep 2005 19:18:47 +0200 diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/compat Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,1 @@ +5 diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/control Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,19 @@ +Source: pprocess +Section: python +Priority: optional +Maintainer: Paul Boddie +Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), python-epydoc (>= 2.1-6ubuntu1) +XS-Python-Version: all +Standards-Version: 3.7.2.1 + +Package: python-pprocess +Architecture: all +Depends: ${python:Depends} +Conflicts: python2.4-parallel-pprocess (<< 0.3-0ubuntu1) +Replaces: python2.4-parallel-pprocess (<< 0.3-0ubuntu1) +XB-Python-Version: ${python:Versions} +Description: Elementary parallel programming for Python + The pprocess module provides elementary support for parallel + programming in Python using a fork-based process creation model in + conjunction with a channel-based communications model implemented + using socketpair and poll. diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/copyright Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,60 @@ +Package creator: + + Paul Boddie + +The origin of the package is: + + http://www.python.org/pypi/parallel + +Package author: + + Paul Boddie + +Copyright: + +Licence Agreement for parallel/pprocess +--------------------------------------- + +Copyright (C) 2005, 2006, 2007, 2008, 2009 Paul Boddie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the Free +Software Foundation; either version 3 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 Lesser General Public License for more +details. + +You should have received a copy of the GNU Lesser General Public License along +with this program. If not, see . + +Licence Agreement for PyGmy +--------------------------- + +Copyright (C) 2005 Dave Griffiths +Copyright (C) 2006 Paul Boddie + +This software 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 software 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. + +You should have received a copy of the GNU General Public +License along with this library; see the file LICENCE.txt +If not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Notes on the Inclusion of PyGmy +------------------------------- + +PyGmy is included in this distribution of parallel/pprocess as an independent +demonstration of the pprocess library's facilities. This distribution is thus +considered as an aggregation of the two works, with separate licences +governing each work. diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/docs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/docs Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,5 @@ +README.txt +apidocs +docs +examples +tests diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hardy/python-pprocess/debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-hardy/python-pprocess/debian/rules Fri Jun 05 22:33:08 2009 +0200 @@ -0,0 +1,66 @@ +#!/usr/bin/make -f +# A debian/rules file using python-central. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export DH_COMPAT=5 + +PYVERS=$(shell pyversions -vr) + +build: build-stamp + +build-stamp: $(PYVERS:%=build-python%) build-python-scripts + touch $@ + +build-python%: + python$* setup.py build_py + touch $@ + +build-python-scripts: + #python setup.py build_scripts + #touch $@ + +clean: + dh_testdir + dh_testroot + rm -f *-stamp + rm -rf build + find . -name '*.py[co]' | xargs rm -f + dh_clean + +install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts + # Script fixing would appear here. + +install-prereq: + dh_testdir + dh_testroot + dh_clean -k + +install-python%: + python$* setup.py install_lib --install-dir $(CURDIR)/debian/python-pprocess/usr/lib/python$*/site-packages + +install-python-scripts: + #python setup.py install_scripts --install-dir $(CURDIR)/debian/python-pprocess/usr/bin + +# Build architecture-independent files here. + +binary-indep: install + tools/apidocs.sh + dh_testdir -i + dh_testroot -i + dh_pycentral -i + dh_installdocs -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. + +binary-arch: + # Empty rule for this package. + +binary: binary-indep binary-arch +.PHONY: build clean binary-arch binary-indep binary install diff -r 448313b5b34e -r d78039f0071a packages/ubuntu-hoary/python2.4-parallel-pprocess/debian/changelog --- a/packages/ubuntu-hoary/python2.4-parallel-pprocess/debian/changelog Fri Jun 05 21:23:25 2009 +0200 +++ b/packages/ubuntu-hoary/python2.4-parallel-pprocess/debian/changelog Fri Jun 05 22:33:08 2009 +0200 @@ -1,14 +1,20 @@ -parallel-pprocess (0.4.1-0ubuntu1) hoary; urgency=low +parallel-pprocess (0.5-0ubuntu1) hoary; urgency=low - * Fixed the get_number_of_cores function to work with - /proc/cpuinfo where the "physical id" field is missing. + * Added proper support in the Exchange class for + continuous communications between processes, providing + examples: simple_continuous_queue.py and the + concurrency-sig directory. * Changed the Map class to permit incremental access to received results from completed parts of the sequence of inputs, also adding an iteration interface. * Added an example, simple_pmap_iter.py, to demonstrate iteration over maps. + * Fixed the get_number_of_cores function to work with + /proc/cpuinfo where the "physical id" field is missing. + * Tidied the Exchange class, adding distinct status + methods: unfinished and busy. - -- Paul Boddie Thu, 21 May 2009 19:13:32 +0200 + -- Paul Boddie Fri, 05 Jun 2009 22:28:53 +0200 parallel-pprocess (0.4-0ubuntu1) hoary; urgency=low diff -r 448313b5b34e -r d78039f0071a pprocess.py --- a/pprocess.py Fri Jun 05 21:23:25 2009 +0200 +++ b/pprocess.py Fri Jun 05 22:33:08 2009 +0200 @@ -20,7 +20,7 @@ with this program. If not, see . """ -__version__ = "0.4.1" +__version__ = "0.5" import os import sys diff -r 448313b5b34e -r d78039f0071a setup.py --- a/setup.py Fri Jun 05 21:23:25 2009 +0200 +++ b/setup.py Fri Jun 05 22:33:08 2009 +0200 @@ -8,6 +8,6 @@ author = "Paul Boddie", author_email = "paul@boddie.org.uk", url = "http://www.boddie.org.uk/python/pprocess.html", - version = "0.4.1", + version = "0.5", py_modules = ["pprocess"] )