--- python-repoze.who-plugins-20090913.orig/debian/README.source +++ python-repoze.who-plugins-20090913/debian/README.source @@ -0,0 +1,47 @@ + +Upgrade to a new upstream +========================= + +This package is a multi-upstream source package, i.e., its +.orig.tar.gz is composed by several upstream tarballs, possibly +released by independent authors. + +To obtain a new orig tarball you can invoke the get-orig-source target +of debian/rules as follows: + + $ debian/rules get-orig-source + +If all goes well, that should leave around a tarball called + + PACKAGE-YYYYMMDD.orig.tar.gz + +where PACKAGE is the source package name and YYYYMMDD is today's date +in year/month/day format. + +Note that the target does not check whether creating a new upstream +version is needed: invoke it only if you know that some of the +upstream parts of this package need updates. Otherwise, use "apt-get +source PACKAGE" to work on the latest uploaded upstream release. + + +Adding a new plugin +=================== + +As this is a plugin collection package, it is natural to expect that +in the future new plugins will be added. To add one to the package +follow a few simple rules: + +1) add the module name (usually the egg name) to the $(UPSTREAMS) + Makefile variable in debian/rules + +2) add the per-plugin watch file as debian/NAME.watch, where NAME is + the module name + +3) add license and copyright information about the new module to + debian/copyright + +4) run "debian/rules get-orig-source" to recreate the new tarball + + + -- Stefano Zacchiroli , Sat, 30 May 2009 14:48:39 +0200 + --- python-repoze.who-plugins-20090913.orig/debian/TODO +++ python-repoze.who-plugins-20090913/debian/TODO @@ -0,0 +1,2 @@ +- ship examples and docs for every shipped plugins + (in the appropriate subdirectories) --- python-repoze.who-plugins-20090913.orig/debian/changelog +++ python-repoze.who-plugins-20090913/debian/changelog @@ -0,0 +1,56 @@ +python-repoze.who-plugins (20090913-2) unstable; urgency=low + + [ Jakub Wilk ] + * Use canonical URIs for Vcs-* fields. + * Fix a typo in README.source. + + [ Dimitri John Ledkov ] + * QA/Team upload + * Switch to debhelper compat level 9. + * Switch to dh_python2. + + -- Dimitri John Ledkov Sun, 20 Apr 2014 15:07:15 +0100 + +python-repoze.who-plugins (20090913-1) unstable; urgency=low + + * new upstream releases + - repoze.who.plugins.sa: 1.0~rc2 + * bump Standards-Version to 3.8.3 (no changes needed) + * s/-setuptools/-pkg-resources/ in runtime deps, the full setuptools is + not needed at runtime (Closes: #546431) + + -- Stefano Zacchiroli Sun, 13 Sep 2009 21:49:36 +0200 + +python-repoze.who-plugins (20090530-4) unstable; urgency=low + + * first upload to unstable + * debian/control: add Piotr to Uploaders + + -- Stefano Zacchiroli Sun, 02 Aug 2009 13:49:01 +0200 + +python-repoze.who-plugins (20090530-3) experimental; urgency=low + + [ Piotr Ożarowski ] + * Don't install .pth files, we don't need them + + [ Stefano Zacchiroli ] + * debian/{control,rules}: add dpatch support + * debian/patches/ + - new patch no-dup-test-suite which fix a syntax error in test suite + invocation (Closes: #534800) + * debian/control: bump Standards-Version to 3.8.2 (no changes needed) + + -- Stefano Zacchiroli Fri, 03 Jul 2009 13:58:25 +0200 + +python-repoze.who-plugins (20090530-2) experimental; urgency=low + + * debian/rules: avoid installing some tests that are useless and too + generically named to be safe against name clashes + + -- Stefano Zacchiroli Tue, 02 Jun 2009 13:33:30 +0200 + +python-repoze.who-plugins (20090530-1) experimental; urgency=low + + * First release (Closes: #531146) + + -- Stefano Zacchiroli Sat, 30 May 2009 15:34:43 +0200 --- python-repoze.who-plugins-20090913.orig/debian/compat +++ python-repoze.who-plugins-20090913/debian/compat @@ -0,0 +1 @@ +9 --- python-repoze.who-plugins-20090913.orig/debian/control +++ python-repoze.who-plugins-20090913/debian/control @@ -0,0 +1,44 @@ +Source: python-repoze.who-plugins +Section: python +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: + Stefano Zacchiroli , + Piotr Ożarowski +Build-Depends: + debhelper (>= 9), + cdbs (>= 0.4.90~), + dpatch, + python-dev, + dh-python, + python-setuptools +Standards-Version: 3.8.3 +Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-repoze.who-plugins/trunk/ +Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-repoze.who-plugins/trunk/ + +Package: python-repoze.who-plugins +Architecture: all +Depends: + ${misc:Depends}, + ${python:Depends}, + python-repoze.who, + python-zopeinterface, + python-paste (>= 1.7), + python-pastedeploy (>= 1.3.3), + python-openid (>= 2.0), + python-pkg-resources, + python-sqlalchemy (>= 0.5), + python-ldap (>= 2.3.5) +Description: authentication framework for Python WSGI applications - plugins collection + repoze.who is an identification and authentication framework for + arbitrary Python WSGI applications; it acts as WSGI middleware and is + inspired by Zope 2's Pluggable Authentication Service (PAS). + . + This package contains a collection of plugins for repoze.who, in + particular: + . + * repoze.who-friendlyform - developer-friendly forms + * repoze.who-plugins.sa - SQLAlchemy integration + * repoze.who-testutil - test utilities for repoze.who applications + * repoze.who.plugins.ldap - LDAP authentication + * repoze.who.plugins.openid - login via OpenID --- python-repoze.who-plugins-20090913.orig/debian/copyright +++ python-repoze.who-plugins-20090913/debian/copyright @@ -0,0 +1,81 @@ +This package was debianized by Stefano Zacchiroli on +Sat, 30 May 2009 12:56:59 +0200. + +Most of the files shipped by python-repoze.who-plugins are under the +BSD-like license reported below and available from +http://www.repoze.org/LICENSE.txt +In the reminder of this copyright file they are marked as licensed +under the "BSD-repoze" license. + + +Files: repoze.who-friendlyform* +Copyright: Copyright © 2009 Gustavo Narea +License: BSD-repoze + +Files: repoze.who.plugins.ldap* +Copyright: Copyright © 2009 Gustavo Narea +License: GPL-3+ + On Debian systems the full text of the GNU General Public License can + be found in the `/usr/share/common-licenses/GPL-3' file. + +Files: repoze.who.plugins.openid* +Copyright: Copyright © 2009 Christian Scholz +License: BSD-repoze + +Files: repoze.who.plugins.sa* +Copyright: Copyright © 2009 Gustavo Narea +License: BSD-repoze + +Files: repoze.who-testutil* +Copyright: Copyright © 2009 Gustavo Narea +License: BSD-repoze + + +Files: debian/* +Copyright: Copyright © 2009 Stefano Zacchiroli +License: GPL-3+ + On Debian systems the full text of the GNU General Public License can + be found in the `/usr/share/common-licenses/GPL-3' file. + + +The terms of the so called "BSD-repoze" license are as follows: + + A copyright notice accompanies this license document that identifies + the copyright holders. + + 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 accompanying + copyright notice, this list of conditions, and the following + disclaimer. + + 2. Redistributions in binary form must reproduce the accompanying + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + 3. Names of the copyright holders must not be used to endorse or + promote products derived from this software without prior + written permission from the copyright holders. + + 4. 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 THE COPYRIGHT HOLDERS ``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 THE COPYRIGHT + HOLDERS 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. + --- python-repoze.who-plugins-20090913.orig/debian/get-orig-source.mk +++ python-repoze.who-plugins-20090913/debian/get-orig-source.mk @@ -0,0 +1,36 @@ +# debian/rules snippet for creating multi-upstream tarball relying on +# several debian/*.watch files + +# Copyright © 2009 Stefano Zacchiroli +# License: GNU GPL version 3 or above +# Created: Sat, 30 May 2009 11:58:16 +0200 +# Last-Modified: Sun, 31 May 2009 00:46:12 +0200 + +# TODO: does not yet fully implement policy wrt get-orig-source: +# - the target cannot be invoked from any dir (rely on "debian/") +# - tmpdir handling is not fully safe (e.g., no "mktemp -d") + +GOSTMP = get-orig-source.tmp +ORIGNAME = $(PKG)-$(shell date +%Y%m%d) +ORIGTARBALL = $(PKG)_$(shell date +%Y%m%d).orig.tar.gz + +get-orig-source: $(patsubst %,%/get-orig-source,$(UPSTREAMS)) + cd $(GOSTMP) && \ + mkdir $(ORIGNAME) && \ + for p in $(UPSTREAMS) ; do \ + mv `readlink $$p` $(ORIGNAME) ; \ + mv $$p $(ORIGNAME) ; \ + done && \ + tar cvzf $(ORIGTARBALL) $(ORIGNAME) && \ + mv $(ORIGTARBALL) ../ && \ + cd .. && \ + rm -rf $(GOSTMP)/ +$(GOSTMP): + -mkdir $@ +%/get-orig-source: $(GOSTMP) + uscan --watchfile debian/$*.watch \ + --upstream-version 0 --package $* \ + --download --destdir $(GOSTMP)/ + cd $(GOSTMP) && \ + tar xzf $**.orig.tar.gz && \ + ln -s `tar tzf $**.orig.tar.gz | head -n1` $* --- python-repoze.who-plugins-20090913.orig/debian/patches/00dpatch.conf +++ python-repoze.who-plugins-20090913/debian/patches/00dpatch.conf @@ -0,0 +1,2 @@ +conf_debianonly=1 +conf_origtargzpath=../tarballs --- python-repoze.who-plugins-20090913.orig/debian/patches/00list +++ python-repoze.who-plugins-20090913/debian/patches/00list @@ -0,0 +1 @@ +no-dup-test-suite --- python-repoze.who-plugins-20090913.orig/debian/patches/no-dup-test-suite.dpatch +++ python-repoze.who-plugins-20090913/debian/patches/no-dup-test-suite.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## no-dup-test-suite.dpatch by Stefano Zacchiroli +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: remove duplicate test_suite kwarg in setup.py (syntax error) + +@DPATCH@ +diff -urNad trunk~/repoze.who.plugins.openid/setup.py trunk/repoze.who.plugins.openid/setup.py +--- trunk~/repoze.who.plugins.openid/setup.py 2009-03-15 21:07:59.000000000 +0100 ++++ trunk/repoze.who.plugins.openid/setup.py 2009-07-03 14:00:49.149407637 +0200 +@@ -37,7 +37,6 @@ + ], + test_requires=[ + ], +- test_suite="repoze.who.plugins.openid", + entry_points=""" + # -*- Entry points: -*- + """, --- python-repoze.who-plugins-20090913.orig/debian/repoze.who-friendlyform.watch +++ python-repoze.who-plugins-20090913/debian/repoze.who-friendlyform.watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(rc|a|b)\d+/~$1/" \ +http://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-([0-9a-z.]+)\.tar\.gz --- python-repoze.who-plugins-20090913.orig/debian/repoze.who-testutil.watch +++ python-repoze.who-plugins-20090913/debian/repoze.who-testutil.watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(rc|a|b)\d+/~$1/" \ +http://pypi.python.org/packages/source/r/repoze.who-testutil/repoze.who-testutil-([0-9a-z.]+)\.tar\.gz --- python-repoze.who-plugins-20090913.orig/debian/repoze.who.plugins.ldap.watch +++ python-repoze.who-plugins-20090913/debian/repoze.who.plugins.ldap.watch @@ -0,0 +1,5 @@ +version=3 +opts="uversionmangle=s/(rc|a|b)\d+/~$1/" \ +https://launchpad.net/repoze.who.plugins.ldap/+download \ + .*/repoze.who.plugins.ldap-([0-9a-z.]+)\.tar\.gz + --- python-repoze.who-plugins-20090913.orig/debian/repoze.who.plugins.openid.watch +++ python-repoze.who-plugins-20090913/debian/repoze.who.plugins.openid.watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(rc|a|b)\d+/~$1/" \ +http://pypi.python.org/packages/source/r/repoze.who.plugins.openid/repoze.who.plugins.openid-([0-9a-z.]+)\.tar\.gz --- python-repoze.who-plugins-20090913.orig/debian/repoze.who.plugins.sa.watch +++ python-repoze.who-plugins-20090913/debian/repoze.who.plugins.sa.watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(rc|a|b)\d+/~$1/" \ +http://pypi.python.org/packages/source/r/repoze.who.plugins.sa/repoze.who.plugins.sa-([0-9a-z.]+)\.tar\.gz --- python-repoze.who-plugins-20090913.orig/debian/rules +++ python-repoze.who-plugins-20090913/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk + +PKG = python-repoze.who-plugins +UPSTREAMS = \ + repoze.who-friendlyform \ + repoze.who.plugins.ldap \ + repoze.who.plugins.openid \ + repoze.who.plugins.sa \ + repoze.who-testutil \ + $(NULL) +export SUBDIRS = $(UPSTREAMS) + +DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed + +# avoid installing tests: useless at runtime and prone to name clashes +install/$(PKG):: + rm -rf debian/$(PKG)/usr/lib/python*/site-packages/tests/ + rm -f debian/$(PKG)/usr/lib/python*/site-packages/*.pth + +-include debian/get-orig-source.mk --- python-repoze.who-plugins-20090913.orig/debian/source/format +++ python-repoze.who-plugins-20090913/debian/source/format @@ -0,0 +1 @@ +1.0 --- python-repoze.who-plugins-20090913.orig/setup.py +++ python-repoze.who-plugins-20090913/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)