Merge lp:~nuclearbob/utah/parser-packaging into lp:utah

Proposed by Max Brustkern
Status: Merged
Approved by: Joe Talbott
Approved revision: 761
Merged at revision: 761
Proposed branch: lp:~nuclearbob/utah/parser-packaging
Merge into: lp:utah
Diff against target: 58 lines (+18/-1)
2 files modified
debian/control (+7/-0)
debian/rules (+11/-1)
To merge this branch: bzr merge lp:~nuclearbob/utah/parser-packaging
Reviewer Review Type Date Requested Status
Joe Talbott (community) Approve
Review via email: mp+136971@code.launchpad.net

Description of the change

This branch creates a utah-parser binary package, built from the same utah source package as the existing packages. It contains only the utah/parser.py python module, which is now no longer in the main utah package.

To post a comment you must log in.
Revision history for this message
Joe Talbott (joetalbott) wrote :

Looks good. Thanks

review: Approve

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 2012-11-08 17:23:31 +0000
3+++ debian/control 2012-11-29 15:54:12 +0000
4@@ -29,3 +29,10 @@
5 Recommends: git
6 Description: Ubuntu Test Automation Harness Client
7 Automation framework for testing in Ubuntu, client portion
8+
9+Package: utah-parser
10+Architecture: all
11+Depends: ${misc:Depends}, ${python:Depends},
12+ python-jsonschema (>= 0.5~), python-yaml
13+Description: Ubuntu Test Automation Harness Parser
14+ Automation framework for testing in Ubuntu, result parser
15
16=== modified file 'debian/rules'
17--- debian/rules 2012-09-26 15:22:25 +0000
18+++ debian/rules 2012-11-29 15:54:12 +0000
19@@ -18,12 +18,16 @@
20
21 override_dh_auto_install:
22 # utah and utah-client both live in the utah directory
23+ # utah-parser lives in that tree as well
24 # utah should only install the provisioning subdirectory, and utah-client should install everything else
25+ # except parser.py, which is now its own package
26 # If we just use dh_auto_install, both packages will get everything
27 # We start by building the whole thing
28 set -e && for pyvers in $(PYVERS); do python$$pyvers setup.py install --install-layout=deb --root=$(CURDIR); done
29 # Next, we move the built provisioning directory aside for later use
30 mv build/*/utah/provisioning .
31+ # Same with parser.py
32+ mv build/*/utah/parser.py .
33 # Now we install into the utah-client directory, since provisioning is removed, using --skip-build to not rebuild it
34 set -e && for pyvers in $(PYVERS); do python$$pyvers setup.py install --skip-build --install-layout=deb --root=$(CURDIR)/debian/utah-client; done
35 # Now we remove everything we don't want in the utah package (i.e., everything that's still there)
36@@ -32,15 +36,21 @@
37 mv provisioning build/*/utah
38 # Now we install just the provisioning directory, again using --skip-build into the utah package tree
39 set -e && for pyvers in $(PYVERS); do python$$pyvers setup.py install --skip-build --install-layout=deb --root=$(CURDIR)/debian/utah; done
40+ # And now we put back the parser and install that
41+ rm -r build/*/utah/*
42+ mv parser.py build/*/utah
43+ set -e && for pyvers in $(PYVERS); do python$$pyvers setup.py install --skip-build --install-layout=deb --root=$(CURDIR)/debian/utah-parser; done
44 # Since the client changes names from client.py to utah, we can't use utah-client.install for that
45 # We also need to make our directory since we do this before dh_auto_install
46 mkdir -p $(CURDIR)/debian/utah-client/usr/bin
47 cp -aL client.py $(CURDIR)/debian/utah-client/usr/bin/utah
48 # phoenix.py needs to be in here to lose the .py
49 cp -aL utah/client/phoenix.py $(CURDIR)/debian/utah-client/usr/bin/phoenix
50- # Since utah and utah-client both got install using python distutils, they both get an egg info directory
51+ # Since utah and utah-client both got installed using python distutils, they both get an egg info directory
52 # This will conflict if we leave it in both of them, so we remove it from the client
53 rm -r $(CURDIR)/debian/utah-client/usr/lib/python*/dist-packages/utah-*.egg-info
54+ # Let's remove it from the parser as well
55+ rm -r $(CURDIR)/debian/utah-parser/usr/lib/python*/dist-packages/utah-*.egg-info
56 # We want to symlink the utah example scripts into /usr/bin, and we need a directory for that
57 mkdir -p $(CURDIR)/debian/utah/usr/bin
58 for script in $$(find examples -type f -name "*.py" -printf "%f\n"); do\

Subscribers

People subscribed via source and target branches