--- pastedeploy-1.3.3.orig/debian/rules +++ pastedeploy-1.3.3/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') +PYVERS=$(shell pyversions -vr) +DOCS=$(shell cd docs && find ./ -maxdepth 1 -name "*.txt" -not -name "license.txt" -printf "%p " | sed "s/.txt//g") +PKGDIR=$(CURDIR)/debian/python-pastedeploy + +include /usr/share/dpatch/dpatch.make + +clean: unpatch + dh_testdir + dh_testroot + rm -rf dist build + find . -name '*\.py[co]' -delete + dh_clean build-docs $(PYVERS:%=install-python%) + +build: patch build-docs + +build-docs: + dh_installdirs + for NAME in $(DOCS); do \ + rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \ + > "$(PKGDIR)/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \ + done + touch $@ + +install: build $(PYVERS:%=install-python%) +install-python%: patch + python$* setup.py install --prefix=/usr \ + --single-version-externally-managed \ + --root $(PKGDIR) \ + --install-lib=/usr/lib/python$*/site-packages + # run the testuiste + python$* setup.py nosetests + # pth file is not needed + rm -f $(PKGDIR)/usr/lib/python$*/site-packages/PasteDeploy-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth + # python-support's namespace feature will handle this + rm -f $(PKGDIR)/usr/lib/python$*/site-packages/paste/__init__.py + # move templates outside site-packages + if [ -d $(PKGDIR)/usr/share/paster_templates ]; \ + then rm -rf $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates; \ + else \ + mv $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates \ + $(PKGDIR)/usr/share/;\ + fi + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i docs/news.txt + dh_installdocs -i + dh_link usr/share/doc/python-pastedeploy/docs /usr/share/doc/python-paste/docs/deploy + dh_pysupport -i + dh_compress -i -X.py + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i -- -Z bzip2 + +binary-arch: + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install build --- pastedeploy-1.3.3.orig/debian/watch +++ pastedeploy-1.3.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-(.*)\.tar\.gz debian uupdate --- pastedeploy-1.3.3.orig/debian/README.source +++ pastedeploy-1.3.3/debian/README.source @@ -0,0 +1,4 @@ +This package is using dpatch patch system. + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run `./debian/rules patch` --- pastedeploy-1.3.3.orig/debian/copyright +++ pastedeploy-1.3.3/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Piotr Ożarowski on +Thu, 4 May 2006 14:00:37 +0200. + +It was downloaded from http://pypi.python.org/pypi/PasteDeploy + +Copyright (c) 2005-2009 Ian Bicking and Contributors + +License: 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. + +The Debian packaging is © 2006-2009, Piotr Ożarowski and +is licensed under the MIT as well. --- pastedeploy-1.3.3.orig/debian/dirs +++ pastedeploy-1.3.3/debian/dirs @@ -0,0 +1 @@ +/usr/share/doc/python-pastedeploy/docs --- pastedeploy-1.3.3.orig/debian/control +++ pastedeploy-1.3.3/debian/control @@ -0,0 +1,27 @@ +Source: pastedeploy +Section: python +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Piotr Ożarowski +Uploaders: Debian Python Modules Team +Build-Depends: debhelper (>= 5), dpatch +Build-Depends-Indep: python (>= 2.3.5-11), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~), python-docutils, python-nose, python-paste +Standards-Version: 3.8.3 +Homepage: http://pythonpaste.org/deploy/ +XS-Python-Version: all +Vcs-Svn: svn://svn.debian.org/python-modules/packages/pastedeploy/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pastedeploy/trunk/ + +Package: python-pastedeploy +Architecture: all +Depends: ${python:Depends}, python-pkg-resources +Recommends: python-pastescript (>= 1.6.2-3) +XB-Python-Version: ${python:Versions} +Enhances: python-paste +Description: load, configure, and compose WSGI applications and servers + Paste Deployment is a system for finding and configuring WSGI applications and + servers. For WSGI application consumers it provides a single, simple function + (loadapp) for loading a WSGI application from a configuration file or a Python + Egg. For WSGI application providers it only asks for a single, simple entry + point to your application, so that application users don't need to be exposed + to the implementation details of your application. --- pastedeploy-1.3.3.orig/debian/changelog +++ pastedeploy-1.3.3/debian/changelog @@ -0,0 +1,152 @@ +pastedeploy (1.3.3-3ubuntu2) lucid; urgency=low + + * debian/control: Add python-paste to fix a FTBFS in the + testsuite. + + -- Chuck Short Thu, 28 Jan 2010 08:56:27 -0500 + +pastedeploy (1.3.3-3ubuntu1) lucid; urgency=low + + * debian/control, debian/rules, + debian/patches/02_enable-testsuite.dpatch: Enable test suite. + + -- Chuck Short Wed, 27 Jan 2010 13:30:44 -0500 + +pastedeploy (1.3.3-3) unstable; urgency=low + + * Make sure all Python versions use site-packages as temporary + installation directory for modules (closes: #547833) + * Standards-Version bumped to 3.8.3 (no changes needed) + + -- Piotr Ożarowski Fri, 25 Sep 2009 22:39:45 +0200 + +pastedeploy (1.3.3-2) unstable; urgency=low + + * Upload to unstable + + -- Piotr Ożarowski Sun, 15 Feb 2009 20:38:48 +0100 + +pastedeploy (1.3.3-1) unstable; urgency=low + + [ Sandro Tosi ] + * debian/control + - switch Vcs-Browser field to viewsvn + + [ Piotr Ożarowski ] + * New upstream release + * Change Debian packaging license to match upstream + + -- Piotr Ożarowski Thu, 12 Feb 2009 20:27:12 +0100 + +pastedeploy (1.3.2-1) unstable; urgency=low + + * New upstream release + * Don't feed rst2html with new subdirectories of docs directory + * Standards-Version bumped to 3.8.0: + + debian/README.source file added + + -- Piotr Ożarowski Sat, 14 Jun 2008 11:46:40 +0200 + +pastedeploy (1.3.1-3) unstable; urgency=low + + * Replace python-setuptools with python-pkg-resources in Depends + (closes: #468715) + * Remove paste-common dependency, python-support will provide all needed + namespace + * Move paster_templates to /usr/share/ + + 01_change_templates_path patch added, dpatch added to build depends + + recommend python-pastescript (>= 1.6.2-3) + * Add "~" to python-setuptools minimum required build dependency to ease + backporting + + -- Piotr Ożarowski Sat, 24 May 2008 18:56:13 +0200 + +pastedeploy (1.3.1-2) unstable; urgency=low + + * Switch to python-support. All paste packages will now depend on + paste-common (>= 1.6-1) to make sure all use pysupport + * Compress binary package with bzip2 + * Homepage field added + * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now) + * Bump Standards-Version to 3.7.3 (no changes needed) + + -- Piotr Ożarowski Sat, 6 Oct 2007 23:46:42 +0200 + +pastedeploy (1.3.1-1) unstable; urgency=low + + * New upstream release + + -- Piotr Ożarowski Tue, 26 Jun 2007 20:56:38 +0200 + +pastedeploy (1.3-1) unstable; urgency=low + + * New upstream release + * Cleaned debian/rules file a little bit + + -- Piotr Ożarowski Wed, 11 Apr 2007 18:18:57 +0200 + +pastedeploy (1.1-2) unstable; urgency=low + + * Upload to unstable + * Changed my address to piotr@debian.org + + -- Piotr Ożarowski Sun, 08 Apr 2007 16:56:39 +0200 + +pastedeploy (1.1-1) experimental; urgency=low + + * New upstream release (upload to experimental due to Etch freeze) + * Added XS-Vcs-Svn and XS-Vcs-Browser fields to debian/control + + -- Piotr Ozarowski Mon, 18 Dec 2006 14:25:23 +0100 + +pastedeploy (1.0-1) unstable; urgency=low + + * New upstream release + * debian/rules cleaned: + + dh_python removed, dh_pycentral will generate all data now + + unneeded dh_installexamples, dh_strip and dh_shlibdeps calls removed + * debian/control: + + bumped debhelper and python-central required versions due to dh_python + call removal + + Homepage updated + * Test files are no longer installed as examples + * Added debian/pycompat file + + -- Piotr Ozarowski Mon, 23 Oct 2006 16:43:41 +0200 + +pastedeploy (0.9.6-1) unstable; urgency=low + + * New upstream release + * Documentation changes: + - Files are now generated from sources + - Add link in python-paste's docs + - Add python-docutils in build dependencies + - doc/news.txt file is installed as changelog + + -- Piotr Ozarowski Fri, 28 Jul 2006 01:00:54 +0200 + +pastedeploy (0.5-4) unstable; urgency=low + + * Update for the new python policy (closes: #373473) + * Convert to python-central + + -- Piotr Ozarowski Fri, 16 Jun 2006 00:19:46 +0200 + +pastedeploy (0.5-3) unstable; urgency=low + + * Common paste* modules file moved to paste-common package + + -- Piotr Ozarowski Sun, 14 May 2006 03:27:56 +0200 + +pastedeploy (0.5-2) unstable; urgency=low + + * Egg directory name fixed + + -- Piotr Ozarowski Wed, 10 May 2006 18:10:18 +0200 + +pastedeploy (0.5-1) unstable; urgency=low + + * Initial release (closes: #366041) + + -- Piotr Ozarowski Thu, 4 May 2006 18:26:28 +0200 + --- pastedeploy-1.3.3.orig/debian/compat +++ pastedeploy-1.3.3/debian/compat @@ -0,0 +1 @@ +5 --- pastedeploy-1.3.3.orig/debian/patches/00list +++ pastedeploy-1.3.3/debian/patches/00list @@ -0,0 +1,2 @@ +01_change_templates_path +02_enable-testsuite --- pastedeploy-1.3.3.orig/debian/patches/02_enable-testsuite.dpatch +++ pastedeploy-1.3.3/debian/patches/02_enable-testsuite.dpatch @@ -0,0 +1,67 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ +diff -Naurp PasteDeploy-1.3.3.orig/setup.py PasteDeploy-1.3.3/setup.py +--- PasteDeploy-1.3.3.orig/setup.py 2009-02-11 17:29:24.000000000 -0500 ++++ PasteDeploy-1.3.3/setup.py 2010-01-27 13:15:48.903127132 -0500 +@@ -39,6 +39,8 @@ For the latest changes see the `news fil + packages=find_packages(exclude='tests'), + include_package_data=True, + zip_safe=False, ++ test_suite='nose.collector', ++ tests_require=['nose>=0.11'], + extras_require={ + 'Config': [], + 'Paste': ['Paste'], +diff -Naurp PasteDeploy-1.3.3.orig/tests/conftest.py PasteDeploy-1.3.3/tests/conftest.py +--- PasteDeploy-1.3.3.orig/tests/conftest.py 2009-02-11 17:29:23.000000000 -0500 ++++ PasteDeploy-1.3.3/tests/conftest.py 1969-12-31 19:00:00.000000000 -0500 +@@ -1,14 +0,0 @@ +-import os +-import sys +- +-here = os.path.dirname(__file__) +-base = os.path.dirname(here) +-sys.path.insert(0, base) +- +-# We can only import this after we adjust the paths +-import pkg_resources +- +-# Make absolutely sure we're testing *this* package, not +-# some other installed package +-pkg_resources.require('PasteDeploy') +- +diff -Naurp PasteDeploy-1.3.3.orig/tests/__init__.py PasteDeploy-1.3.3/tests/__init__.py +--- PasteDeploy-1.3.3.orig/tests/__init__.py 1969-12-31 19:00:00.000000000 -0500 ++++ PasteDeploy-1.3.3/tests/__init__.py 2010-01-27 13:18:31.543126767 -0500 +@@ -0,0 +1,13 @@ ++import os ++import sys ++ ++here = os.path.dirname(__file__) ++base = os.path.dirname(here) ++sys.path.insert(0, base) ++ ++# We can only import this after we ajdust the paths ++import pkg_resources ++ ++# Make absolutely sure we're testing *this* package, no ++# some other installed package ++pkg_resources.require('PasteDeploy') +diff -Naurp PasteDeploy-1.3.3.orig/tests/test_config_middleware.py PasteDeploy-1.3.3/tests/test_config_middleware.py +--- PasteDeploy-1.3.3.orig/tests/test_config_middleware.py 2009-02-11 17:29:23.000000000 -0500 ++++ PasteDeploy-1.3.3/tests/test_config_middleware.py 2010-01-27 13:16:46.883126463 -0500 +@@ -1,6 +1,6 @@ ++from nose.tools import assert_raises + from paste.deploy.config import ConfigMiddleware + from paste.fixture import TestApp +-from py.test import raises + + class Bug(Exception): pass + +@@ -14,5 +14,5 @@ def app_with_exception(environ, start_re + def test_error(): + wrapped = ConfigMiddleware(app_with_exception, {'test': 1}) + test_app = TestApp(wrapped) +- raises(Bug, "test_app.get('/')") ++ assert_raises(Bug, test_app.get, '/') --- pastedeploy-1.3.3.orig/debian/patches/01_change_templates_path.dpatch +++ pastedeploy-1.3.3/debian/patches/01_change_templates_path.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_change_templates_path.dpatch by Piotr Ożarowski +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: paster's templates are outside site-packages in Debian + +@DPATCH@ +diff -urNad pastedeploy-1.3.1~/paste/deploy/paster_templates.py pastedeploy-1.3.1/paste/deploy/paster_templates.py +--- pastedeploy-1.3.1~/paste/deploy/paster_templates.py 2007-06-26 19:16:23.000000000 +0200 ++++ pastedeploy-1.3.1/paste/deploy/paster_templates.py 2008-05-24 18:54:27.000000000 +0200 +@@ -5,7 +5,7 @@ + + class PasteDeploy(Template): + +- _template_dir = 'paster_templates/paste_deploy' ++ _template_dir = '/usr/share/paster_templates/paste_deploy' + summary = "A web application deployed through paste.deploy" + + egg_plugins = ['PasteDeploy']