Merge lp:~launchpad/convoy/packaging into lp:convoy

Proposed by okeamah david
Status: Work in progress
Proposed branch: lp:~launchpad/convoy/packaging
Merge into: lp:convoy
Diff against target: 263 lines (+223/-0)
8 files modified
debian/changelog (+76/-0)
debian/compat (+1/-0)
debian/control (+58/-0)
debian/convoy-common.install (+1/-0)
debian/convoy.wsgi (+32/-0)
debian/copyright (+36/-0)
debian/docs (+1/-0)
debian/rules (+18/-0)
To merge this branch: bzr merge lp:~launchpad/convoy/packaging
To post a comment you must log in.

Unmerged revisions

46. By Colin Watson

No-op commit to rebuild for production.

45. By Colin Watson

[r=lgp171188] Move /usr/share/convoy/convoy.wsgi to a new convoy-common package.

44. By Colin Watson

releasing package convoy version 0.4.4+bzr39-0lp5

43. By Colin Watson

Document earlier CONVOY_ROOT change.

42. By Colin Watson

Fix running of tests at package build time.

41. By Colin Watson

Add a python3-convoy binary package.

40. By Colin Watson

Run "wrap-and-sort -at".

39. By Colin Watson

Drop unused build-dependency on python-mocker.

38. By Colin Watson

Convert to pybuild.

37. By Colin Watson

