Codebase list pastedeploy / a5e4cad
* 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 15 years ago
6 changed file(s) with 49 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 pastedeploy (1.3.1-3) UNRELEASED; urgency=low
0 pastedeploy (1.3.1-3) unstable; urgency=low
11
22 * Replace python-setuptools with python-pkg-resources in Depends
33 (closes: #468715)
44 * Remove paste-common dependency, python-support will provide all needed
55 namespace
6 * Move paster_templates to /usr/share/
7 + 01_change_templates_path patch added, dpatch added to build depends
8 + recommend python-pastescript (>= 1.6.2-3)
9 * Add "~" to python-setuptools minimum required build dependency to ease
10 backporting
611
7 -- Piotr Ożarowski <piotr@debian.org> Sat, 26 Apr 2008 18:21:58 +0200
12 -- Piotr Ożarowski <piotr@debian.org> Sat, 24 May 2008 18:56:13 +0200
813
914 pastedeploy (1.3.1-2) unstable; urgency=low
1015
22 Priority: optional
33 Maintainer: Piotr Ożarowski <piotr@debian.org>
44 Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
5 Build-Depends: debhelper (>= 5)
6 Build-Depends-Indep: python (>= 2.3.5-11), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1), python-docutils
5 Build-Depends: debhelper (>= 5), dpatch
6 Build-Depends-Indep: python (>= 2.3.5-11), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~), python-docutils
77 Standards-Version: 3.7.3
88 Homepage: http://pythonpaste.org/deploy/
99 XS-Python-Version: all
1313 Package: python-pastedeploy
1414 Architecture: all
1515 Depends: ${python:Depends}, python-pkg-resources
16 Recommends: python-pastescript (>= 1.6.2-3)
1617 XB-Python-Version: ${python:Versions}
1718 Enhances: python-paste
1819 Description: Load, configure, and compose WSGI applications and servers
22
33 It was downloaded from http://pypi.python.org/pypi/PasteDeploy
44
5 Copyright Holder: Ian Bicking <ianb@colorstudy.com>
5 Copyright (c) 2005-2007 Ian Bicking <ianb@colorstudy.com> and Contributors
66
77 License: MIT License
88
0 01_change_templates_path
0 #! /bin/sh /usr/share/dpatch/dpatch-run
1 ## 01_change_templates_path.dpatch by Piotr Ożarowski <piotr@debian.org>
2 ##
3 ## All lines beginning with `## DP:' are a description of the patch.
4 ## DP: paster's templates are outside site-packages in Debian
5
6 @DPATCH@
7 diff -urNad pastedeploy-1.3.1~/paste/deploy/paster_templates.py pastedeploy-1.3.1/paste/deploy/paster_templates.py
8 --- pastedeploy-1.3.1~/paste/deploy/paster_templates.py 2007-06-26 19:16:23.000000000 +0200
9 +++ pastedeploy-1.3.1/paste/deploy/paster_templates.py 2008-05-24 18:54:27.000000000 +0200
10 @@ -5,7 +5,7 @@
11
12 class PasteDeploy(Template):
13
14 - _template_dir = 'paster_templates/paste_deploy'
15 + _template_dir = '/usr/share/paster_templates/paste_deploy'
16 summary = "A web application deployed through paste.deploy"
17
18 egg_plugins = ['PasteDeploy']
44 DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
55 PYVERS=$(shell pyversions -vr)
66 DOCS=$(shell cd docs && find ./ -name "*.txt" -not -name "license.txt" -printf "%p " | sed "s/.txt//g")
7 PKGDIR=$(CURDIR)/debian/python-pastedeploy
78
8 clean:
9 include /usr/share/dpatch/dpatch.make
10
11 clean: unpatch
912 dh_testdir
1013 dh_testroot
1114 rm -rf dist build
1215 find . -name '*\.py[co]' -delete
1316 dh_clean build-docs $(PYVERS:%=install-python%)
1417
15 build: build-docs
18 build: patch build-docs
1619
1720 build-docs:
1821 dh_installdirs
1922 for NAME in $(DOCS); do \
2023 rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \
21 > "debian/python-pastedeploy/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \
24 > "$(PKGDIR)/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \
2225 done
2326 touch $@
2427
2528 install: build $(PYVERS:%=install-python%)
26 install-python%:
29 install-python%: patch
2730 python$* setup.py install \
2831 --single-version-externally-managed \
29 --root $(CURDIR)/debian/python-pastedeploy
32 --root $(PKGDIR)
3033 # pth file is not needed
31 rm -f debian/python-pastedeploy/usr/lib/python$*/site-packages/PasteDeploy-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
32 # provided by paste-common package:
33 rm -f debian/python-pastedeploy/usr/lib/python$*/site-packages/pastedeploy/paste/__init__.py
34 rm -f $(PKGDIR)/usr/lib/python$*/site-packages/PasteDeploy-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
35 # python-support's namespace feature will handle this
36 rm -f $(PKGDIR)/usr/lib/python$*/site-packages/paste/__init__.py
37 # move templates outside site-packages
38 if [ -d $(PKGDIR)/usr/share/paster_templates ]; \
39 then rm -rf $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates; \
40 else \
41 mv $(PKGDIR)/usr/lib/python$*/site-packages/paste/deploy/paster_templates \
42 $(PKGDIR)/usr/share/;\
43 fi
3444
3545 binary-indep: build install
3646 dh_testdir -i