[Python-modules-commits] r4614 - in packages/pymills/trunk (11 files)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sat Feb 23 16:26:30 UTC 2008


    Date: Saturday, February 23, 2008 @ 16:26:29
  Author: morph-guest
Revision: 4614

[svn-inject] Applying Debian modifications to trunk

Added:
  packages/pymills/trunk/debian/
  packages/pymills/trunk/debian/changelog
  packages/pymills/trunk/debian/compat
  packages/pymills/trunk/debian/control
  packages/pymills/trunk/debian/copyright
  packages/pymills/trunk/debian/patches/
  packages/pymills/trunk/debian/patches/00list
  packages/pymills/trunk/debian/patches/10_fix_setuppy.dpatch
  packages/pymills/trunk/debian/patches/20_support_python2.4.dpatch
  packages/pymills/trunk/debian/rules
  packages/pymills/trunk/debian/watch


Property changes on: packages/pymills/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/pymills/trunk/debian/changelog
===================================================================
--- packages/pymills/trunk/debian/changelog	                        (rev 0)
+++ packages/pymills/trunk/debian/changelog	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,5 @@
+pymills (3.4-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #460672)
+
+ -- Sandro Tosi <matrixhasu at gmail.com>  Sat, 09 Feb 2008 18:16:06 +0100

Added: packages/pymills/trunk/debian/compat
===================================================================
--- packages/pymills/trunk/debian/compat	                        (rev 0)
+++ packages/pymills/trunk/debian/compat	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1 @@
+5

Added: packages/pymills/trunk/debian/control
===================================================================
--- packages/pymills/trunk/debian/control	                        (rev 0)
+++ packages/pymills/trunk/debian/control	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,33 @@
+Source: pymills
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Sandro Tosi <matrixhasu at gmail.com>
+Build-Depends: debhelper (>= 5), python-all, dpatch, python-setuptools
+Build-Depends-Indep: python-support (>= 0.6.4)
+Standards-Version: 3.7.3
+Homepage: http://trac.shortcircuit.net.au/pymills/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pymills/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/pymills/trunk/?op=log
+XS-Python-Version: all
+
+Package: python-pymills
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python
+XB-Python-Version: ${python:Versions}
+Description: Python library for distributed event-based programming
+ Pymills is a collection of works by James Mills containing general
+ purpose and special purpose libraries and modules for the Python
+ programming language. Most libraries and modules are based around a
+ core component of pymills, the "event" library.
+ .
+ Pymills provides a very easy to use and powerful event library
+ enabling asyncronous and event-driven applications and system to be
+ developed. Software systems and applications written with
+ pymills.event are broken up into components and can be distributed
+ across different nodes.
+ .
+ Pymills also contains an ann library which provides the building
+ blocks to build artificial neural networks in an
+ asyncronous/event-driven manner closely modelling biological neural
+ networks.

Added: packages/pymills/trunk/debian/copyright
===================================================================
--- packages/pymills/trunk/debian/copyright	                        (rev 0)
+++ packages/pymills/trunk/debian/copyright	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,36 @@
+This package was debianized by Sandro Tosi <matrixhasu at gmail.com> on
+Sat, 09 Feb 2008 18:16:06 +0100.
+
+It was downloaded from http://trac.shortcircuit.net.au/pymills/
+
+Upstream Author: 
+
+    James Mills <prologic at shortcircuit.net.au>
+
+Copyright: 
+
+    Copyright (C) 2004-2007 James Mills
+
+License:
+
+    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.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+    02110-1301, USA
+
+The Debian packaging is (C) 2008, Sandro Tosi <matrixhasu at gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+./pymills/ai/deduce.py
+   Copyright (C) 1995-2004  James Williams
+   License: GPL2 or later

Added: packages/pymills/trunk/debian/patches/00list
===================================================================
--- packages/pymills/trunk/debian/patches/00list	                        (rev 0)
+++ packages/pymills/trunk/debian/patches/00list	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,2 @@
+10_fix_setuppy
+20_support_python2.4

Added: packages/pymills/trunk/debian/patches/10_fix_setuppy.dpatch
===================================================================
--- packages/pymills/trunk/debian/patches/10_fix_setuppy.dpatch	                        (rev 0)
+++ packages/pymills/trunk/debian/patches/10_fix_setuppy.dpatch	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,87 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix_setuppy.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad pymills-3.3.3~/setup.py pymills-3.3.3/setup.py
+--- pymills-3.3.3~/setup.py	2008-02-10 13:30:22.127040792 +0100
++++ pymills-3.3.3/setup.py	2008-02-10 13:30:38.359965854 +0100
+@@ -3,22 +3,9 @@
+ import os
+ import re
+ 
+-name = os.path.basename(os.getcwd())
+-pkg = __import__(name)
+-
+-try:
+-	import ez_setup
+-	ez_setup.use_setuptools()
+-	print "Using ez_setup"
+-except ImportError:
+-	pass
++from setuptools import setup, find_packages
+ 
+-try:
+-	from setuptools import setup, find_packages
+-	print "Using setuptools"
+-except ImportError:
+-	print "Using distutils"
+-	from distutils.core import setup
++import pymills
+ 
+ # borrowed from pymills.utils
+ def getFiles(paths, tests=[os.path.isfile], pattern=".*", \
+@@ -51,30 +38,26 @@
+ 					list.append(file)
+ 	return list
+ 
+-def main():
+-	setup(
+-		name=name,
+-		version=pkg.__version__,
+-		description=pkg.__description__,
+-		long_description=pkg.__doc__,
+-		author=pkg.__author__,
+-		author_email=pkg.__author_email__,
+-		maintainer=pkg.__maintainer__,
+-		maintainer_email=pkg.__maintainer_email__,
+-		url=pkg.__url__,
+-		download_url=pkg.__download_url__,
+-		classifiers=pkg.__classifiers__,
+-		license=pkg.__license__,
+-		keywords=pkg.__keywords__,
+-		platforms=pkg.__platforms__,
++setup(
++		name='pymills',
++		version=pymills.__version__,
++		description=pymills.__description__,
++		long_description=pymills.__doc__,
++		author=pymills.__author__,
++		author_email=pymills.__author_email__,
++		maintainer=pymills.__maintainer__,
++		maintainer_email=pymills.__maintainer_email__,
++		url=pymills.__url__,
++		download_url=pymills.__download_url__,
++		classifiers=pymills.__classifiers__,
++		license=pymills.__license__,
++		keywords=pymills.__keywords__,
++		platforms=pymills.__platforms__,
+ 		packages=find_packages(),
+ 		scripts=getFiles(["scripts"]),
+-		install_requires=pkg.__install_requires__,
+-		setup_requires=pkg.__setup_requires__,
+-		extras_require=pkg.__extras_require__,
+-		entry_points=pkg.__entry_points__,
+-		package_data=pkg.__package_data__,
+-	)
+-
+-if __name__ == "__main__":
+-	main()
++		install_requires=pymills.__install_requires__,
++		setup_requires=pymills.__setup_requires__,
++		extras_require=pymills.__extras_require__,
++		entry_points=pymills.__entry_points__,
++		package_data=pymills.__package_data__,
++)


Property changes on: packages/pymills/trunk/debian/patches/10_fix_setuppy.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pymills/trunk/debian/patches/20_support_python2.4.dpatch
===================================================================
--- packages/pymills/trunk/debian/patches/20_support_python2.4.dpatch	                        (rev 0)
+++ packages/pymills/trunk/debian/patches/20_support_python2.4.dpatch	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,59 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_support_python2.4.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change to support both Python 2.4 and 2.5 sintaxes
+
+ at DPATCH@
+diff -urNad pymills-3.4~/pymills/emailtools.py pymills-3.4/pymills/emailtools.py
+--- pymills-3.4~/pymills/emailtools.py	2008-02-23 13:09:04.325743259 +0100
++++ pymills-3.4/pymills/emailtools.py	2008-02-23 13:09:04.765768333 +0100
+@@ -65,10 +65,14 @@
+ 				msg.set_payload(fp.read())
+ 				fp.close()
+ 				encoders.encode_base64(msg)
++				if filename is not None:
++					filename_tmp = filename
++				else:
++					filename_tmp = os.path.basename(file)
+ 				msg.add_header(
+ 					'Content-Disposition',
+ 					'attachment',
+-					filename=(filename if filename is not None else os.path.basename(file)))
++					filename_tmp)
+ 			else:
+ 				if mainType == 'text':
+ 					fp = open(file, "r")
+@@ -88,10 +92,14 @@
+ 					msg.set_payload(fp.read())
+ 					fp.close()
+ 					encoders.encode_base64(msg)
++					if filename is not None:
++						filename_tmp = filename
++					else:
++						filename_tmp = os.path.basename(file)
+ 					msg.add_header(
+ 						'Content-Disposition',
+ 						'attachment',
+-						filename=(filename if filename is not None else os.path.basename(file)))
++						filename_tmp)
+ 		else:
+ 			msg = MIMEText(text)
+ 
+diff -urNad pymills-3.4~/pymills/event.py pymills-3.4/pymills/event.py
+--- pymills-3.4~/pymills/event.py	2008-02-21 14:49:06.000000000 +0100
++++ pymills-3.4/pymills/event.py	2008-02-23 13:10:22.434194407 +0100
+@@ -539,9 +539,10 @@
+ 		if self.manager == self:
+ 			for event, channel, source in self._queue[:]:
+ 				try:
+-					super(Remote, self).send(event, channel, source)
+-				except UnhandledEvent:
+-					pass
++					try:
++						super(Remote, self).send(event, channel, source)
++					except UnhandledEvent:
++						pass
+ 				finally:
+ 					self._queue.remove((event, channel, source))
+ 


