Merge lp:~ahasenack/lazr-js/lazr-js-packaging into lp:~landscape/lazr-js/trunk

Proposed by Andreas Hasenack
Status: Merged
Approved by: Gavin Panella
Approved revision: 184
Merged at revision: 190
Proposed branch: lp:~ahasenack/lazr-js/lazr-js-packaging
Merge into: lp:~landscape/lazr-js/trunk
Diff against target: 135 lines (+105/-0)
6 files modified
debian/changelog (+23/-0)
debian/compat (+1/-0)
debian/control (+30/-0)
debian/copyright (+40/-0)
debian/pycompat (+1/-0)
debian/rules (+10/-0)
To merge this branch: bzr merge lp:~ahasenack/lazr-js/lazr-js-packaging
Reviewer Review Type Date Requested Status
Gavin Panella (community) Approve
Landscape Pending
Review via email: mp+47104@code.launchpad.net

Description of the change

This branch introduces the debian/ directory for packaging. Had to struggle a bit with debian/changelog and recipes, which is what is being used to build this and put it in the lds-trunk PPA for now, where you can see a sample build.

To post a comment you must log in.
Revision history for this message
Gavin Panella (allenap) wrote :

Andreas, I am a packaging newb :) How do I get this to do something for me?

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

What do you want? To build a package, just run "debuild" inside the extracted directory. But I believe there is a package already in ubuntu for txaws.

Revision history for this message
Gavin Panella (allenap) wrote :

Thanks Andreas :)

> But I believe there is a package already in ubuntu for txaws.

This is lazr-js... or am I missing something?

On running debuild I get the following question:

{{{
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of python-lazr-js_1.5-0~bzr183.orig.tar.gz, python-lazr-js_1.5-0~bzr183.orig.tar.bz2,
python-lazr-js_1.5-0~bzr183.orig.tar.lzma, python-lazr-js_1.5-0~bzr183.orig.tar.xz or ahasenack--lazr-js-packaging.orig)
continue anyway? (y/n) y
}}}

If I continue, it eventually fails with:

{{{
Now signing changes and any dsc files...
 signfile python-lazr-js_1.5-0~bzr183-1.dsc Andreas Hasenack <email address hidden>
gpg: skipped "Andreas Hasenack <email address hidden>": secret key not available
gpg: /tmp/debsign.3uOGkH2M/python-lazr-js_1.5-0~bzr183-1.dsc: clearsign failed: secret key not available
debsign: gpg error occurred! Aborting....
debuild: fatal error at line 1258:
running debsign failed
}}}

Any ideas?

review: Needs Information
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Oh, sorry about the txaws comment :)

Yes, add -kyouremail to the debuild command. Like:
debuild -<email address hidden>

Or add -uc -us to skip the signing process.

Revision history for this message
Gavin Panella (allenap) wrote :

This installs fine and the scripts all seems to work okay. The only
downside I can see is that the lazr.js Python stuff can only be
imported using pkg_resources. That's not a major problem but feels a
bit wonky. If you happen to know how to fix this it would be cool, but
if not then I think it's okay to land as is.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I have no idea what pkg_resources is :)

Is this a case of a blind person leading the blind? :)

Revision history for this message
Gavin Panella (allenap) wrote :

Who <bumps head> turned out the lights?

I'll ask someone else to take a look at this :)

Revision history for this message
Gavin Panella (allenap) wrote :

