Adam Litke has uploaded a new change for review. Change subject: Move jobs.py to lib/vdsm ......................................................................
Move jobs.py to lib/vdsm The host jobs infrastructure in jobs.py is general purpose and belongs in the vdsm-python package. The qemuimg.py module (in vdsm-python) wants to make use of jobs.py and we don't want to add a dependency from qemuimg.py "library" to any python files in the vdsm package. Change-Id: Icb8234d4a033ccacabfe292e6ec1baf3b2d2e18f Signed-off-by: Adam Litke <ali...@redhat.com> --- M lib/vdsm/Makefile.am R lib/vdsm/jobs.py M tests/jobsTests.py M vdsm.spec.in M vdsm/Makefile.am 5 files changed, 3 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/41/46141/1 diff --git a/lib/vdsm/Makefile.am b/lib/vdsm/Makefile.am index 33826d8..78df15a 100644 --- a/lib/vdsm/Makefile.am +++ b/lib/vdsm/Makefile.am @@ -31,6 +31,7 @@ exception.py \ executor.py \ ipwrapper.py \ + jobs.py \ jsonrpcvdscli.py \ libvirtconnection.py \ m2cutils.py \ diff --git a/vdsm/jobs.py b/lib/vdsm/jobs.py similarity index 100% rename from vdsm/jobs.py rename to lib/vdsm/jobs.py diff --git a/tests/jobsTests.py b/tests/jobsTests.py index dbed473..373c916 100644 --- a/tests/jobsTests.py +++ b/tests/jobsTests.py @@ -19,8 +19,7 @@ import uuid -import jobs -from vdsm import response +from vdsm import jobs, response from testlib import VdsmTestCase, expandPermutations, permutations diff --git a/vdsm.spec.in b/vdsm.spec.in index 90f52f8..c93a992 100644 --- a/vdsm.spec.in +++ b/vdsm.spec.in @@ -790,7 +790,6 @@ %{_datadir}/%{vdsm_name}/hooking.py* %{_datadir}/%{vdsm_name}/hooks.py* %{_datadir}/%{vdsm_name}/hostdev.py* -%{_datadir}/%{vdsm_name}/jobs.py* %{_datadir}/%{vdsm_name}/mk_sysprep_floppy %{_datadir}/%{vdsm_name}/parted_utils.py* %{_datadir}/%{vdsm_name}/mkimage.py* @@ -1035,6 +1034,7 @@ %{python_sitelib}/%{vdsm_name}/exception.py* %{python_sitelib}/%{vdsm_name}/executor.py* %{python_sitelib}/%{vdsm_name}/ipwrapper.py* +%{python_sitelib}/%{vdsm_name}/jobs.py* %{python_sitelib}/%{vdsm_name}/jsonrpcvdscli.py* %{python_sitelib}/%{vdsm_name}/libvirtconnection.py* %{python_sitelib}/%{vdsm_name}/m2cutils.py* diff --git a/vdsm/Makefile.am b/vdsm/Makefile.am index d65a3f5..8a61635 100644 --- a/vdsm/Makefile.am +++ b/vdsm/Makefile.am @@ -32,7 +32,6 @@ hooking.py \ hooks.py \ hostdev.py \ - jobs.py \ kaxmlrpclib.py \ logUtils.py \ mkimage.py \ -- To view, visit https://gerrit.ovirt.org/46141 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icb8234d4a033ccacabfe292e6ec1baf3b2d2e18f Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Adam Litke <ali...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches