[Python-modules-commits] r3320 - in /packages/python-contract/trunk/debian: ./ patches/

stew-guest at users.alioth.debian.org stew-guest at users.alioth.debian.org
Sat Sep 29 16:39:52 UTC 2007


Author: stew-guest
Date: Sat Sep 29 16:39:52 2007
New Revision: 3320

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=3320
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    packages/python-contract/trunk/debian/   (with props)
    packages/python-contract/trunk/debian/changelog
    packages/python-contract/trunk/debian/compat
    packages/python-contract/trunk/debian/control
    packages/python-contract/trunk/debian/copyright
    packages/python-contract/trunk/debian/patches/
    packages/python-contract/trunk/debian/patches/remove-shebang
    packages/python-contract/trunk/debian/patches/series
    packages/python-contract/trunk/debian/patches/tests-exit-with-failure
    packages/python-contract/trunk/debian/pycompat
    packages/python-contract/trunk/debian/python-contract.dirs
    packages/python-contract/trunk/debian/python-contract.docs
    packages/python-contract/trunk/debian/python-contract.examples
    packages/python-contract/trunk/debian/pyversions
    packages/python-contract/trunk/debian/rules   (with props)
    packages/python-contract/trunk/debian/semantic.cache
    packages/python-contract/trunk/debian/watch

Propchange: packages/python-contract/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Added: packages/python-contract/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/changelog?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/changelog (added)
+++ packages/python-contract/trunk/debian/changelog Sat Sep 29 16:39:52 2007
@@ -1,0 +1,11 @@
+python-contract (1.4-2) unstable; urgency=low
+
+  * Initial release (Closes: 444390)
+
+ -- Mike O'Connor <stew at vireo.org>  Sat, 29 Sep 2007 01:15:49 -0400
+
+python-contract (1.4-1) UNRELEASED; urgency=low
+
+  * initially packaged
+
+ -- Mike O'Connor <stew at vireo.org>  Fri, 14 Sep 2007 08:24:08 -0400

Added: packages/python-contract/trunk/debian/compat
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/compat?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/compat (added)
+++ packages/python-contract/trunk/debian/compat Sat Sep 29 16:39:52 2007
@@ -1,0 +1,1 @@
+5

Added: packages/python-contract/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/control?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/control (added)
+++ packages/python-contract/trunk/debian/control Sat Sep 29 16:39:52 2007
@@ -1,0 +1,26 @@
+Source: python-contract
+Section: devel
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Mike O'Connor <stew at vireo.org>
+Build-Depends: quilt, debhelper (>= 5.0.37.2), python-all-dev (>= 0.4.42), python-support (>= 0.3)
+Standards-Version: 3.7.2
+Homepage: http://www.wayforward.net/pycontract/
+XS-Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-contract/trunk/
+XS-Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-contract/?op=log
+ 
+Package: python-contract
+Architecture: all
+Depends: ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Description: Programming by contract for python
+ This package provides a means for programming by contract in python.
+ Programming by contact is a methodology whereby a API designer can
+ define checkable preconditions and postconditions for method calls,
+ and invariants for classes and methods.  The most famous use of this
+ methodology is in the Eiffel programming language.
+ .
+ This implementation of programming by contract has the developer
+ write constraints in the docstrings of methods and classes that can
+ be optionally checked at runtime.  If the constraints are not met,
+ an exception is raised.

