Hello community,

here is the log from the commit of package libvirt-python for openSUSE:Factory 
checked in at 2015-05-11 20:42:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.libvirt-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libvirt-python"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libvirt-python/libvirt-python.changes    
2015-04-12 00:10:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libvirt-python.new/libvirt-python.changes       
2015-05-11 20:42:08.000000000 +0200
@@ -1,0 +2,6 @@
+Mon May  4 09:06:48 MDT 2015 - [email protected]
+
+- Update to 1.2.15
+  - Add all new APIs and constants in libvirt 1.2.15
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.q6ovkt/_old  2015-05-11 20:42:08.000000000 +0200
+++ /var/tmp/diff_new_pack.q6ovkt/_new  2015-05-11 20:42:08.000000000 +0200
@@ -18,7 +18,7 @@
 
 Name:           libvirt-python
 Url:            http://libvirt.org/
-Version:        1.2.14
+Version:        1.2.15
 Release:        0
 Summary:        Library providing a simple virtualization API
 License:        LGPL-2.1+

++++++ libvirt-python-1.2.14.tar.gz -> libvirt-python-1.2.15.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/AUTHORS 
new/libvirt-python-1.2.15/AUTHORS
--- old/libvirt-python-1.2.14/AUTHORS   2015-04-02 09:56:33.000000000 +0200
+++ new/libvirt-python-1.2.15/AUTHORS   2015-05-04 05:40:33.000000000 +0200
@@ -433,6 +433,7 @@
    Jiri Denemark <[email protected]>
    Jiri Denemark <[email protected]>
    Jiri Denemark <[email protected]>
+   Jiri Denemark <[email protected]>
    Jiri Denemark <[email protected]>
    John Ferlan <[email protected]>
    John Ferlan <[email protected]>
@@ -441,6 +442,7 @@
    Ján Tomko <[email protected]>
    Ján Tomko <[email protected]>
    Ján Tomko <[email protected]>
+   Ján Tomko <[email protected]>
    KAMEZAWA Hiroyuki <[email protected]>
    Lai Jiangshan <[email protected]>
    Lai Jiangshan <[email protected]>
@@ -591,6 +593,9 @@
    Tomoki Sekiyama <[email protected]>
    Tomoki Sekiyama <[email protected]>
    Tomoki Sekiyama <[email protected]>
+   Victor Stinner <[email protected]>
+   Victor Stinner <[email protected]>
+   Victor Stinner <[email protected]>
    Viktor Mihajlovski <[email protected]>
    Viktor Mihajlovski <[email protected]>
    Viktor Mihajlovski <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/ChangeLog 
new/libvirt-python-1.2.15/ChangeLog
--- old/libvirt-python-1.2.14/ChangeLog 2015-04-02 09:56:33.000000000 +0200
+++ new/libvirt-python-1.2.15/ChangeLog 2015-05-04 05:40:33.000000000 +0200
@@ -1,3 +1,36 @@
+2015-04-22 Victor Stinner  <[email protected]>
+    
+    libvirt-python: add classifiers to setup.py
+    Add the Python 3 classifier, needed by the caniusepython3 tool to check
+    if dependencies of a projects are Python 3 compatible:
+    
+    https://caniusepython3.com/
+    
+    
+2015-04-22 Victor Stinner  <[email protected]>
+    
+    Add tox.ini to run tests on Python 2.6, 2.7 & 3.4
+    
+    
+2015-04-22 Victor Stinner  <[email protected]>
+    
+    sanitytest.py parameters are now optional
+    When called without parameters, sanitytest.py doesn't touch sys.path and
+    locates itself the patch to the libvirt-api.xml file using pkg-config.
+    
+    This change makes possible to run sanitytest.py from tox.
+    
+    
+2015-04-15 Ján Tomko  <[email protected]>
+    
+    Implement the DEVICE_ADDED event
+    
+    
+2015-04-02 Jiri Denemark  <[email protected]>
+    
+    Post-release version bump to 1.2.15
+    
+    
 2015-03-28 Pavel Hrdina  <[email protected]>
     
     Expose virDomainInterfacesAddresses to python binding
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/PKG-INFO 
new/libvirt-python-1.2.15/PKG-INFO
--- old/libvirt-python-1.2.14/PKG-INFO  2015-04-02 09:56:33.000000000 +0200
+++ new/libvirt-python-1.2.15/PKG-INFO  2015-05-04 05:40:33.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: libvirt-python
-Version: 1.2.14
+Version: 1.2.15
 Summary: The libvirt virtualization API
 Home-page: http://www.libvirt.org
 Author: Libvirt Maintainers
@@ -8,3 +8,9 @@
 License: UNKNOWN
 Description: UNKNOWN
 Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or 
later (LGPLv2+)
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/examples/event-test.py 
new/libvirt-python-1.2.15/examples/event-test.py
--- old/libvirt-python-1.2.14/examples/event-test.py    2014-12-13 
03:42:57.000000000 +0100
+++ new/libvirt-python-1.2.15/examples/event-test.py    2015-05-04 
05:28:00.000000000 +0200
@@ -527,6 +527,9 @@
     print("myDomainEventTunableCallback: Domain %s(%s) %s" % (dom.name(), 
dom.ID(), params))
 def myDomainEventAgentLifecycleCallback(conn, dom, state, reason, opaque):
     print("myDomainEventAgentLifecycleCallback: Domain %s(%s) %s %s" % 
(dom.name(), dom.ID(), agentLifecycleStateToString(state), 
agentLifecycleReasonToString(reason)))
+def myDomainEventDeviceAddedCallback(conn, dom, dev, opaque):
+    print("myDomainEventDeviceAddedCallback: Domain %s(%s) device added: %s" % 
(
+            dom.name(), dom.ID(), dev))
 
 ##########################################################################
 # Network events
@@ -638,6 +641,7 @@
     vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2, 
myDomainEventBlockJob2Callback, None)
     vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_TUNABLE, 
myDomainEventTunableCallback, None)
     vc.domainEventRegisterAny(None, 
libvirt.VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE, 
myDomainEventAgentLifecycleCallback, None)
+    vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_DEVICE_ADDED, 
myDomainEventDeviceAddedCallback, None)
 
     vc.networkEventRegisterAny(None, libvirt.VIR_NETWORK_EVENT_ID_LIFECYCLE, 
myNetworkEventLifecycleCallback, None)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/libvirt-override-virConnect.py 
new/libvirt-python-1.2.15/libvirt-override-virConnect.py
--- old/libvirt-python-1.2.14/libvirt-override-virConnect.py    2014-12-13 
03:42:57.000000000 +0100
+++ new/libvirt-python-1.2.15/libvirt-override-virConnect.py    2015-05-04 
05:28:00.000000000 +0200
@@ -207,6 +207,15 @@
         cb(self, virDomain(self, _obj=dom), state, reason, opaque)
         return 0
 
+    def _dispatchDomainEventDeviceAddedCallback(self, dom, devAlias, cbData):
+        """Dispatches event to python user domain device added event callbacks
+        """
+        cb = cbData["cb"]
+        opaque = cbData["opaque"]
+
+        cb(self, virDomain(self, _obj=dom), devAlias, opaque)
+        return 0
+
     def domainEventDeregisterAny(self, callbackID):
         """Removes a Domain Event Callback. De-registering for a
            domain callback will disable delivery of this event type """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/libvirt-override.c 
new/libvirt-python-1.2.15/libvirt-override.c
--- old/libvirt-python-1.2.14/libvirt-override.c        2015-04-02 
09:37:06.000000000 +0200
+++ new/libvirt-python-1.2.15/libvirt-override.c        2015-05-04 
05:28:00.000000000 +0200
@@ -6901,6 +6901,58 @@
 }
 #endif /* VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE */
 
+#ifdef VIR_DOMAIN_EVENT_ID_DEVICE_ADDED
+static int
+libvirt_virConnectDomainEventDeviceAddedCallback(virConnectPtr conn 
ATTRIBUTE_UNUSED,
+                                                 virDomainPtr dom,
+                                                 const char *devAlias,
+                                                 void *opaque)
+{
+    PyObject *pyobj_cbData = (PyObject*)opaque;
+    PyObject *pyobj_dom;
+    PyObject *pyobj_ret = NULL;
+    PyObject *pyobj_conn;
+    PyObject *dictKey;
+    int ret = -1;
+
+    LIBVIRT_ENSURE_THREAD_STATE;
+
+    if (!(dictKey = libvirt_constcharPtrWrap("conn")))
+        goto cleanup;
+    pyobj_conn = PyDict_GetItem(pyobj_cbData, dictKey);
+    Py_DECREF(dictKey);
+
+    /* Create a python instance of this virDomainPtr */
+    virDomainRef(dom);
+    if (!(pyobj_dom = libvirt_virDomainPtrWrap(dom))) {
+        virDomainFree(dom);
+        goto cleanup;
+    }
+    Py_INCREF(pyobj_cbData);
+
+    /* Call the Callback Dispatcher */
+    pyobj_ret = PyObject_CallMethod(pyobj_conn,
+                                    
(char*)"_dispatchDomainEventDeviceAddedCallback",
+                                    (char*)"OsO",
+                                    pyobj_dom, devAlias, pyobj_cbData);
+
+    Py_DECREF(pyobj_cbData);
+    Py_DECREF(pyobj_dom);
+
+ cleanup:
+    if (!pyobj_ret) {
+        DEBUG("%s - ret:%p\n", __FUNCTION__, pyobj_ret);
+        PyErr_Print();
+    } else {
+        Py_DECREF(pyobj_ret);
+        ret = 0;
+    }
+
+    LIBVIRT_RELEASE_THREAD_STATE;
+    return ret;
+
+}
+#endif /* VIR_DOMAIN_EVENT_ID_DEVICE_ADDED */
 
 static PyObject *
 libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject *self,
@@ -6999,6 +7051,11 @@
         cb = 
VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventAgentLifecycleCallback);
         break;
 #endif /* VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE */
+#ifdef VIR_DOMAIN_EVENT_ID_DEVICE_ADDED
+    case VIR_DOMAIN_EVENT_ID_DEVICE_ADDED:
+        cb = 
VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceAddedCallback);
+        break;
+#endif /* VIR_DOMAIN_EVENT_ID_DEVICE_ADDED */
     case VIR_DOMAIN_EVENT_ID_LAST:
         break;
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/libvirt-python.spec 
new/libvirt-python-1.2.15/libvirt-python.spec
--- old/libvirt-python-1.2.14/libvirt-python.spec       2015-04-02 
09:56:33.000000000 +0200
+++ new/libvirt-python-1.2.15/libvirt-python.spec       2015-05-04 
05:40:33.000000000 +0200
@@ -6,7 +6,7 @@
 
 Summary: The libvirt virtualization API python2 binding
 Name: libvirt-python
-Version: 1.2.14
+Version: 1.2.15
 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-1.2.14/sanitytest.py 
new/libvirt-python-1.2.15/sanitytest.py
--- old/libvirt-python-1.2.14/sanitytest.py     2015-04-02 09:37:06.000000000 
+0200
+++ new/libvirt-python-1.2.15/sanitytest.py     2015-05-04 05:28:00.000000000 
+0200
@@ -5,18 +5,31 @@
 import lxml.etree
 import string
 
-# Munge import path to insert build location for libvirt mod
-sys.path.insert(0, sys.argv[1])
+if len(sys.argv) >= 2:
+    # Munge import path to insert build location for libvirt mod
+    sys.path.insert(0, sys.argv[1])
 import libvirt
 
 if sys.version > '3':
     long = int
 
+def get_libvirt_api_xml_path():
+    import subprocess
+    args = ["pkg-config", "--variable", "libvirt_api", "libvirt"]
+    proc = subprocess.Popen(args, stdout=subprocess.PIPE)
+    stdout, _ = proc.communicate()
+    if proc.returncode:
+        sys.exit(proc.returncode)
+    return stdout.splitlines()[0]
+
 # Path to the libvirt API XML file
-xml = sys.argv[2]
+if len(sys.argv) >= 3:
+    xml = sys.argv[2]
+else:
+    xml = get_libvirt_api_xml_path()
 
-f = open(xml, "r")
-tree = lxml.etree.parse(f)
+with open(xml, "r") as fp:
+    tree = lxml.etree.parse(fp)
 
 verbose = False
 fail = False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/setup.py 
new/libvirt-python-1.2.15/setup.py
--- old/libvirt-python-1.2.14/setup.py  2015-04-02 09:37:06.000000000 +0200
+++ new/libvirt-python-1.2.15/setup.py  2015-05-04 05:28:00.000000000 +0200
@@ -309,7 +309,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '1.2.14',
+      version = '1.2.15',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = '[email protected]',
@@ -325,4 +325,13 @@
           'sdist': my_sdist,
           'rpm': my_rpm,
           'test': my_test
-      })
+      },
+      classifiers = [
+          "Development Status :: 5 - Production/Stable",
+          "Intended Audience :: Developers",
+          "License :: OSI Approved :: GNU Lesser General Public License v2 or 
later (LGPLv2+)",
+          "Programming Language :: Python",
+          "Programming Language :: Python :: 2",
+          "Programming Language :: Python :: 3",
+      ]
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-1.2.14/tox.ini 
new/libvirt-python-1.2.15/tox.ini
--- old/libvirt-python-1.2.14/tox.ini   1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-1.2.15/tox.ini   2015-05-04 05:28:00.000000000 +0200
@@ -0,0 +1,10 @@
+[tox]
+envlist = py26,py27,py34
+
+[testenv]
+deps=
+    lxml
+    nose
+commands=
+    python sanitytest.py
+    nosetests


Reply via email to