[r=cjwatson] Set the default CONVOY_ROOT to the new dev domain.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian'
2=== added file 'debian/changelog'
3--- debian/changelog 1970-01-01 00:00:00 +0000
4+++ debian/changelog 2024-04-20 23:55:23 +0000
5@@ -0,0 +1,76 @@
6+convoy (0.4.4+bzr39-0lp6) UNRELEASED; urgency=medium
7+
8+ * Drop unused dependencies on python-cssutils/python3-cssutils.
9+ * Move /usr/share/convoy/convoy.wsgi to a new convoy-common package,
10+ allowing it to be used in Python-3-only setups.
11+
12+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 26 Aug 2022 19:44:41 +0100
13+
14+convoy (0.4.4+bzr39-0lp5) xenial; urgency=medium
15+
16+ [ zriv ]
17+ * Set the default CONVOY_ROOT to the new dev domain.
18+
19+ [ Colin Watson ]
20+ * Convert to pybuild.
21+ * Drop unused build-dependency on python-mocker.
22+ * Run "wrap-and-sort -at".
23+ * Add a python3-convoy binary package.
24+
25+ -- Colin Watson <cjwatson@ubuntu.com> Sat, 12 Oct 2019 00:10:20 +0100
26+
27+convoy (0.4.4+bzr39-0lp4) xenial; urgency=medium
28+
29+ * CONVOY_ROOT comes from the request environment under mod_wsgi. Adjust
30+ the previous change so that it copes with both mod_wsgi and gunicorn.
31+
32+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 29 Sep 2017 21:12:49 -0400
33+
34+convoy (0.4.4+bzr39-0lp3) xenial; urgency=medium
35+
36+ * Fix CONVOY_ROOT handling in convoy.wsgi: this must come from the process
37+ environment, not the request environment.
38+
39+ -- Colin Watson <cjwatson@ubuntu.com> Wed, 20 Sep 2017 12:24:23 +0100
40+
41+convoy (0.4.4+bzr39-0lp2) precise; urgency=medium
42+
43+ * Install symlinks on the Python module path to
44+ /usr/share/convoy/convoy.wsgi, so that it is importable as convoy.wsgi.
45+
46+ -- Colin Watson <cjwatson@ubuntu.com> Sat, 18 Feb 2017 13:38:43 +0000
47+
48+convoy (0.4.4+bzr39-0lp1) precise; urgency=medium
49+
50+ * New upstream snapshot.
51+ * Rebase packaging on Landscape's to avoid python-support.
52+ Remaining changes:
53+ - Install LP's /usr/share/convoy/convoy.wsgi.
54+ - Drop default no-op maintainer scripts.
55+
56+ -- William Grant <wgrant@ubuntu.com> Mon, 14 Nov 2016 18:49:22 +1100
57+
58+convoy (0.2.4-0~bzr26ubuntu1) oneiric; urgency=low
59+
60+ * Fix binary package build to use distutils, not the Makefile.
61+ * Rename binary package to python-convoy.
62+
63+ -- Steve Kowalik <stevenk@ubuntu.com> Thu, 26 Apr 2012 09:58:11 +1000
64+
65+convoy (0.2.4-0~bzr23ubuntu1) oneiric; urgency=low
66+
67+ * New upstream release.
68+
69+ -- Steve Kowalik <stevenk@ubuntu.com> Tue, 24 Apr 2012 11:30:25 +1000
70+
71+convoy (0.2.1-0~bzr17) oneiric; urgency=low
72+
73+ * New upstream release.
74+
75+ -- Steve Kowalik <stevenk@ubuntu.com> Fri, 27 Jan 2012 15:01:09 +1100
76+
77+convoy (0.2.0-0ubuntu1~precise1) precise; urgency=low
78+
79+ * Initial Release.
80+
81+ -- Steve Kowalik <stevenk@ubuntu.com> Fri, 20 Jan 2012 14:24:05 +1100
82
83=== added file 'debian/compat'
84--- debian/compat 1970-01-01 00:00:00 +0000
85+++ debian/compat 2024-04-20 23:55:23 +0000
86@@ -0,0 +1,1 @@
87+7
88
89=== added file 'debian/control'
90--- debian/control 1970-01-01 00:00:00 +0000
91+++ debian/control 2024-04-20 23:55:23 +0000
92@@ -0,0 +1,58 @@
93+Source: convoy
94+Section: python
95+Priority: extra
96+Maintainer: Launchpad Developers <launchpad-dev@lists.launchpad.net>
97+Build-Depends: debhelper (>= 7),
98+ dh-python,
99+ python-all,
100+ python-nose,
101+ python-paste,
102+ python-setuptools,
103+ python-webtest,
104+ python3-all,
105+ python3-nose,
106+ python3-paste,
107+ python3-setuptools,
108+ python3-webtest,
109+Standards-Version: 3.8.3
110+Homepage: https://launchpad.net/convoy
111+
112+Package: convoy-common
113+Architecture: all
114+Depends: ${misc:Depends},
115+Recommends: python3-convoy | python-convoy
116+Breaks: python-convoy (<< 0.4.4+bzr39-0lp6~)
117+Replaces: python-convoy (<< 0.4.4+bzr39-0lp6~)
118+Description: A combo loader WSGI application (common files)
119+ Provides a WSGI application that can be hooked up to a
120+ generic WSGI container to create a combo loader server, for
121+ loading Javascript and CSS files combined into a single
122+ request.
123+ .
124+ This package installs common files for both Python 2 and 3.
125+
126+Package: python-convoy
127+Architecture: all
128+Depends: convoy-common (= ${binary:Version}),
129+ ${misc:Depends},
130+ ${python:Depends},
131+Description: A combo loader WSGI application (Python 2)
132+ Provides a WSGI application that can be hooked up to a
133+ generic WSGI container to create a combo loader server, for
134+ loading Javascript and CSS files combined into a single
135+ request.
136+ .
137+ This package installs the combo loader for Python 2.
138+
139+Package: python3-convoy
140+Architecture: all
141+Depends: convoy-common (= ${binary:Version}),
142+ ${misc:Depends},
143+ ${python3:Depends},
144+Description: A combo loader WSGI application (Python 3)
145+ Provides a WSGI application that can be hooked up to a
146+ generic WSGI container to create a combo loader server, for
147+ loading Javascript and CSS files combined into a single
148+ request.
149+ .
150+ This package installs the combo loader for Python 3.
151
152=== added file 'debian/convoy-common.install'
153--- debian/convoy-common.install 1970-01-01 00:00:00 +0000
154+++ debian/convoy-common.install 2024-04-20 23:55:23 +0000
155@@ -0,0 +1,1 @@
156+debian/convoy.wsgi usr/share/convoy
157
158=== added file 'debian/convoy.wsgi'
159--- debian/convoy.wsgi 1970-01-01 00:00:00 +0000
160+++ debian/convoy.wsgi 2024-04-20 23:55:23 +0000
161@@ -0,0 +1,32 @@
162+# Convoy is a WSGI app for loading multiple files in the same request.
163+# Copyright (C) 2010-2012 Canonical, Ltd.
164+#
165+# This program is free software: you can redistribute it and/or modify
166+# it under the terms of the GNU Affero General Public License as
167+# published by the Free Software Foundation, either version 3 of the
168+# License, or (at your option) any later version.
169+#
170+# This program is distributed in the hope that it will be useful,
171+# but WITHOUT ANY WARRANTY; without even the implied warranty of
172+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
173+# GNU Affero General Public License for more details.
174+#
175+# You should have received a copy of the GNU Affero General Public License
176+# along with this program. If not, see <http://www.gnu.org/licenses/>.
177+
178+import os
179+
180+from convoy.combo import combo_app
181+
182+def application(environ, start_response):
183+ # CONVOY_ROOT may be set by SetEnv in Apache configuration, in which
184+ # case mod_wsgi passes it in the request environment. (This is safe
185+ # because HTTP headers end up in HTTP_*.)
186+ root = environ.get('CONVOY_ROOT')
187+ if root is None:
188+ # Alternatively, convoy may be run under a standalone WSGI server
189+ # such as gunicorn, in which case we need to look for CONVOY_ROOT in
190+ # the process environment.
191+ root = os.environ.get('CONVOY_ROOT', '/srv/launchpad.test/convoy')
192+ app = combo_app(root)
193+ return app(environ, start_response)
194
195=== added file 'debian/copyright'
196--- debian/copyright 1970-01-01 00:00:00 +0000
197+++ debian/copyright 2024-04-20 23:55:23 +0000
198@@ -0,0 +1,36 @@
199+This work was packaged for Debian by:
200+
201+ Sidnei da Silva <sidnei.da.silva@canonical.com> on Thu, 28 Jul 2011 08:26:39 -0300
202+
203+It was downloaded from:
204+
205+ https://launchpad.net/convoy
206+
207+Upstream Author(s):
208+
209+ Sidnei da Silva <sidnei.da.silva@canonical.com>
210+
211+Copyright:
212+
213+ <Copyright (C) 2011 Canonical Services Ltd>
214+
215+License:
216+
217+ This program is free software: you can redistribute it and/or modify
218+ it under the terms of the GNU Affero General Public License as
219+ published by the Free Software Foundation, either version 3 of the
220+ License, or (at your option) any later version.
221+
222+ This program is distributed in the hope that it will be useful,
223+ but WITHOUT ANY WARRANTY; without even the implied warranty of
224+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
225+ GNU Affero General Public License for more details.
226+
227+ You should have received a copy of the GNU Affero General Public License
228+ along with this program. If not, see <http://www.gnu.org/licenses/>.
229+
230+The Debian packaging is:
231+
232+ Copyright (C) 2011 Sidnei da Silva <sidnei.da.silva@canonical.com>
233+
234+and is licensed under the GNU Affero General Public License.
235
236=== added file 'debian/docs'
237--- debian/docs 1970-01-01 00:00:00 +0000
238+++ debian/docs 2024-04-20 23:55:23 +0000
239@@ -0,0 +1,1 @@
240+README
241
242=== added file 'debian/rules'
243--- debian/rules 1970-01-01 00:00:00 +0000
244+++ debian/rules 2024-04-20 23:55:23 +0000
245@@ -0,0 +1,18 @@
246+#! /usr/bin/make -f
247+
248+export PYBUILD_NAME := convoy
249+export PYBUILD_BEFORE_TEST := cp -a {dir}/convoy/tests {build_dir}/convoy/
250+export PYBUILD_AFTER_TEST := rm -rf {build_dir}/convoy/tests
251+
252+%:
253+ dh $@ --with python2,python3 --buildsystem pybuild
254+
255+override_dh_link:
256+ set -e; for py2 in $$(pyversions -vr); do \
257+ dh_link -ppython-convoy \
258+ usr/share/convoy/convoy.wsgi \
259+ usr/lib/python$$py2/dist-packages/convoy/wsgi.py; \
260+ done
261+ dh_link -ppython3-convoy \
262+ usr/share/convoy/convoy.wsgi \
263+ usr/lib/python3/dist-packages/convoy/wsgi.py

Subscribers

People subscribed via source and target branches