Added: packages/python-contract/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/copyright?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/copyright (added)
+++ packages/python-contract/trunk/debian/copyright Sat Sep 29 16:39:52 2007
@@ -1,0 +1,211 @@
+This package was debianized by Mike O'Connor <stew at vireo.org> on
+Sun Jul 15 21:37:03 -0500.
+
+It was downloaded from http://www.wayforward.net/pycontract/
+
+Copyright: 
+
+Copyright (c) 2003, 2006, 2007 Terence Way <terry at wayforward.net>
+
+License:
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of either:
+
+a) GNU Library or Lesser General Public License as published by the
+   Free Software Foundation; either version 3, or (at your option)
+   any later version, or
+
+b) Python Software Foundation License
+   You may redistribute and/or modify this program under the same
+   terms as Python itself, so long as this copyright message and
+   disclaimer are retained in their original form, or
+
+c) The "Artistic License" which comes with this Kit.
+
+----
+
+On debian systems, the Lesser General Public License, version 3 can be
+found in /usr/share/common-licenses/LGPL-3.
+
+----
+
+			 The "Artistic License"
+
+				Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
+
+Definitions:
+
+	"Package" refers to the collection of files distributed by the
+	Copyright Holder, and derivatives of that collection of files
+	created through textual modification.
+
+	"Standard Version" refers to such a Package if it has not been
+	modified, or has been modified in accordance with the wishes
+	of the Copyright Holder as specified below.
+
+	"Copyright Holder" is whoever is named in the copyright or
+	copyrights for the package.
+
+	"You" is you, if you're thinking about copying or distributing
+	this Package.
+
+	"Reasonable copying fee" is whatever you can justify on the
+	basis of media cost, duplication charges, time of people involved,
+	and so on.  (You will not be required to justify it to the
+	Copyright Holder, but only to the computing community at large
+	as a market that must bear the fee.)
+
+	"Freely Available" means that no fee is charged for the item
+	itself, though there may be fees involved in handling the item.
+	It also means that recipients of the item may redistribute it
+	under the same conditions they received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain or from the Copyright Holder.  A Package
+modified in such a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
+
+    a) place your modifications in the Public Domain or otherwise make them
+    Freely Available, such as by posting said modifications to Usenet or
+    an equivalent medium, or placing the modifications on a major archive
+    site such as uunet.uu.net, or by allowing the Copyright Holder to include
+    your modifications in the Standard Version of the Package.
+
+    b) use the modified Package only within your corporation or organization.
+
+    c) rename any non-standard executables so the names do not conflict
+    with standard executables, which must also be provided, and provide
+    a separate manual page for each non-standard executable that clearly
+    documents how it differs from the Standard Version.
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+    a) distribute a Standard Version of the executables and library files,
+    together with instructions (in the manual page or equivalent) on where
+    to get the Standard Version.
+
+    b) accompany the distribution with the machine-readable source of
+    the Package with your modifications.
+
+    c) give non-standard executables non-standard names, and clearly
+    document the differences in manual pages (or equivalent), together
+    with instructions on where to get the Standard Version.
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this
+Package.  You may not charge a fee for this Package itself.  However,
+you may distribute this Package in aggregate with other (possibly
+commercial) programs as part of a larger (possibly commercial) software
+distribution provided that you do not advertise this Package as a
+product of your own.  You may embed this Package's interpreter within
+an executable of yours (by linking); this shall be construed as a mere
+form of aggregation, provided that the complete Standard Version of the
+interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package.  If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of this Package with a commercial distribution is always
+permitted provided that the use of this Package is embedded; that is,
+when no overt attempt is made to make this Package's interfaces visible
+to the end user of the commercial distribution.  Such use shall not be
+construed as a distribution of this Package.
+
+9. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+				The End
+
+----
+
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+--------------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using this software ("Python") in source or binary form and
+its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF
+hereby grants Licensee a nonexclusive, royalty-free, world-wide
+license to reproduce, analyze, test, perform and/or display publicly,
+prepare derivative works, distribute, and otherwise use Python
+alone or in any derivative version, provided, however, that PSF's
+License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
+2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved"
+are retained in Python alone or in any derivative version prepared
+by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS"
+basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee.  This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
+

Added: packages/python-contract/trunk/debian/patches/remove-shebang
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/patches/remove-shebang?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/patches/remove-shebang (added)
+++ packages/python-contract/trunk/debian/patches/remove-shebang Sat Sep 29 16:39:52 2007
@@ -1,0 +1,7 @@
+--- python-contract-1.4.orig/contract.py
++++ python-contract-1.4/contract.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ """Programming-by-contract for Python, based on Eiffel's DBC.
+ 
+ Programming by contract documents class and modules with invariants,

Added: packages/python-contract/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/patches/series?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/patches/series (added)
+++ packages/python-contract/trunk/debian/patches/series Sat Sep 29 16:39:52 2007
@@ -1,0 +1,2 @@
+tests-exit-with-failure
+remove-shebang

Added: packages/python-contract/trunk/debian/patches/tests-exit-with-failure
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/patches/tests-exit-with-failure?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/patches/tests-exit-with-failure (added)
+++ packages/python-contract/trunk/debian/patches/tests-exit-with-failure Sat Sep 29 16:39:52 2007
@@ -1,0 +1,77 @@
+--- python-contract-1.4.orig/test/testdbc1.py
++++ python-contract-1.4/test/testdbc1.py
+@@ -189,5 +189,7 @@
+     t = _test()
+     if t[0]:
+         print "test: %d/%d failures" % t
++	import sys
++	sys.exit( 1 )
+     else:
+         print "test: %d successes" % t[1]
+--- python-contract-1.4.orig/test/testdbc2.py
++++ python-contract-1.4/test/testdbc2.py
+@@ -42,3 +42,5 @@
+        print "test: %d tests succeeded" % t[1]
+     else:
+        print "test: %d/%d tests failed" % t
++       import sys
++       sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc3.py
++++ python-contract-1.4/test/testdbc3.py
+@@ -527,3 +527,5 @@
+         print "test: %d tests succeeded" % t[1]
+     else:
+         print "test: %d/%d tests failed" % t
++	import sys
++	sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc4.py
++++ python-contract-1.4/test/testdbc4.py
+@@ -504,3 +504,5 @@
+         print "test: %d tests succeeded" % t[1]
+     else:
+         print "test: %d/%d tests failed" % t
++	import sys
++	sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc5.py
++++ python-contract-1.4/test/testdbc5.py
+@@ -94,3 +94,5 @@
+         print "test: %d tests succeeded" % t[1]
+     else:
+         print "test: %d/%d tests failed" % t
++	import sys
++	sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc6.py
++++ python-contract-1.4/test/testdbc6.py
+@@ -28,3 +28,5 @@
+         print "test: %d tests succeeded" % t[1]
+     else:
+         print "test: %d/%d tests failed" % t
++	import sys
++	sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc7.py
++++ python-contract-1.4/test/testdbc7.py
+@@ -43,3 +43,5 @@
+ 	print "test: %d tests succeeded" % t[1]
+     else:
+ 	print "test: %d/%d tests failed" % t
++	import sys
++	sys.exit( 1 )
+--- python-contract-1.4.orig/test/testdbc8.py
++++ python-contract-1.4/test/testdbc8.py
+@@ -23,5 +23,7 @@
+     t = _test()
+     if t[0]:
+ 	print "test: %d/%d failures" % t
++	import sys
++	sys.exit( 1 )
+     else:
+ 	print "test: %d successes" % t[1]
+--- python-contract-1.4.orig/test/testdbca.py
++++ python-contract-1.4/test/testdbca.py
+@@ -67,4 +67,5 @@
+ 	print "test: %d tests succeeded" % t[1]
+     else:
+ 	print "test: %d/%d tests failed" % t
+-
++	import sys
++	sys.exit( 1 )

Added: packages/python-contract/trunk/debian/pycompat
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/pycompat?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/pycompat (added)
+++ packages/python-contract/trunk/debian/pycompat Sat Sep 29 16:39:52 2007
@@ -1,0 +1,1 @@
+2

Added: packages/python-contract/trunk/debian/python-contract.dirs
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/python-contract.dirs?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/python-contract.dirs (added)
+++ packages/python-contract/trunk/debian/python-contract.dirs Sat Sep 29 16:39:52 2007
@@ -1,0 +1,2 @@
+usr/share/python-support
+usr/share/doc/python-tpg/html

Added: packages/python-contract/trunk/debian/python-contract.docs
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/python-contract.docs?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/python-contract.docs (added)
+++ packages/python-contract/trunk/debian/python-contract.docs Sat Sep 29 16:39:52 2007
@@ -1,0 +1,2 @@
+README
+test

Added: packages/python-contract/trunk/debian/python-contract.examples
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/python-contract.examples?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/python-contract.examples (added)
+++ packages/python-contract/trunk/debian/python-contract.examples Sat Sep 29 16:39:52 2007
@@ -1,0 +1,1 @@
+examples/*

Added: packages/python-contract/trunk/debian/pyversions
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/pyversions?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/pyversions (added)
+++ packages/python-contract/trunk/debian/pyversions Sat Sep 29 16:39:52 2007
@@ -1,0 +1,1 @@
+2.2-

Added: packages/python-contract/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/rules?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/rules (added)
+++ packages/python-contract/trunk/debian/rules Sat Sep 29 16:39:52 2007
@@ -1,0 +1,70 @@
+#!/usr/bin/make -f
+PKGNAME:=python-contract
+PYVERS:=$(shell pyversions -r)
+
+
+include /usr/share/quilt/quilt.make
+
+build: patch build-stamp
+build-stamp:
+	dh_testdir
+
+	set -e; \
+	for py in $(PYVERS); do  \
+	    $$py setup.py build; \
+	done
+
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	    for py in $(PYVERS); do  \
+	        for test in $(wildcard test/test*); do \
+		    echo running test: $$test; \
+		    PYTHONPATH=build/lib $$py $$test; \
+	        done; \
+	    done
+endif
+
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	-for py in $(PYVERS); do  \
+	    $$py setup.py clean; \
+	done
+	find . -name \*.pyc | xargs rm -f
+	rm -rf build
+	rm -f install-stamp build-stamp
+	dh_clean 
+
+install: install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	set -e; \
+	for py in $(PYVERS); do  \
+	    $$py setup.py install --root=debian/$(PKGNAME); \
+	done
+
+	dh_installdocs -A
+	dh_installexamples
+	touch install-stamp
+
+binary-arch: build install
+# We have nothing to do by default.
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_compress -X.py
+	dh_fixperms
+	dh_pysupport
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install

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

Added: packages/python-contract/trunk/debian/semantic.cache
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/semantic.cache?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/semantic.cache (added)
+++ packages/python-contract/trunk/debian/semantic.cache Sat Sep 29 16:39:52 2007
@@ -1,0 +1,15 @@
+;; Object debian/
+;; SEMANTICDB Tags save file
+(semanticdb-project-database-file "debian/"
+  :tables (list 
+   (semanticdb-table "rules"
+    :major-mode 'makefile-gmake-mode
+    :tags '(("PKGNAME" variable (:default-value ("python-contract")) nil [21 46]) ("/usr/share/quilt/quilt.make" include nil nil [47 83]) ("PYVERS" variable (:default-value ("$(shell pyversions -r)")) nil [83 114]) ("build" function (:arguments ("build-stamp")) nil [115 145]) ("build-stamp" function (:arguments ("$(QUILT_STAMPFN)")) nil [134 260]) ("_clean" function (:arguments ("$(QUILT_STAMPFN)")) nil [260 457]) ("clean" function (:arguments ("_clean" "unpatch")) nil [457 491]) ("install" function (:arguments ("install-stamp")) nil [491 527]) ("install-stamp" function nil nil [514 703]) ("binary-arch" function (:arguments ("build" "install")) nil [745 808]) ("binary-indep" function (:arguments ("build" "install")) nil [809 986]) ("binary" function (:arguments ("binary-indep" "binary-arch")) nil [986 1025]))
+    :file "rules"
+    :pointmax 1079
+    )
+   )
+  :file "semantic.cache"
+  :semantic-tag-version "2.0pre3"
+  :semanticdb-version "2.0pre3"
+  )

Added: packages/python-contract/trunk/debian/watch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-contract/trunk/debian/watch?rev=3320&op=file
==============================================================================
--- packages/python-contract/trunk/debian/watch (added)
+++ packages/python-contract/trunk/debian/watch Sat Sep 29 16:39:52 2007
@@ -1,0 +1,2 @@
+version=3
+http://www.wayforward.net/pycontract/contract-(.*)\.tar\.gz




More information about the Python-modules-commits mailing list