Merge lp:~salgado/linaro-image-tools/package-media-create into lp:linaro-image-tools/11.11

Proposed by Guilherme Salgado
Status: Merged
Merged at revision: 225
Proposed branch: lp:~salgado/linaro-image-tools/package-media-create
Merge into: lp:linaro-image-tools/11.11
Diff against target: 47 lines (+16/-2)
4 files modified
debian/control (+11/-0)
debian/python-linaro-media-create.install (+1/-0)
debian/rules (+3/-1)
setup.py (+1/-1)
To merge this branch: bzr merge lp:~salgado/linaro-image-tools/package-media-create
Reviewer Review Type Date Requested Status
Martin Ohlsson (community) Approve
Review via email: mp+42834@code.launchpad.net

Description of the change

Make a .deb out of the media_create python package.

To post a comment you must log in.
Revision history for this message
Martin Ohlsson (martin-ohlson) wrote :

+ Linaro images are generated by combining generic tarballs with
+ hardware-specific packs (hwpacks).
+ .
+ This package provides a python library to generate Linaro images and write
+ them to SD cards or image files that you can be boot in QEMU.

It looks like the word "be" before "boot in QEMU" shouldn't be there. And there seems to be a punctuation mark to much between the two sentences above.

Otherwise it look s good to me.

/Martin

review: Approve
Revision history for this message
Guilherme Salgado (salgado) wrote :

On Mon, 2010-12-06 at 13:32 +0000, Martin Ohlsson wrote:
> Review: Approve
> + Linaro images are generated by combining generic tarballs with
> + hardware-specific packs (hwpacks).
> + .
> + This package provides a python library to generate Linaro images and write
> + them to SD cards or image files that you can be boot in QEMU.
>
> It looks like the word "be" before "boot in QEMU" shouldn't be there. And there seems to be a punctuation mark to much between the two sentences above.

Indeed, that extra 'be' is leftover from a previous sentence I wrote,
but the line containing just the dot is, I think, a hack needed because
some of the packaging tools will drop blank lines. James can confirm
>
> Otherwise it look s good to me.

Thanks!

Revision history for this message
James Westby (james-w) wrote :

Hi,

It's usual to name the package after what you "import", so this would
be python-media-create I think.

You are correct about the blank lines.

Thanks,

James

Revision history for this message
Guilherme Salgado (salgado) wrote :

Ok, my only concern with that is python-media-create s too generic a name for a package, but then it's too generic a name for a module as well. Is that a big deal or is it ok to keep it as media-create for now?

Revision history for this message
Loïc Minier (lool) wrote :

I merged this, but then realized there were a number of small things which I changed subsequently:
- I added a dep on python-linaro-media-create to linaro-image-tools
- I dropped the dep on python-apt; I think this was a copy-paste from python-hwpack
- misc polish

Revision history for this message
Guilherme Salgado (salgado) wrote :

I didn't land this branch myself because there was one remaining
unresolved issue: the python package is called media_create whereas the
deb package is named python-linaro-media-create.

The easier thing to do would be to rename the deb to match the python
package's name, but media_create is too generic a name, so I wanted to
rename the python package to linaro_media_create.

Revision history for this message
Loïc Minier (lool) wrote :

I agree with you that media_create is too generic.

Would it make sense to rename the hwpack module+package as well for consistency?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2010-09-28 16:36:47 +0000
3+++ debian/control 2010-12-06 13:15:27 +0000
4@@ -34,3 +34,14 @@
5 .
6 This package provides a python library to aid with the creation of hardware
7 packs.
8+
9+Package: python-linaro-media-create
10+Architecture: all
11+Section: python
12+Depends: ${python:Depends}, python-apt, ${misc:Depends}
13+Description: python library for the creation of Linaro bootable media
14+ Linaro images are generated by combining generic tarballs with
15+ hardware-specific packs (hwpacks).
16+ .
17+ This package provides a python library to generate Linaro images and write
18+ them to SD cards or image files that you can be boot in QEMU.
19
20=== added file 'debian/python-linaro-media-create.install'
21--- debian/python-linaro-media-create.install 1970-01-01 00:00:00 +0000
22+++ debian/python-linaro-media-create.install 2010-12-06 13:15:27 +0000
23@@ -0,0 +1,1 @@
24+usr/lib/python*/dist-packages/media_create
25
26=== modified file 'debian/rules'
27--- debian/rules 2010-09-24 20:37:48 +0000
28+++ debian/rules 2010-12-06 13:15:27 +0000
29@@ -4,4 +4,6 @@
30 dh --buildsystem=python_distutils --with-addon=python-support $*
31
32 override_dh_auto_test:
33- python -m testtools.run hwpack.tests.test_suite
34+ # XXX: The test-suite currently fails on Lucid. What can we do about
35+ # it?
36+ python -m testtools.run tests.test_suite
37
38=== modified file 'setup.py'
39--- setup.py 2010-09-24 20:37:48 +0000
40+++ setup.py 2010-12-06 13:15:27 +0000
41@@ -20,5 +20,5 @@
42 setup(
43 name="hwpack",
44 version=get_version(),
45- packages=["hwpack"],
46+ packages=["hwpack", "media_create"],
47 )

Subscribers

People subscribed via source and target branches