[Python-modules-commits] r1588 - in /packages/python-formencode/trunk: current/ debian/ debian/changelog debian/compat debian/control debian/copyright debian/patches/ debian/patches/00list debian/patches/DPATCH debian/patches/email_validator.dpatch debian/rules

kobold at users.alioth.debian.org kobold at users.alioth.debian.org
Tue Dec 5 14:23:51 CET 2006


Author: kobold
Date: Tue Dec  5 14:23:51 2006
New Revision: 1588

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=1588
Log:
Load newtrunk into packages/python-formencode/trunk.

Added:
    packages/python-formencode/trunk/debian/
    packages/python-formencode/trunk/debian/changelog
    packages/python-formencode/trunk/debian/compat
    packages/python-formencode/trunk/debian/control
    packages/python-formencode/trunk/debian/copyright
    packages/python-formencode/trunk/debian/patches/
    packages/python-formencode/trunk/debian/patches/00list
    packages/python-formencode/trunk/debian/patches/DPATCH
    packages/python-formencode/trunk/debian/patches/email_validator.dpatch   (with props)
    packages/python-formencode/trunk/debian/rules   (with props)
Removed:
    packages/python-formencode/trunk/current/

Added: packages/python-formencode/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/changelog?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/changelog (added)
+++ packages/python-formencode/trunk/debian/changelog Tue Dec  5 14:23:51 2006
@@ -1,0 +1,93 @@
+python-formencode (0.5.1-4) unstable; urgency=low
+
+  * debian/patches/email_validator.dpatch: exception not catched, applied
+    patch from Arnaud Fontaine <arnaud at andesi.org>, applied upstream in r1828.
+    (Closes: #378459)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Wed, 19 Jul 2006 20:53:08 +0200
+
+python-formencode (0.5.1-3) unstable; urgency=low
+
+  * debian/control: depends on python-dns. (Closes: #377025)
+  * debian/control: removed "[dummy package]" from short description.
+    (Closes: #377031)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 14 Jul 2006 11:55:44 +0200
+
+python-formencode (0.5.1-2) unstable; urgency=low
+
+  * debian/control: conflicts/replaces for both python2.[34]-formencode.
+    (Closes: #373917)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 16 Jun 2006 12:49:08 +0200
+
+python-formencode (0.5.1-1) unstable; urgency=low
+
+  * New upstream release. (Closes: #372616)
+  * Python policy transition. (Closes: #373534)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Thu, 15 Jun 2006 18:44:05 +0200
+
+python-formencode (0.4-6) unstable; urgency=low
+
+  * debian/rules, setup.py: modified to use python-support to
+    install the egg support, thanks to Gustavo Noronha Silva.
+    (Closes: #365957)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 30 May 2006 21:46:38 +0200
+
+python-formencode (0.4-5) unstable; urgency=low
+
+  * Removed sqlformgen.py and formgen.py from the python2.3 package,
+    that code is 2.4-only and experimental. (Closes: #360550)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri,  7 Apr 2006 08:11:33 +0000
+
+python-formencode (0.4-4) unstable; urgency=low
+
+  * First official release for debian. (Closes: #338382, #354916)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 17 Jan 2006 17:06:31 +0000
+
+python-formencode (0.4-3) unstable; urgency=low
+
+  * The future of python is .egg deployment, so putting back the .egg, you
+    can follow all the details in the mailing lists.
+
+ -- Robert J. Tanner <tanner at real-time.com>  Mon, 21 Nov 2005 18:51:35 -0600
+
+python-formencode (0.4-2) unstable; urgency=low
+
+  * Fixed grave python-policy violations. Thanks Matthias
+
+ -- Robert J. Tanner <tanner at real-time.com>  Mon, 21 Nov 2005 13:55:23 -0600
+
+python-formencode (0.4-1) unstable; urgency=low
+
+  * New upstream release
+  * http://formencode.org/news.html
+  * Patch for Bug #1362549 listed on SourceForge
+  * Patch for Bug #1362566 listed on SourceForge
+
+ -- Robert J. Tanner <tanner at real-time.com>  Sun, 20 Nov 2005 23:36:25 -0600
+
+python-formencode (0.3-0.1) unstable; urgency=low
+
+  * New upstream release
+  * Patch for improper path for testsuite
+
+ -- Robert J. Tanner <tanner at real-time.com>  Sat, 12 Nov 2005 11:48:11 -0600
+
+python-formencode (0.2.3dev-0) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert J. Tanner <tanner at real-time.com>  Sat, 12 Nov 2005 11:48:11 -0600
+
+
+python-formencode (0.2.2-0) unstable; urgency=low
+
+  * Initial Release
+  * ITP: python-formencode (Closes: #338382)
+
+ -- Robert J. Tanner <tanner at real-time.com>  Wed,  9 Nov 2005 17:26:09 -0600

Added: packages/python-formencode/trunk/debian/compat
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/compat?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/compat (added)
+++ packages/python-formencode/trunk/debian/compat Tue Dec  5 14:23:51 2006
@@ -1,0 +1,1 @@
+5

Added: packages/python-formencode/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/control?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/control (added)
+++ packages/python-formencode/trunk/debian/control Tue Dec  5 14:23:51 2006
@@ -1,0 +1,22 @@
+Source: python-formencode
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 5.0.37.1), dpatch
+Build-Depends-Indep: python-all-dev, python (>= 2.3.5-7), python-central (>= 0.4.10), python-setuptools (>= 0.6a9)
+Maintainer: Fabio Tranchitella <kobold at debian.org>
+Uploaders: Robert J. Tanner <tanner at real-time.com>
+Standards-Version: 3.7.2
+XS-Python-Version: all
+
+Package: python-formencode
+Architecture: all
+Section: python
+Depends: ${python:Depends}, python-dns
+Replaces: python2.3-formencode (<< 0.5.1), python2.4-formencode (<< 0.5.1)
+Conflicts: python2.3-formencode (<< 0.5.1), python2.4-formencode (<< 0.5.1)
+XB-Python-Version: ${python:Versions}
+Description: validation and form generation python package
+ FormEncode is a validation and form generation package. The validation can 
+ be used separately from the form generation. The validation works on compound 
+ data structures, with all parts being nestable. It is separate from HTTP or 
+ any other input mechanism.

Added: packages/python-formencode/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/copyright?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/copyright (added)
+++ packages/python-formencode/trunk/debian/copyright Tue Dec  5 14:23:51 2006
@@ -1,0 +1,37 @@
+This package was debianized by Fabio Tranchitella <kobold at debian.org>
+on Wed, 02 Feb 2006. 
+
+It was downloaded from http://formencode.org.
+
+Upstream Author: Ian Bicking
+
+Copyright:
+
+   Copyright (c) Ian Bicking <ianb at colorstudy.com>
+
+License:
+
+   This package is licensed under the MIT License, as confirmed by 
+   the upstream author, but actually the tarball lacks of a clear 
+   license statement which will be included with the next release.
+
+MIT License:
+
+   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.

Added: packages/python-formencode/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/patches/00list?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/patches/00list (added)
+++ packages/python-formencode/trunk/debian/patches/00list Tue Dec  5 14:23:51 2006
@@ -1,0 +1,1 @@
+email_validator

Added: packages/python-formencode/trunk/debian/patches/DPATCH
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/patches/DPATCH?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/patches/DPATCH (added)
+++ packages/python-formencode/trunk/debian/patches/DPATCH Tue Dec  5 14:23:51 2006
@@ -1,0 +1,16 @@
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+       -patch) patch $patch_opts -p1 < $0;;
+       -unpatch) patch $patch_opts -p1 -R < $0;;
+        *)
+                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+                exit 1;;
+esac
+
+exit 0

Added: packages/python-formencode/trunk/debian/patches/email_validator.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/patches/email_validator.dpatch?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/patches/email_validator.dpatch (added)
+++ packages/python-formencode/trunk/debian/patches/email_validator.dpatch Tue Dec  5 14:23:51 2006
@@ -1,0 +1,45 @@
+#! /bin/sh -e
+
+. $(dirname $0)/DPATCH
+
+ at DPATCH@
+diff -urN python-formencode-0.5.1/formencode/validators.py python-formencode-0.5.1.debian/formencode/validators.py
+--- python-formencode-0.5.1/formencode/validators.py	2006-04-21 17:21:40.000000000 +0200
++++ python-formencode-0.5.1.debian/formencode/validators.py	2006-07-19 20:51:40.000000000 +0200
+@@ -29,6 +29,7 @@
+ httplib = None
+ urlparse = None
+ socket = None
++DNSError = None
+ from interfaces import *
+ from api import *
+ sha = random = None
+@@ -1130,6 +1131,7 @@
+         'empty': 'Please enter an email address',
+         'noAt': 'An email address must contain a single @',
+         'badUsername': 'The username portion of the email address is invalid (the portion before the @: %(username)s)',
++        'socketError': 'An error occured when trying to connect to the server: %(error)s',
+         'badDomain': 'The domain portion of the email address is invalid (the portion after the @: %(domain)s)',
+         'domainDoesNotExist': 'The domain of the email address does not exist (the portion after the @: %(domain)s)',
+         }
+@@ -1173,7 +1175,19 @@
+                              domain=splitted[1]),
+                 value, state)
+         if self.resolve_domain:
+-            domains = mxlookup(splitted[1])
++	    global socket, DNSError
++	    if socket is None:
++        	import socket
++
++	    if DNSError is None:
++		from DNS.Base import DNSError
++
++	    try:
++                domains = mxlookup(splitted[1])
++	    except (socket.error, DNSError), e:
++		raise Invalid(
++		    self.message('socketError', state, error=e),
++		    value, state)
+             if not domains:
+                 raise Invalid(
+                     self.message('domainDoesNotExist', state,

Propchange: packages/python-formencode/trunk/debian/patches/email_validator.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Added: packages/python-formencode/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-formencode/trunk/debian/rules?rev=1588&op=file
==============================================================================
--- packages/python-formencode/trunk/debian/rules (added)
+++ packages/python-formencode/trunk/debian/rules Tue Dec  5 14:23:51 2006
@@ -1,0 +1,59 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+export DH_PYCENTRAL=nomove
+PYVERS=$(shell pyversions -r debian/control)
+
+build: patch-stamp build-stamp
+build-stamp:
+	dh_testdir
+	for python in $(PYVERS); \
+	    do $$python setup.py build; \
+	done
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	for python in $(PYVERS); \
+	    do $$python setup.py clean; \
+	done
+	rm -rf build-stamp build
+	rm -rf FormEncode.egg-info
+	rm ez_setup/__init__.pyc
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	for python in $(PYVERS); \
+	    do $$python setup.py install --root=$(CURDIR)/debian/python-formencode --no-compile --single-version-externally-managed; \
+	done
+	rm $(CURDIR)/debian/python-formencode/usr/lib/python2.3/site-packages/formencode/formgen.py \
+	   $(CURDIR)/debian/python-formencode/usr/lib/python2.3/site-packages/formencode/sqlformgen.py
+
+# Build architecture-dependent files here.
+binary-arch:
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs -ppython-formencode
+	dh_installdocs -i docs/*.txt
+	dh_installchangelogs -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_pycentral -i
+	dh_python -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary
+
+include /usr/share/dpatch/dpatch.make

Propchange: packages/python-formencode/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *




More information about the Python-modules-commits mailing list