Hello community,
here is the log from the commit of package python-libvirt-python for
openSUSE:Factory checked in at 2017-09-20 17:06:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Wed Sep 20 17:06:53 2017 rev:3 rq:526419 version:3.7.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes
2017-09-13 22:38:45.160502973 +0200
+++
/work/SRC/openSUSE:Factory/.python-libvirt-python.new/python-libvirt-python.changes
2017-09-20 17:07:07.960501486 +0200
@@ -1,0 +2,6 @@
+Fri Sep 15 16:30:22 UTC 2017 - [email protected]
+
+- Update to 3.7.0
+ - Add all new APIs and constants in libvirt 3.7.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-3.6.0.tar.gz
libvirt-python-3.6.0.tar.gz.asc
New:
----
libvirt-python-3.7.0.tar.gz
libvirt-python-3.7.0.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.dDwpaZ/_old 2017-09-20 17:07:09.500284730 +0200
+++ /var/tmp/diff_new_pack.dDwpaZ/_new 2017-09-20 17:07:09.504284167 +0200
@@ -20,7 +20,7 @@
%define srcname libvirt-python
Name: python-libvirt-python
Url: http://libvirt.org/
-Version: 3.6.0
+Version: 3.7.0
Release: 0
Summary: Library providing a simple virtualization API
License: LGPL-2.1+
++++++ libvirt-python-3.6.0.tar.gz -> libvirt-python-3.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/AUTHORS
new/libvirt-python-3.7.0/AUTHORS
--- old/libvirt-python-3.6.0/AUTHORS 2017-08-02 04:06:46.000000000 +0200
+++ new/libvirt-python-3.7.0/AUTHORS 2017-09-04 12:18:04.000000000 +0200
@@ -73,6 +73,7 @@
Taizo ITO <[email protected]>
Taku Izumi <[email protected]>
Tomoki Sekiyama <[email protected]>
+ Tomáš Golembiovský <[email protected]>
Victor Stinner <[email protected]>
Viktor Mihajlovski <[email protected]>
Wojtek Porczyk <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/ChangeLog
new/libvirt-python-3.7.0/ChangeLog
--- old/libvirt-python-3.6.0/ChangeLog 2017-08-02 04:06:46.000000000 +0200
+++ new/libvirt-python-3.7.0/ChangeLog 2017-09-04 12:18:04.000000000 +0200
@@ -1,3 +1,51 @@
+2017-08-26 John Ferlan <[email protected]>
+
+ Implement virDomainMigrateGetMaxDowntime
+ Add override code for virDomainMigrateGetMaxDowntime
+
+
+2017-08-26 John Ferlan <[email protected]>
+
+ Introduce virDomainMigrateGetMaxDowntime API
+ Introduce wrapper for virDomainMigrateGetMaxDowntime
+
+
+2017-08-10 Daniel P. Berrange <[email protected]>
+
+ Fix package name in description of sub-RPMs
+
+
+2017-08-10 Daniel P. Berrange <[email protected]>
+
+ Revert "rpm: assume python3 is always available"
+ This reverts commit b302b6d884ad4c6c917203a463f3377f3615b030.
+
+ Only drop the Fedora 18 test - RHEL must still build without
+ python 3
+
+
+2017-08-10 Daniel P. Berrange <[email protected]>
+
+ rpm: rename packages to python2-libvirt / python3-libvirt
+ This complies with Fedora naming policy for python packages
+
+ Reviewed-by: Martin Kletzander <[email protected]>
+
+
+2017-08-10 Daniel P. Berrange <[email protected]>
+
+ rpm: assume python3 is always available
+ Reviewed-by: Martin Kletzander <[email protected]>
+
+
+2017-08-02 Tomáš Golembiovský <[email protected]>
+
+ virDomainMemoryStats: include usable memory and last update
+ We've forgot to include VIR_DOMAIN_MEMORY_STAT_USABLE and
+ VIR_DOMAIN_MEMORY_STAT_LAST_UPDATE constants.
+
+
+
2017-08-02 Daniel Veillard <[email protected]>
Release of libvirt-python-3.6.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/PKG-INFO
new/libvirt-python-3.7.0/PKG-INFO
--- old/libvirt-python-3.6.0/PKG-INFO 2017-08-02 04:06:46.000000000 +0200
+++ new/libvirt-python-3.7.0/PKG-INFO 2017-09-04 12:18:04.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: libvirt-python
-Version: 3.6.0
+Version: 3.7.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-3.6.0/generator.py
new/libvirt-python-3.7.0/generator.py
--- old/libvirt-python-3.6.0/generator.py 2017-06-02 09:03:05.000000000
+0200
+++ new/libvirt-python-3.7.0/generator.py 2017-09-04 12:17:29.000000000
+0200
@@ -465,6 +465,7 @@
'virDomainGetBlockJobInfo',
'virDomainMigrateGetCompressionCache',
'virDomainMigrateGetMaxSpeed',
+ 'virDomainMigrateGetMaxDowntime',
'virDomainBlockStatsFlags',
'virDomainSetBlockIoTune',
'virDomainGetBlockIoTune',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/libvirt-override-api.xml
new/libvirt-python-3.7.0/libvirt-override-api.xml
--- old/libvirt-python-3.6.0/libvirt-override-api.xml 2017-04-02
20:58:40.000000000 +0200
+++ new/libvirt-python-3.7.0/libvirt-override-api.xml 2017-09-04
12:17:29.000000000 +0200
@@ -582,6 +582,13 @@
<arg name='flags' type='unsigned int' info='flags, currently unused,
pass 0.'/>
<return type='unsigned long' info='current max migration speed, or None
in case of error'/>
</function>
+ <function name='virDomainMigrateGetMaxDowntime' file='python'>
+ <info>Get the current value of the maximum downtime (in milliseconds)
+ allowed during a migration of a guest.</info>
+ <arg name='domain' type='virDomainPtr' info='a domain object'/>
+ <arg name='flags' type='unsigned int' info='flags, currently unused,
pass 0.'/>
+ <return type='unsigned long long' info='current downtime or None in case
of error'/>
+ </function>
<function name='virDomainMigrate3' file='python'>
<info>Migrate the domain object from its current host to the destination
host
given by dconn (a connection to the destination host).</info>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/libvirt-override.c
new/libvirt-python-3.7.0/libvirt-override.c
--- old/libvirt-python-3.6.0/libvirt-override.c 2017-06-02 09:03:05.000000000
+0200
+++ new/libvirt-python-3.7.0/libvirt-override.c 2017-09-04 12:17:29.000000000
+0200
@@ -398,6 +398,14 @@
case VIR_DOMAIN_MEMORY_STAT_RSS:
key = libvirt_constcharPtrWrap("rss");
break;
+#if LIBVIR_CHECK_VERSION(2, 1, 0)
+ case VIR_DOMAIN_MEMORY_STAT_USABLE:
+ key = libvirt_constcharPtrWrap("usable");
+ break;
+ case VIR_DOMAIN_MEMORY_STAT_LAST_UPDATE:
+ key = libvirt_constcharPtrWrap("last_update");
+ break;
+#endif /* LIBVIR_CHECK_VERSION(2, 1, 0) */
default:
continue;
}
@@ -7655,6 +7663,35 @@
return libvirt_ulongWrap(bandwidth);
}
+#if LIBVIR_CHECK_VERSION(3, 7, 0)
+static PyObject *
+libvirt_virDomainMigrateGetMaxDowntime(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ PyObject *pyobj_domain;
+ virDomainPtr domain;
+ unsigned int flags;
+ unsigned long long downtime;
+ int rc;
+
+ if (!PyArg_ParseTuple(args,
+ (char *) "OI:virDomainMigrateGetMaxDowntime",
+ &pyobj_domain, &flags))
+ return NULL;
+
+ domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ rc = virDomainMigrateGetMaxDowntime(domain, &downtime, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ if (rc < 0)
+ return VIR_PY_NONE;
+
+ return libvirt_ulonglongWrap(downtime);
+}
+#endif /* LIBVIR_CHECK_VERSION(3, 7, 0) */
+
#if LIBVIR_CHECK_VERSION(1, 1, 0)
static PyObject *
libvirt_virDomainMigrate3(PyObject *self ATTRIBUTE_UNUSED,
@@ -9725,6 +9762,10 @@
{(char *) "virDomainMigrateGetCompressionCache",
libvirt_virDomainMigrateGetCompressionCache, METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(1, 0, 3) */
{(char *) "virDomainMigrateGetMaxSpeed",
libvirt_virDomainMigrateGetMaxSpeed, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(3, 7, 0)
+ {(char *) "virDomainMigrateGetMaxDowntime",
libvirt_virDomainMigrateGetMaxDowntime, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(3, 7, 0) */
+ {(char *) "virDomainMigrateGetMaxSpeed",
libvirt_virDomainMigrateGetMaxSpeed, METH_VARARGS, NULL},
#if LIBVIR_CHECK_VERSION(1, 1, 0)
{(char *) "virDomainMigrate3", libvirt_virDomainMigrate3, METH_VARARGS,
NULL},
{(char *) "virDomainMigrateToURI3", libvirt_virDomainMigrateToURI3,
METH_VARARGS, NULL},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/libvirt-python.spec
new/libvirt-python-3.7.0/libvirt-python.spec
--- old/libvirt-python-3.6.0/libvirt-python.spec 2017-08-02
04:06:46.000000000 +0200
+++ new/libvirt-python-3.7.0/libvirt-python.spec 2017-09-04
12:18:04.000000000 +0200
@@ -1,12 +1,12 @@
%define with_python3 0
-%if 0%{?fedora} > 18
+%if 0%{?fedora}
%define with_python3 1
%endif
Summary: The libvirt virtualization API python2 binding
Name: libvirt-python
-Version: 3.6.0
+Version: 3.7.0
Release: 1%{?dist}%{?extra_release}
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
Url: http://libvirt.org
@@ -32,15 +32,33 @@
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
+%package -n python2-libvirt
+Summary: The libvirt virtualization API python2 binding
+Url: http://libvirt.org
+License: LGPLv2+
+Group: Development/Libraries
+%{?python_provide:%python_provide python2-libvirt}
+Provides: libvirt-python = %{version}-%{release}
+Obsoletes: libvirt-python < %{version}-%{release}
+
+%description -n python2-libvirt
+The python2-libvirt package contains a module that permits applications
+written in the Python programming language to use the interface
+supplied by the libvirt library to use the virtualization capabilities
+of recent versions of Linux (and other OSes).
+
%if %{with_python3}
-%package -n libvirt-python3
+%package -n python3-libvirt
Summary: The libvirt virtualization API python3 binding
Url: http://libvirt.org
License: LGPLv2+
Group: Development/Libraries
+%{?python_provide:%python_provide python3-libvirt}
+Provides: libvirt-python3 = %{version}-%{release}
+Obsoletes: libvirt-python3 < %{version}-%{release}
-%description -n libvirt-python3
-The libvirt-python package contains a module that permits applications
+%description -n python3-libvirt
+The python3-libvirt package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
@@ -72,7 +90,7 @@
%{__python3} setup.py test
%endif
-%files
+%files -n python2-libvirt
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{_libdir}/python2*/site-packages/libvirt.py*
@@ -82,7 +100,7 @@
%{_libdir}/python2*/site-packages/*egg-info
%if %{with_python3}
-%files -n libvirt-python3
+%files -n python3-libvirt
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{_libdir}/python3*/site-packages/libvirt.py*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-3.6.0/setup.py
new/libvirt-python-3.7.0/setup.py
--- old/libvirt-python-3.6.0/setup.py 2017-08-02 04:05:14.000000000 +0200
+++ new/libvirt-python-3.7.0/setup.py 2017-09-04 12:17:59.000000000 +0200
@@ -334,7 +334,7 @@
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
- version = '3.6.0',
+ version = '3.7.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = '[email protected]',