[jenkins-ci PATCH 1/2] guests: Install Python 3 dependencies for virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



virt-manager is Python 3 only now, so we need to update the
list of packages that gets installed on our guests. In some
cases the Python 3 build of the dependency is not available,
so we have no choice but to stop building virt-manager there.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/host_vars/libvirt-centos-7/main.yml  |  1 -
 guests/host_vars/libvirt-debian-8/main.yml  |  1 -
 guests/host_vars/libvirt-ubuntu-14/main.yml |  1 -
 guests/host_vars/libvirt-ubuntu-16/main.yml |  1 -
 guests/vars/mappings.yml                    | 41 ++++++++++++++++-------------
 guests/vars/projects/virt-manager.yml       |  8 +++---
 6 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/guests/host_vars/libvirt-centos-7/main.yml b/guests/host_vars/libvirt-centos-7/main.yml
index 30c826a..8338f99 100644
--- a/guests/host_vars/libvirt-centos-7/main.yml
+++ b/guests/host_vars/libvirt-centos-7/main.yml
@@ -13,5 +13,4 @@ projects:
   - libvirt-sandbox
   - osinfo-db
   - osinfo-db-tools
-  - virt-manager
   - virt-viewer
diff --git a/guests/host_vars/libvirt-debian-8/main.yml b/guests/host_vars/libvirt-debian-8/main.yml
index f097792..ecf9cd3 100644
--- a/guests/host_vars/libvirt-debian-8/main.yml
+++ b/guests/host_vars/libvirt-debian-8/main.yml
@@ -11,5 +11,4 @@ projects:
   - libvirt-python
   - libvirt-tck
   - osinfo-db-tools
-  - virt-manager
   - virt-viewer
diff --git a/guests/host_vars/libvirt-ubuntu-14/main.yml b/guests/host_vars/libvirt-ubuntu-14/main.yml
index 18b013d..c11dd5b 100644
--- a/guests/host_vars/libvirt-ubuntu-14/main.yml
+++ b/guests/host_vars/libvirt-ubuntu-14/main.yml
@@ -7,5 +7,4 @@ projects:
   - libvirt-python
   - libvirt-tck
   - osinfo-db-tools
-  - virt-manager
   - virt-viewer
diff --git a/guests/host_vars/libvirt-ubuntu-16/main.yml b/guests/host_vars/libvirt-ubuntu-16/main.yml
index 7baecf7..190f174 100644
--- a/guests/host_vars/libvirt-ubuntu-16/main.yml
+++ b/guests/host_vars/libvirt-ubuntu-16/main.yml
@@ -11,5 +11,4 @@ projects:
   - libvirt-sandbox
   - libvirt-tck
   - osinfo-db-tools
-  - virt-manager
   - virt-viewer
diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml
index 440123c..579deb4 100644
--- a/guests/vars/mappings.yml
+++ b/guests/vars/mappings.yml
@@ -555,21 +555,6 @@ mappings:
     pkg: python27
     rpm: python2-devel
 
-  python2-gi:
-    deb: python-gi
-    pkg: py27-gobject3
-    rpm: python-gobject
-    CentOS6:
-
-  python2-ipaddr:
-    default: python-ipaddr
-    FreeBSD: py27-ipaddr
-
-  python2-libxml2:
-    default: python-libxml2
-    pkg: py27-libxml2
-    CentOS: libxml2-python
-
   python2-lxml:
     default: python-lxml
     Fedora: python2-lxml
@@ -580,16 +565,28 @@ mappings:
     Fedora: python2-nose
     FreeBSD: py27-nose
 
-  python2-requests:
-    default: python-requests
-    Fedora: python2-requests
-    FreeBSD: py27-requests
+  python3:
+    default: python3
+    CentOS:
 
   python3-devel:
     deb: python3-dev
     pkg: python36
     Fedora: python3-devel
 
+  python3-gi:
+    deb: python3-gi
+    pkg: py36-gobject3
+    rpm: python3-gobject
+    CentOS:
+
+  python3-libxml2:
+    default: python3-libxml2
+    FreeBSD: py36-libxml2
+    CentOS:
+    Ubuntu:
+    Debian8:
+
   python3-lxml:
     default: python3-lxml
     FreeBSD: py36-lxml
@@ -600,6 +597,12 @@ mappings:
     FreeBSD: py36-nose
     CentOS:
 
+  python3-requests:
+    default: python3-requests
+    FreeBSD: py36-requests
+    CentOS:
+    Ubuntu12:
+
   qemu-img:
     default: qemu-utils
     rpm: qemu-img
diff --git a/guests/vars/projects/virt-manager.yml b/guests/vars/projects/virt-manager.yml
index 474017f..e9e5324 100644
--- a/guests/vars/projects/virt-manager.yml
+++ b/guests/vars/projects/virt-manager.yml
@@ -1,8 +1,8 @@
 ---
 packages:
   - intltool
-  - python2-gi
-  - python2-ipaddr
-  - python2-libxml2
-  - python2-requests
+  - python3
+  - python3-gi
+  - python3-libxml2
+  - python3-requests
   - unzip
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux