debian/0000775000000000000000000000000011650373557007204 5ustar debian/docs0000664000000000000000000000002211640655704010045 0ustar rules/*.txt *.txt debian/changelog0000664000000000000000000000422411650373555011056 0ustar python-peak.rules (0.5a1+r2707-1fakesync1) precise; urgency=low * Fake sync due to mismatching orig tarball. -- Barry Warsaw Fri, 21 Oct 2011 18:51:25 -0400 python-peak.rules (0.5a1+r2707-1) unstable; urgency=low * New upstream release * Switched to multiple upstream tarballs * debian/control - Set myself as uploader with Stefano Zacchiroli's permission. Thanks to Stefano Zacchiroli for his past work! - Bumped Standards-Version to 3.9.2 (no changes needed) * debian/{control,rules} - Switched from cdbs to dh sequencer * debian/copyright - Made DEP5 compliant * debian/patches/01_invoke-multiple-setup.patch - Use a patch to add the setup.py which take care of invocation of multiple setup.py in subdir provided by Stefano Zacchiroli * debian/source/format - Switched to source format 3.0 (quilt) * debian/watch - Added filenamemangle option -- Daniele Tricoli Wed, 28 Sep 2011 19:42:46 +0200 python-peak.rules (0.5a1+r2600-1) unstable; urgency=low * new upstream release * first upload to unstable * debian/README.source: fix wording and content -- Stefano Zacchiroli Sun, 02 Aug 2009 12:46:47 +0200 python-peak.rules (0.5a1+r2582.1-1) experimental; urgency=low * add support for shipping PEAK-Rules contribs * ship as the sole contrib prioritized_methods * add debian/get-orig-source.mk and setup.py to support the change to multi-upstream source package * add debian/README.source to describe how to rebuild new orig tarballs * debian/copyright: add copyright info regarding prioritized_methods * debian/control: - updated long description to mention prioritized_methods - bump Standards-Version to 3.8.2 (no changes needed) * debian/prioritized_methods.watch: new watch file for prioritized_methods * debian/rules: generate doc for prioritized_methods out of its PKG-INFO -- Stefano Zacchiroli Sat, 20 Jun 2009 14:34:47 +0200 python-peak.rules (0.5a1+r2582-1) experimental; urgency=low * First release (Closes: #531871) -- Stefano Zacchiroli Wed, 10 Jun 2009 18:47:20 +0200 debian/rules0000775000000000000000000000330611640655172010261 0ustar #!/usr/bin/make -f PKG = python-peak.rules VERSION = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | sed 's,-.*,,') DEB_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../) GOS_TMP_DIR = $(DEB_ROOT)/get-orig-source TAR_EXTRA_ARGS = --owner root --group root --mode a+rX PRIORITIZED_METHODS = prioritized_methods-0.2.2dev-20110830 DEB_PRIORITIZED_METHODS_DIR = $(subst _,-,$(subst .,-,$(PRIORITIZED_METHODS))) export SUBDIRS = rules $(DEB_PRIORITIZED_METHODS_DIR) %: dh $@ override_dh_auto_clean: rm -f README.prioritized_methods.txt find . -path '*PEAK_Rules.egg-info/PKG-INFO' -delete dh_auto_clean override_dh_auto_install: dh_auto_install rm -f debian/$(PKG)/usr/lib/python*/dist-packages/*.pth override_dh_installdocs: # Generate README for prioritized_methods out of its PKG-INFO. egrep -i '^( |description:)' $(DEB_PRIORITIZED_METHODS_DIR)/PKG-INFO > \ README.prioritized_methods.txt dh_installdocs get-orig-source: mkdir -p $(GOS_TMP_DIR) uscan --no-conf --force-download --destdir $(GOS_TMP_DIR) --no-symlink uscan --no-conf \ --watchfile debian/`echo $(PRIORITIZED_METHODS) | cut -d- -f1`.watch \ --upstream-version 0 --download-version `echo $(PRIORITIZED_METHODS) | cut -d- -f2,3` \ --download --destdir $(GOS_TMP_DIR) --no-symlink mv $(GOS_TMP_DIR)/$(PRIORITIZED_METHODS).tar.gz \ $(GOS_TMP_DIR)/$(PKG)_$(VERSION).orig-`echo $(PRIORITIZED_METHODS) | tr ._ -`.tar.gz # Create manually the empty main package mkdir $(GOS_TMP_DIR)/$(PKG)-$(VERSION) cd $(GOS_TMP_DIR); GZIP=--best tar -cz $(TAR_EXTRA_ARGS) -f $(PKG)_$(VERSION).orig.tar.gz $(PKG)-$(VERSION) rmdir $(GOS_TMP_DIR)/$(PKG)-$(VERSION) mv $(GOS_TMP_DIR)/$(PKG)_$(VERSION).orig* $(CURDIR) rm -Rf $(GOS_TMP_DIR) debian/patches/0000775000000000000000000000000011640656256010632 5ustar debian/patches/series0000664000000000000000000000003711640651502012034 0ustar 01_invoke-multiple-setup.patch debian/patches/01_invoke-multiple-setup.patch0000664000000000000000000000211611640651502016422 0ustar Description: Multiplexer for invoking multiple setup.py in subdir Author: Stefano Zacchiroli Forwarded: not-needed --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +#!/usr/bin/python +# Multiplexer for invoking multiple setup.py in subdir +# Copyright (C) 2009 Stefano Zacchiroli +# License: GNU GPL version 3 or above + +# Created: Sat, 30 May 2009 14:47:04 +0200 +# Last-Modified: Sat, 30 May 2009 14:47:04 +0200 + +import os, string, sys + +if not os.environ.has_key('SUBDIRS') or not os.environ['SUBDIRS']: + print >> sys.stderr, "Can't find subdirs, please set SUBDIRS envvar" + sys.exit(3) +else: + subdirs = os.environ['SUBDIRS'].split() +setup_cmd = "python setup.py %s" % string.join(sys.argv[1:]) + +topdir = os.getcwd() +for d in subdirs: + if not os.path.isdir(d): + print >> sys.stderr, "WARNING: can't find subdir %s" % d + continue + os.chdir(d) + retcode = os.system(setup_cmd) + if retcode: + print >> sys.stderr, "ERROR: setup.py in subdir %s failed" % d + sys.exit(retcode >> 8) + os.chdir(topdir) debian/compat0000664000000000000000000000000211407110124010355 0ustar 7 debian/copyright0000664000000000000000000001112311640651502011121 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Source: http://pypi.python.org/pypi/PEAK-Rules http://pypi.python.org/pypi/prioritized_methods Files: PEAK-Rules* Copyright: © 2006-2011 Phillipp J .Eby License: ZPL-2 Files: prioritized_methods* Copyright: © 2008-2011 Alberto Valverde Gonzalez License: Expat Files: debian/* Copyright: © 2009, Stefano Zacchiroli © 2011, Daniele Tricoli License: GPL-3+ 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 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-3' file. License: ZPL-2 This software is Copyright (c) Zope Corporation (tm) and Contributors. All rights reserved. . This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions in source code must retain the above copyright notice, this list of conditions, and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name Zope Corporation (tm) must not be used to endorse or promote products derived from this software without prior written permission from Zope Corporation. . 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of Zope Corporation. Use of them is covered in a separate agreement (see http://www.zope.com/Marks). . 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. . Disclaimer . THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . This software consists of contributions made by Zope Corporation and many individuals on behalf of Zope Corporation. Specific attributions are listed in the accompanying credits file. License: Expat 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/control0000664000000000000000000000270011650373555010604 0ustar Source: python-peak.rules Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Daniele Tricoli Build-Depends: debhelper (>= 7.0.50~), python-all, python-peak.util, python-peak.util.decorators, python-setuptools, python-support Standards-Version: 3.9.2 Homepage: http://pypi.python.org/pypi/PEAK-Rules Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-peak.rules/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-peak.rules/trunk/ Package: python-peak.rules Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-peak.util, python-peak.util.decorators Provides: python-prioritized-methods Description: generic functions support for Python PEAK-Rules is a highly-extensible framework for creating and using generic functions in Python. . PEAK-Rules supports out of the box: multiple-dispatch on positional arguments using tuples of types, full predicate dispatch using strings containing Python expressions, and CLOS-like method combining. Additionally, PEAK-Rules allows one to mix and match dispatch engines and custom method combinations. . This package also provides some third party contribution over PEAK-Rules, in particular: . * prioritized_methods - prioritize methods to resolve dispatch ambiguities debian/source/0000775000000000000000000000000011640656256010503 5ustar debian/source/format0000664000000000000000000000001411640651502011676 0ustar 3.0 (quilt) debian/README.source0000664000000000000000000000405311640651502011351 0ustar Upgrade to a new upstream ========================= This package use multiple upstream tarballs support provided by source package format "3.0 (quilt)". To obtain new orig tarballs you have to specify package version inside debian/changelog, update module version in the $(PRIORITIZED_METHODS) Makefile variable inside debian/rules and then invoke the get-orig-source target of debian/rules as follows: $ debian/rules get-orig-source If all goes well, that should leave, inside the the current directory a tarball called PACKAGE_VERSION.orig.tar.gz where PACKAGE is the source package name and VERSION is the version specified in debian/changelog; and a two tarballs called PACKAGE_VERSION.orig-rules.tar.gz PACKAGE_VERSION.orig-EXTENSIONNAME-EXTENSIONVERSION.tar.gz where EXTENSIONNAME and EXTENSIONVERSION are specified in the $(PRIORITIZED_METHODS) Makefile variable inside debian/rules: the only known extension, at the time of this packaging work, is prioritized_methods so we can directly pertain to it. When using svn-buildpackage because --svn-download-orig argument doesn't work as expected (see #577140) *.orig tarballs must manually moved inside origDir. Package version =============== Note that, while the package has multiple upstream tarballs, PEAK-Rules is considered the "main" tarball. This means, in particular, that the package version comes from it. Adding a new contrib ==================== At the time of this packaging work only one contrib exists, but it is natural to expect that in the future new contribs will be added. To add one to the package a bit of refactoring is needed: 1) $(PRIORITIZED_METHODS) must be renamed to something like $(CONTRIBS) to take note of each contrib name and version 2) add the per-contrib watch file as debian/NAME.watch, where NAME is the contrib name 3) add license and copyright information about the new module to debian/copyright 4) refactor get-orig-source to handle multiple contrib For a complete example you can look at python-peak.util's debian/rules. debian/watch0000664000000000000000000000034611640651502010224 0ustar version=3 opts=uversionmangle=s/\.dev-(r\d+)/+$1/,filenamemangle=s/PEAK-Rules-([0-9a-z.-]+)\.dev-(r\d+).tar.gz/python-peak.rules_$1+$2.orig-rules.tar.gz/ \ http://peak.telecommunity.com/snapshots/PEAK-Rules-([0-9a-z.-]+)\.tar\.gz debian/prioritized_methods.watch0000664000000000000000000000016211407110124014275 0ustar version=3 http://pypi.python.org/packages/source/p/prioritized_methods/prioritized_methods-([0-9a-z.-]+)\.tar\.gz