I emailed internally for someone else to review this but no one has come forward, so let's just land it and move on.

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 2011-01-21 20:52:04 +0000
5@@ -0,0 +1,23 @@
6+python-lazr-js (1.5-0~bzr183-1) lucid; urgency=low
7+
8+ * Simpler versioning scheme for the package.
9+
10+ -- Andreas Hasenack <andreas@canonical.com> Tue, 21 Jan 2011 11:19:37 -0200
11+
12+python-lazr-js (1.5-0~bzr178-0landscape1) lucid; urgency=low
13+
14+ * Updated with trunk.
15+
16+ -- Andreas Hasenack <andreas@canonical.com> Mon, 17 Jan 2011 18:16:10 -0200
17+
18+python-lazr-js (1.5) lucid; urgency=low
19+
20+ * added missing build depends on python-setuptools
21+
22+ -- Andreas Hasenack <andreas@canonical.com> Tue, 11 Jan 2011 14:34:47 -0200
23+
24+python-lazr-js (1.5~bzr166-0landscape1) lucid; urgency=low
25+
26+ * Revision 166 of production branch.
27+
28+ -- Andreas Hasenack <andreas@canonical.com> Fri, 07 Jan 2011 16:37:24 -0200
29
30=== added file 'debian/compat'
31--- debian/compat 1970-01-01 00:00:00 +0000
32+++ debian/compat 2011-01-21 20:52:04 +0000
33@@ -0,0 +1,1 @@
34+7
35
36=== added file 'debian/control'
37--- debian/control 1970-01-01 00:00:00 +0000
38+++ debian/control 2011-01-21 20:52:04 +0000
39@@ -0,0 +1,30 @@
40+Source: python-lazr-js
41+Section: web
42+Priority: optional
43+XS-Python-Version: >= 2.5
44+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
45+Build-Depends: debhelper (>= 7.2.11), python-central (>= 0.5), python,
46+ python-setuptools
47+Homepage: https://launchpad.net/lazr-js
48+Standards-Version: 3.8.4
49+
50+Package: python-lazr-js
51+Architecture: all
52+Depends: ${python:Depends}, ${misc:Depends}, python-cssutils
53+Provides: ${python:Provides}, ${misc:Depends}
54+XB-Python-Version: ${python:Versions}
55+Description: Canonical uses the LAZR projects to power Launchpad, Landscape,
56+ and other applications. They conform to our code quality standards,
57+ including automated tests; and they come from our state-of-the-art development
58+ process, including peer reviews. We hope that you find them useful.
59+ .
60+ LAZR projects are primarily written in Python. Many are libraries, but some
61+ assemble several dependencies into small frameworks. When persistent storage
62+ is needed, the projects usually use the STORM object-relational mapper. When
63+ a JavaScript library is appropriate, we use YUI 3. We often use libraries from
64+ the Zope 3 project, particularly zope.interface, as also used by projects such
65+ as Twisted and Trac.
66+ .
67+ This package contains LAZR's collection of javascript and supporting python
68+ code to minify and combine files for deployment.
69+
70
71=== added file 'debian/copyright'
72--- debian/copyright 1970-01-01 00:00:00 +0000
73+++ debian/copyright 2011-01-21 20:52:04 +0000
74@@ -0,0 +1,40 @@
75+This work was packaged for Debian by
76+
77+ Andreas Hasenack <andreas@canonical.com> on Fri, 7 Jan 2011 16:21:21 -0200
78+
79+It was downloaded from:
80+
81+ https://code.launchpad.net/lazr-js
82+
83+Upstream Author:
84+
85+ LAZR Developers <lazr-users@lists.launchpad.net>
86+
87+Copyright:
88+
89+ Copyright (C) 2010 Canonical
90+
91+License:
92+
93+ This program is free software: you can redistribute it and/or modify
94+ it under the terms of the GNU General Public License as published by
95+ the Free Software Foundation, either version 3 of the License, or
96+ (at your option) any later version.
97+
98+ This package is distributed in the hope that it will be useful,
99+ but WITHOUT ANY WARRANTY; without even the implied warranty of
100+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
101+ GNU General Public License for more details.
102+
103+ You should have received a copy of the GNU General Public License
104+ along with this program. If not, see <http://www.gnu.org/licenses/>.
105+
106+On Debian systems, the complete text of the GNU General
107+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
108+
109+The Debian packaging is:
110+
111+ Copyright (C) 2010 Andreas Hasenack <andreas@canonical.com>
112+
113+and is licensed under the GPL version 3, see above.
114+
115
116=== added file 'debian/pycompat'
117--- debian/pycompat 1970-01-01 00:00:00 +0000
118+++ debian/pycompat 2011-01-21 20:52:04 +0000
119@@ -0,0 +1,1 @@
120+2
121
122=== added file 'debian/rules'
123--- debian/rules 1970-01-01 00:00:00 +0000
124+++ debian/rules 2011-01-21 20:52:04 +0000
125@@ -0,0 +1,10 @@
126+#!/usr/bin/make -f
127+
128+%:
129+ dh $@
130+
131+override_dh_auto_build:
132+ /bin/true
133+
134+override_dh_auto_install:
135+ dh_auto_install -S python_distutils $@

Subscribers

People subscribed via source and target branches