Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2018-03-09 10:43:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Fri Mar  9 10:43:39 2018 rev:10 rq:583110 version:4.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2018-01-26 13:40:12.895290095 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new/python-libvirt-python.changes
 2018-03-09 10:43:43.792872090 +0100
@@ -1,0 +2,6 @@
+Mon Mar  5 18:20:19 UTC 2018 - jfeh...@suse.com
+
+- Update to 4.1.0
+  - Add all new APIs and constants in libvirt 4.1.0
+
+-------------------------------------------------------------------

Old:
----
  libvirt-python-4.0.0.tar.gz
  libvirt-python-4.0.0.tar.gz.asc

New:
----
  libvirt-python-4.1.0.tar.gz
  libvirt-python-4.1.0.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.QG7Gbz/_old  2018-03-09 10:43:44.560844430 +0100
+++ /var/tmp/diff_new_pack.QG7Gbz/_new  2018-03-09 10:43:44.560844430 +0100
@@ -19,8 +19,8 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define srcname libvirt-python
 Name:           python-libvirt-python
-Url:            http://libvirt.org/
-Version:        4.0.0
+Url:            https://libvirt.org/
+Version:        4.1.0
 Release:        0
 Summary:        Library providing a virtualization API
 License:        LGPL-2.1+

++++++ libvirt-python-4.0.0.tar.gz -> libvirt-python-4.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/AUTHORS 
new/libvirt-python-4.1.0/AUTHORS
--- old/libvirt-python-4.0.0/AUTHORS    2018-01-19 12:15:12.000000000 +0100
+++ new/libvirt-python-4.1.0/AUTHORS    2018-03-05 11:52:35.000000000 +0100
@@ -18,11 +18,13 @@
    Cédric Bosdonnat <cbosdon...@suse.com>
    Dan Kenigsberg <dan...@redhat.com>
    Daniel P. Berrange <berra...@redhat.com>
+   Daniel P. Berrangé <berra...@redhat.com>
    Daniel Veillard <veill...@redhat.com>
    Diego Elio Pettenò <flamee...@gmail.com>
    Dmitry Guryanov <dgurya...@parallels.com>
    Don Dugger <donald.d.dug...@intel.com>
    Doug Goldstein <car...@cardoe.com>
+   Edgar Kaziakhmedov <edgar.kaziakhme...@virtuozzo.com>
    Eric Blake <ebl...@redhat.com>
    Federico Simoncelli <fsimo...@redhat.com>
    Giuseppe Scrivano <gscri...@redhat.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/ChangeLog 
new/libvirt-python-4.1.0/ChangeLog
--- old/libvirt-python-4.0.0/ChangeLog  2018-01-19 12:15:12.000000000 +0100
+++ new/libvirt-python-4.1.0/ChangeLog  2018-03-05 11:52:35.000000000 +0100
@@ -1,3 +1,58 @@
+2018-03-05 Daniel Veillard  <veill...@redhat.com>
+    
+    Release of libvirt-python 4.1.0
+    
+    
+2018-02-19 Pavel Hrdina  <phrd...@redhat.com>
+    
+    Fix virPyDictToTypedParams type hint for block copy params
+    Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>
+    
+    
+2018-02-19 Pavel Hrdina  <phrd...@redhat.com>
+    
+    Add missing virPyDictToTypedParams hint for migration params
+    Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>
+    
+    
+2018-02-19 Pavel Hrdina  <phrd...@redhat.com>
+    
+    Fix order of virPyDictToTypedParams hints
+    This corresponds to the order in libvirt-domain.h header file.
+    
+    Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>
+    
+    
+2018-02-19 Pavel Hrdina  <phrd...@redhat.com>
+    
+    Use static variables to store virPyDictToTypedParams hints
+    There is no need to have dynamic allocation every time the API
+    is called.  Rewrites commit <314b2346df>.
+    
+    Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>
+    
+    
+2018-02-19 Edgar Kaziakhmedov  <edgar.kaziakhme...@virtuozzo.com>
+    
+    Set hints for virPyDictToTypedParams
+    Predefine hints for all parameters possible to avoid wrong type
+    convert.
+    
+    
+    
+2018-02-09 Daniel P. Berrangé  <berra...@redhat.com>
+    
+    tests: add special case for virStoragePoolLookupByTargetPath
+    This new API trips up the sanity test for checking mapping of
+    all C APIs into Python.
+    
+    
+    
+2018-02-06 Jiri Denemark  <jdene...@redhat.com>
+    
+    event-test.py: Remove extra ( in --help output
+    
+    
 2018-01-19 Daniel Veillard  <veill...@redhat.com>
     
     Release of libvirt-python-4.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/PKG-INFO 
new/libvirt-python-4.1.0/PKG-INFO
--- old/libvirt-python-4.0.0/PKG-INFO   2018-01-19 12:15:12.000000000 +0100
+++ new/libvirt-python-4.1.0/PKG-INFO   2018-03-05 11:52:36.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: libvirt-python
-Version: 4.0.0
+Version: 4.1.0
 Summary: The libvirt virtualization API python binding
 Home-page: http://www.libvirt.org
 Author: Libvirt Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/examples/event-test.py 
new/libvirt-python-4.1.0/examples/event-test.py
--- old/libvirt-python-4.0.0/examples/event-test.py     2017-12-04 
18:31:00.000000000 +0100
+++ new/libvirt-python-4.1.0/examples/event-test.py     2018-03-05 
10:13:09.000000000 +0100
@@ -666,8 +666,8 @@
 def usage():
     print("usage: "+os.path.basename(sys.argv[0])+" [-hdl] [uri]")
     print("   uri will default to qemu:///system")
-    print("   --help, -h   Print(this help message")
-    print("   --debug, -d  Print(debug output")
+    print("   --help, -h   Print this help message")
+    print("   --debug, -d  Print debug output")
     print("   --loop=TYPE, -l   Choose event-loop-implementation (native, 
poll, asyncio)")
     print("   --timeout=SECS  Quit after SECS seconds running")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/libvirt-override.c 
new/libvirt-python-4.1.0/libvirt-override.c
--- old/libvirt-python-4.0.0/libvirt-override.c 2018-01-19 12:12:33.000000000 
+0100
+++ new/libvirt-python-4.1.0/libvirt-override.c 2018-03-05 10:13:09.000000000 
+0100
@@ -7739,6 +7739,26 @@
 #endif /* LIBVIR_CHECK_VERSION(3, 7, 0) */
 
 #if LIBVIR_CHECK_VERSION(1, 1, 0)
+static virPyTypedParamsHint virPyDomainMigrate3Params[] = {
+    { VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_DEST_XML, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_PERSIST_XML, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_BANDWIDTH, VIR_TYPED_PARAM_ULLONG },
+    { VIR_MIGRATE_PARAM_GRAPHICS_URI, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_LISTEN_ADDRESS, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_MIGRATE_DISKS, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_DISKS_PORT, VIR_TYPED_PARAM_INT },
+    { VIR_MIGRATE_PARAM_COMPRESSION, VIR_TYPED_PARAM_STRING },
+    { VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL, VIR_TYPED_PARAM_INT },
+    { VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS, VIR_TYPED_PARAM_INT },
+    { VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS, VIR_TYPED_PARAM_INT },
+    { VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE, VIR_TYPED_PARAM_ULLONG },
+    { VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL, VIR_TYPED_PARAM_INT },
+    { VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT, VIR_TYPED_PARAM_INT },
+};
+
+
 static PyObject *
 libvirt_virDomainMigrate3(PyObject *self ATTRIBUTE_UNUSED,
                           PyObject *args)
@@ -7750,7 +7770,7 @@
     PyObject *dict;
     unsigned int flags;
     virTypedParameterPtr params;
-    int nparams;
+    int nparams = 0;
     virDomainPtr ddom = NULL;
 
     if (!PyArg_ParseTuple(args, (char *) "OOOI:virDomainMigrate3",
@@ -7760,8 +7780,11 @@
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
     dconn = (virConnectPtr) PyvirConnect_Get(pyobj_dconn);
 
-    if (virPyDictToTypedParams(dict, &params, &nparams, NULL, 0) < 0)
+    if (virPyDictToTypedParams(dict, &params, &nparams,
+                               virPyDomainMigrate3Params,
+                               VIR_N_ELEMENTS(virPyDomainMigrate3Params)) < 0) 
{
         return NULL;
+    }
 
     LIBVIRT_BEGIN_ALLOW_THREADS;
     ddom = virDomainMigrate3(domain, dconn, params, nparams, flags);
@@ -7790,8 +7813,11 @@
 
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
 
-    if (virPyDictToTypedParams(dict, &params, &nparams, NULL, 0) < 0)
+    if (virPyDictToTypedParams(dict, &params, &nparams,
+                               virPyDomainMigrate3Params,
+                               VIR_N_ELEMENTS(virPyDomainMigrate3Params)) < 0) 
{
         return NULL;
+    }
 
     LIBVIRT_BEGIN_ALLOW_THREADS;
     ret = virDomainMigrateToURI3(domain, dconnuri, params, nparams, flags);
@@ -8639,6 +8665,13 @@
 }
 
 
+static virPyTypedParamsHint virPyDomainBlockCopyParams[] = {
+    { VIR_DOMAIN_BLOCK_COPY_BANDWIDTH, VIR_TYPED_PARAM_ULLONG },
+    { VIR_DOMAIN_BLOCK_COPY_GRANULARITY, VIR_TYPED_PARAM_UINT },
+    { VIR_DOMAIN_BLOCK_COPY_BUF_SIZE, VIR_TYPED_PARAM_ULLONG },
+};
+
+
 static PyObject *
 libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED,
                            PyObject *args)
@@ -8659,8 +8692,11 @@
         return NULL;
 
     if (PyDict_Check(pyobj_dict)) {
-        if (virPyDictToTypedParams(pyobj_dict, &params, &nparams, NULL, 0) < 0)
+        if (virPyDictToTypedParams(pyobj_dict, &params, &nparams,
+                                   virPyDomainBlockCopyParams,
+                                   VIR_N_ELEMENTS(virPyDomainBlockCopyParams)) 
< 0) {
             return NULL;
+        }
     }
 
     dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/libvirt-python.spec 
new/libvirt-python-4.1.0/libvirt-python.spec
--- old/libvirt-python-4.0.0/libvirt-python.spec        2018-01-19 
12:15:12.000000000 +0100
+++ new/libvirt-python-4.1.0/libvirt-python.spec        2018-03-05 
11:52:35.000000000 +0100
@@ -29,7 +29,7 @@
 
 Summary: The libvirt virtualization API python2 binding
 Name: libvirt-python
-Version: 4.0.0
+Version: 4.1.0
 Release: 1%{?dist}%{?extra_release}
 Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
 Url: http://libvirt.org
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/libvirt-utils.h 
new/libvirt-python-4.1.0/libvirt-utils.h
--- old/libvirt-python-4.0.0/libvirt-utils.h    2017-12-04 18:31:00.000000000 
+0100
+++ new/libvirt-python-4.1.0/libvirt-utils.h    2018-03-05 10:13:09.000000000 
+0100
@@ -146,6 +146,8 @@
 # endif
 
 
+#define VIR_N_ELEMENTS(array) (sizeof(array) / sizeof(*(array)))
+
 /* The two-statement sequence "Py_INCREF(Py_None); return Py_None;"
    is so common that we encapsulate it here.  Now, each use is simply
    return VIR_PY_NONE;  */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/sanitytest.py 
new/libvirt-python-4.1.0/sanitytest.py
--- old/libvirt-python-4.0.0/sanitytest.py      2017-12-04 18:31:00.000000000 
+0100
+++ new/libvirt-python-4.1.0/sanitytest.py      2018-03-05 10:13:09.000000000 
+0100
@@ -258,7 +258,8 @@
                 "LookupByUUIDString", "LookupByVolume" "LookupByName",
                 "LookupByID", "LookupByName", "LookupByKey", "LookupByPath",
                 "LookupByMACString", "LookupByUsage", "LookupByVolume",
-                "LookupSCSIHostByWWN", "Restore", "RestoreFlags",
+                "LookupByTargetPath","LookupSCSIHostByWWN",
+                "Restore", "RestoreFlags",
                 "SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]:
         if klass != "virDomain":
             func = klass[3:] + func
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.0.0/setup.py 
new/libvirt-python-4.1.0/setup.py
--- old/libvirt-python-4.0.0/setup.py   2018-01-19 12:13:20.000000000 +0100
+++ new/libvirt-python-4.1.0/setup.py   2018-03-05 11:51:30.000000000 +0100
@@ -334,7 +334,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '4.0.0',
+      version = '4.1.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = 'libvir-l...@redhat.com',


Reply via email to