Property changes on: packages/pymills/trunk/debian/patches/20_support_python2.4.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pymills/trunk/debian/rules
===================================================================
--- packages/pymills/trunk/debian/rules	                        (rev 0)
+++ packages/pymills/trunk/debian/rules	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+PYVERS=$(shell pyversions -rv)
+
+build: patch build-stamp
+build-stamp: 
+	dh_testdir
+
+	# no need to loop over PYVERS
+	python setup.py build; 
+
+	# performing tests
+
+ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
+	set -e ;
+	for py in $(PYVERS); do  \
+	    echo " --- Python v$$py ---"; \
+	    PYTHONPATH=$(CURDIR)/build/lib/ python$$py pymills/tests/run.py ;\
+	done
+endif
+
+	touch $@
+
+clean: clean-patched unpatch
+clean-patched: patch-stamp
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	[ ! -d build ] || rm -rf build
+
+	# Add here commands to clean up after the build process.
+	python setup.py clean
+
+	find . -name '*\.py[co]' -delete
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_installdirs
+
+	# Add here commands to install the package into debian/python-pymills.
+	for py in $(PYVERS); do  \
+	    python$$py setup.py install --root=$(CURDIR)/debian/python-pymills ; \
+	done
+
+# Build architecture-dependent files here.
+binary-arch:
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_pysupport
+	dh_compress
+	dh_fixperms
+	# restore executability
+	chmod +x $(CURDIR)/debian/python-pymills/usr/share/python-support/python-pymills/pymills/ai/deduce.py
+	chmod +x $(CURDIR)/debian/python-pymills/usr/share/python-support/python-pymills/pymills/tests/run.py
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: packages/pymills/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/pymills/trunk/debian/watch
===================================================================
--- packages/pymills/trunk/debian/watch	                        (rev 0)
+++ packages/pymills/trunk/debian/watch	2008-02-23 16:26:29 UTC (rev 4614)
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://shortcircuit.net.au/~prologic/downloads/software/pymills-([.\d]*)\.tar\.gz




More information about the Python-modules-commits mailing list