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

Subscribers

People subscribed via source and target branches