Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-libvirt-python for openSUSE:Factory checked in at 2024-06-06 12:31:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Thu Jun 6 12:31:15 2024 rev:80 rq:1178391 version:10.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes 2024-05-05 12:10:24.527058423 +0200
+++ /work/SRC/openSUSE:Factory/.python-libvirt-python.new.24587/python-libvirt-python.changes 2024-06-06 12:31:29.914024847 +0200
@@ -1,0 +2,6 @@
+Mon Jun 3 21:53:40 UTC 2024 - James Fehlig
+
+- Update to 10.4.0
+ - Add all new APIs and constants in libvirt 10.4.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-10.3.0.tar.gz
New:
----
libvirt-python-10.4.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.KSG5eP/_old 2024-06-06 12:31:30.662052167 +0200
+++ /var/tmp/diff_new_pack.KSG5eP/_new 2024-06-06 12:31:30.662052167 +0200
@@ -24,7 +24,7 @@
%{?sle15_python_module_pythons}
Name: python-libvirt-python
URL: https://libvirt.org/
-Version: 10.3.0
+Version: 10.4.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
++++++ _service ++++++
--- /var/tmp/diff_new_pack.KSG5eP/_old 2024-06-06 12:31:30.698053482 +0200
+++ /var/tmp/diff_new_pack.KSG5eP/_new 2024-06-06 12:31:30.702053628 +0200
@@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="manual">
<param name="filename">libvirt-python</param>
- <param name="revision">v10.3.0</param>
+ <param name="revision">v10.4.0</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://gitlab.com/libvirt/libvirt-python.git</param>
++++++ libvirt-python-10.3.0.tar.gz -> libvirt-python-10.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/.gitlab-ci.yml new/libvirt-python-10.4.0/.gitlab-ci.yml
--- old/libvirt-python-10.3.0/.gitlab-ci.yml 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/.gitlab-ci.yml 2024-05-02 15:38:30.000000000 +0200
@@ -55,24 +55,6 @@
mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
fi
-.native_setuppy_build_job:
- extends:
- - .gitlab_native_build_job
- script:
- - export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
- - export CFLAGS="-Werror"
- - $PYTHON setup.py bdist_wheel
- - $PYTHON setup.py sdist
- - $PYTHON -m venv test-venv --system-site-packages --symlinks
- - test-venv/bin/python -m pip install dist/libvirt_python*.whl
- - test-venv/bin/python -m pytest tests
- - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
- then
- unset CFLAGS ;
- rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
- mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
- fi
-
include: '/ci/gitlab.yml'
api_coverage_job:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/VERSION new/libvirt-python-10.4.0/VERSION
--- old/libvirt-python-10.3.0/VERSION 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/VERSION 2024-05-02 15:38:30.000000000 +0200
@@ -1 +1 @@
-10.3.0
+10.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/buildenv/centos-stream-8.sh new/libvirt-python-10.4.0/ci/buildenv/centos-stream-8.sh
--- old/libvirt-python-10.3.0/ci/buildenv/centos-stream-8.sh 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/buildenv/centos-stream-8.sh 1970-01-01 01:00:00.000000000 +0100
@@ -1,40 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-function install_buildenv() {
- dnf distro-sync -y
- dnf install 'dnf-command(config-manager)' -y
- dnf config-manager --set-enabled -y powertools
- dnf install -y centos-release-advanced-virtualization
- dnf install -y epel-release
- dnf install -y epel-next-release
- dnf install -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- glibc-langpack-en \
- libvirt-devel \
- pkgconfig \
- python3 \
- python3-devel \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-wheel \
- rpm-build
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
- rpm -qa | sort > /packages.txt
- mkdir -p /usr/libexec/ccache-wrappers
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
- /usr/bin/pip3 install build
-}
-
-export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
-export LANG="en_US.UTF-8"
-export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/buildenv/fedora-38.sh new/libvirt-python-10.4.0/ci/buildenv/fedora-38.sh
--- old/libvirt-python-10.3.0/ci/buildenv/fedora-38.sh 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/buildenv/fedora-38.sh 1970-01-01 01:00:00.000000000 +0100
@@ -1,35 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-function install_buildenv() {
- dnf update -y
- dnf install -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- glibc-langpack-en \
- libvirt-devel \
- pkgconfig \
- python3 \
- python3-build \
- python3-devel \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-wheel \
- rpm-build
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
- rpm -qa | sort > /packages.txt
- mkdir -p /usr/libexec/ccache-wrappers
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-}
-
-export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
-export LANG="en_US.UTF-8"
-export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/buildenv/fedora-40.sh new/libvirt-python-10.4.0/ci/buildenv/fedora-40.sh
--- old/libvirt-python-10.3.0/ci/buildenv/fedora-40.sh 1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-10.4.0/ci/buildenv/fedora-40.sh 2024-05-02 15:38:30.000000000 +0200
@@ -0,0 +1,35 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+function install_buildenv() {
+ dnf update -y
+ dnf install -y \
+ ca-certificates \
+ ccache \
+ gcc \
+ git \
+ glibc-langpack-en \
+ libvirt-devel \
+ pkgconfig \
+ python3 \
+ python3-build \
+ python3-devel \
+ python3-lxml \
+ python3-pip \
+ python3-pytest \
+ python3-setuptools \
+ python3-wheel \
+ rpm-build
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
+ rpm -qa | sort > /packages.txt
+ mkdir -p /usr/libexec/ccache-wrappers
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+}
+
+export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
+export LANG="en_US.UTF-8"
+export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/buildenv/ubuntu-2004.sh new/libvirt-python-10.4.0/ci/buildenv/ubuntu-2004.sh
--- old/libvirt-python-10.3.0/ci/buildenv/ubuntu-2004.sh 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/buildenv/ubuntu-2004.sh 1970-01-01 01:00:00.000000000 +0100
@@ -1,39 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-function install_buildenv() {
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get dist-upgrade -y
- apt-get install --no-install-recommends -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- libvirt-dev \
- locales \
- pkgconf \
- python3 \
- python3-dev \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-venv \
- python3-wheel
- sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
- dpkg-reconfigure locales
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
- dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
- mkdir -p /usr/libexec/ccache-wrappers
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
- /usr/bin/pip3 install build
-}
-
-export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
-export LANG="en_US.UTF-8"
-export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/buildenv/ubuntu-2404.sh new/libvirt-python-10.4.0/ci/buildenv/ubuntu-2404.sh
--- old/libvirt-python-10.3.0/ci/buildenv/ubuntu-2404.sh 1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-10.4.0/ci/buildenv/ubuntu-2404.sh 2024-05-02 15:38:30.000000000 +0200
@@ -0,0 +1,39 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+function install_buildenv() {
+ export DEBIAN_FRONTEND=noninteractive
+ apt-get update
+ apt-get dist-upgrade -y
+ apt-get install --no-install-recommends -y \
+ ca-certificates \
+ ccache \
+ gcc \
+ git \
+ libvirt-dev \
+ locales \
+ pkgconf \
+ python3 \
+ python3-build \
+ python3-dev \
+ python3-lxml \
+ python3-pip \
+ python3-pytest \
+ python3-setuptools \
+ python3-venv \
+ python3-wheel
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
+ dpkg-reconfigure locales
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
+ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
+ mkdir -p /usr/libexec/ccache-wrappers
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+}
+
+export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
+export LANG="en_US.UTF-8"
+export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/containers/centos-stream-8.Dockerfile new/libvirt-python-10.4.0/ci/containers/centos-stream-8.Dockerfile
--- old/libvirt-python-10.3.0/ci/containers/centos-stream-8.Dockerfile 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/containers/centos-stream-8.Dockerfile 1970-01-01 01:00:00.000000000 +0100
@@ -1,43 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-FROM quay.io/centos/centos:stream8
-
-RUN dnf distro-sync -y && \
- dnf install 'dnf-command(config-manager)' -y && \
- dnf config-manager --set-enabled -y powertools && \
- dnf install -y centos-release-advanced-virtualization && \
- dnf install -y epel-release && \
- dnf install -y epel-next-release && \
- dnf install -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- glibc-langpack-en \
- libvirt-devel \
- pkgconfig \
- python3 \
- python3-devel \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-wheel \
- rpm-build && \
- dnf autoremove -y && \
- dnf clean all -y && \
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
- rpm -qa | sort > /packages.txt && \
- mkdir -p /usr/libexec/ccache-wrappers && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-
-RUN /usr/bin/pip3 install build
-
-ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
-ENV LANG "en_US.UTF-8"
-ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/containers/fedora-38.Dockerfile new/libvirt-python-10.4.0/ci/containers/fedora-38.Dockerfile
--- old/libvirt-python-10.3.0/ci/containers/fedora-38.Dockerfile 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/containers/fedora-38.Dockerfile 1970-01-01 01:00:00.000000000 +0100
@@ -1,47 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-FROM registry.fedoraproject.org/fedora:38
-
-RUN dnf install -y nosync && \
- printf '#!/bin/sh\n\
-if test -d /usr/lib64\n\
-then\n\
- export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
-else\n\
- export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
-fi\n\
-exec "$@"\n' > /usr/bin/nosync && \
- chmod +x /usr/bin/nosync && \
- nosync dnf update -y && \
- nosync dnf install -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- glibc-langpack-en \
- libvirt-devel \
- pkgconfig \
- python3 \
- python3-build \
- python3-devel \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-wheel \
- rpm-build && \
- nosync dnf autoremove -y && \
- nosync dnf clean all -y && \
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
- rpm -qa | sort > /packages.txt && \
- mkdir -p /usr/libexec/ccache-wrappers && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-
-ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
-ENV LANG "en_US.UTF-8"
-ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/containers/fedora-40.Dockerfile new/libvirt-python-10.4.0/ci/containers/fedora-40.Dockerfile
--- old/libvirt-python-10.3.0/ci/containers/fedora-40.Dockerfile 1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-10.4.0/ci/containers/fedora-40.Dockerfile 2024-05-02 15:38:30.000000000 +0200
@@ -0,0 +1,47 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM registry.fedoraproject.org/fedora:40
+
+RUN dnf install -y nosync && \
+ printf '#!/bin/sh\n\
+if test -d /usr/lib64\n\
+then\n\
+ export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
+else\n\
+ export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
+fi\n\
+exec "$@"\n' > /usr/bin/nosync && \
+ chmod +x /usr/bin/nosync && \
+ nosync dnf update -y && \
+ nosync dnf install -y \
+ ca-certificates \
+ ccache \
+ gcc \
+ git \
+ glibc-langpack-en \
+ libvirt-devel \
+ pkgconfig \
+ python3 \
+ python3-build \
+ python3-devel \
+ python3-lxml \
+ python3-pip \
+ python3-pytest \
+ python3-setuptools \
+ python3-wheel \
+ rpm-build && \
+ nosync dnf autoremove -y && \
+ nosync dnf clean all -y && \
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
+ rpm -qa | sort > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
+ENV LANG "en_US.UTF-8"
+ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/containers/ubuntu-2004.Dockerfile new/libvirt-python-10.4.0/ci/containers/ubuntu-2004.Dockerfile
--- old/libvirt-python-10.3.0/ci/containers/ubuntu-2004.Dockerfile 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/containers/ubuntu-2004.Dockerfile 1970-01-01 01:00:00.000000000 +0100
@@ -1,43 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-# $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-FROM docker.io/library/ubuntu:20.04
-
-RUN export DEBIAN_FRONTEND=noninteractive && \
- apt-get update && \
- apt-get install -y eatmydata && \
- eatmydata apt-get dist-upgrade -y && \
- eatmydata apt-get install --no-install-recommends -y \
- ca-certificates \
- ccache \
- gcc \
- git \
- libvirt-dev \
- locales \
- pkgconf \
- python3 \
- python3-dev \
- python3-lxml \
- python3-pip \
- python3-pytest \
- python3-setuptools \
- python3-venv \
- python3-wheel && \
- eatmydata apt-get autoremove -y && \
- eatmydata apt-get autoclean -y && \
- sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
- dpkg-reconfigure locales && \
- rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
- dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
- mkdir -p /usr/libexec/ccache-wrappers && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
- ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-
-RUN /usr/bin/pip3 install build
-
-ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
-ENV LANG "en_US.UTF-8"
-ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/containers/ubuntu-2404.Dockerfile new/libvirt-python-10.4.0/ci/containers/ubuntu-2404.Dockerfile
--- old/libvirt-python-10.3.0/ci/containers/ubuntu-2404.Dockerfile 1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-10.4.0/ci/containers/ubuntu-2404.Dockerfile 2024-05-02 15:38:30.000000000 +0200
@@ -0,0 +1,42 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM docker.io/library/ubuntu:24.04
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get install -y eatmydata && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y \
+ ca-certificates \
+ ccache \
+ gcc \
+ git \
+ libvirt-dev \
+ locales \
+ pkgconf \
+ python3 \
+ python3-build \
+ python3-dev \
+ python3-lxml \
+ python3-pip \
+ python3-pytest \
+ python3-setuptools \
+ python3-venv \
+ python3-wheel && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
+ dpkg-reconfigure locales && \
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
+ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
+ENV LANG "en_US.UTF-8"
+ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/gitlab/builds.yml new/libvirt-python-10.4.0/ci/gitlab/builds.yml
--- old/libvirt-python-10.3.0/ci/gitlab/builds.yml 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/gitlab/builds.yml 2024-05-02 15:38:30.000000000 +0200
@@ -7,21 +7,6 @@
# Native build jobs
-x86_64-centos-stream-8:
- extends: .native_setuppy_build_job
- needs:
- - job: x86_64-centos-stream-8-container
- optional: true
- allow_failure: false
- variables:
- NAME: centos-stream-8
- TARGET_BASE_IMAGE: quay.io/centos/centos:stream8
- artifacts:
- expire_in: 1 hour
- paths:
- - libvirt-python-rpms
-
-
x86_64-centos-stream-9:
extends: .native_build_job
needs:
@@ -75,30 +60,30 @@
TARGET_BASE_IMAGE: docker.io/library/debian:sid-slim
-x86_64-fedora-38:
+x86_64-fedora-39:
extends: .native_build_job
needs:
- - job: x86_64-fedora-38-container
+ - job: x86_64-fedora-39-container
optional: true
allow_failure: false
variables:
- NAME: fedora-38
- TARGET_BASE_IMAGE: registry.fedoraproject.org/fedora:38
+ NAME: fedora-39
+ TARGET_BASE_IMAGE: registry.fedoraproject.org/fedora:39
artifacts:
expire_in: 1 hour
paths:
- libvirt-python-rpms
-x86_64-fedora-39:
+x86_64-fedora-40:
extends: .native_build_job
needs:
- - job: x86_64-fedora-39-container
+ - job: x86_64-fedora-40-container
optional: true
allow_failure: false
variables:
- NAME: fedora-39
- TARGET_BASE_IMAGE: registry.fedoraproject.org/fedora:39
+ NAME: fedora-40
+ TARGET_BASE_IMAGE: registry.fedoraproject.org/fedora:40
artifacts:
expire_in: 1 hour
paths:
@@ -140,23 +125,23 @@
TARGET_BASE_IMAGE: registry.opensuse.org/opensuse/tumbleweed:latest
-x86_64-ubuntu-2004:
+x86_64-ubuntu-2204:
extends: .native_build_job
needs:
- - job: x86_64-ubuntu-2004-container
+ - job: x86_64-ubuntu-2204-container
optional: true
allow_failure: false
variables:
- NAME: ubuntu-2004
- TARGET_BASE_IMAGE: docker.io/library/ubuntu:20.04
+ NAME: ubuntu-2204
+ TARGET_BASE_IMAGE: docker.io/library/ubuntu:22.04
-x86_64-ubuntu-2204:
+x86_64-ubuntu-2404:
extends: .native_build_job
needs:
- - job: x86_64-ubuntu-2204-container
+ - job: x86_64-ubuntu-2404-container
optional: true
allow_failure: false
variables:
- NAME: ubuntu-2204
- TARGET_BASE_IMAGE: docker.io/library/ubuntu:22.04
+ NAME: ubuntu-2404
+ TARGET_BASE_IMAGE: docker.io/library/ubuntu:24.04
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/gitlab/containers.yml new/libvirt-python-10.4.0/ci/gitlab/containers.yml
--- old/libvirt-python-10.3.0/ci/gitlab/containers.yml 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/gitlab/containers.yml 2024-05-02 15:38:30.000000000 +0200
@@ -7,13 +7,6 @@
# Native container jobs
-x86_64-centos-stream-8-container:
- extends: .container_job
- allow_failure: false
- variables:
- NAME: centos-stream-8
-
-
x86_64-centos-stream-9-container:
extends: .container_job
allow_failure: false
@@ -35,18 +28,18 @@
NAME: debian-sid
-x86_64-fedora-38-container:
+x86_64-fedora-39-container:
extends: .container_job
allow_failure: false
variables:
- NAME: fedora-38
+ NAME: fedora-39
-x86_64-fedora-39-container:
+x86_64-fedora-40-container:
extends: .container_job
allow_failure: false
variables:
- NAME: fedora-39
+ NAME: fedora-40
x86_64-fedora-rawhide-container:
@@ -70,15 +63,15 @@
NAME: opensuse-tumbleweed
-x86_64-ubuntu-2004-container:
+x86_64-ubuntu-2204-container:
extends: .container_job
allow_failure: false
variables:
- NAME: ubuntu-2004
+ NAME: ubuntu-2204
-x86_64-ubuntu-2204-container:
+x86_64-ubuntu-2404-container:
extends: .container_job
allow_failure: false
variables:
- NAME: ubuntu-2204
+ NAME: ubuntu-2404
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/ci/manifest.yml new/libvirt-python-10.4.0/ci/manifest.yml
--- old/libvirt-python-10.3.0/ci/manifest.yml 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/ci/manifest.yml 2024-05-02 15:38:30.000000000 +0200
@@ -8,15 +8,6 @@
targets:
- centos-stream-8:
- jobs:
- - arch: x86_64
- template: .native_setuppy_build_job
- artifacts:
- expire_in: 1 hour
- paths:
- - libvirt-python-rpms
-
centos-stream-9:
projects:
- libvirt-python
@@ -47,7 +38,7 @@
- arch: x86_64
allow-failure: true
- fedora-38:
+ fedora-39:
jobs:
- arch: x86_64
artifacts:
@@ -55,7 +46,7 @@
paths:
- libvirt-python-rpms
- fedora-39:
+ fedora-40:
jobs:
- arch: x86_64
artifacts:
@@ -81,6 +72,6 @@
variables:
RPM: skip
- ubuntu-2004: x86_64
-
ubuntu-2204: x86_64
+
+ ubuntu-2404: x86_64
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/generator.py new/libvirt-python-10.4.0/generator.py
--- old/libvirt-python-10.3.0/generator.py 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/generator.py 2024-05-02 15:38:30.000000000 +0200
@@ -31,6 +31,8 @@
#######################################################################
debug = 0
onlyOverrides = False
+sourceDir = "."
+buildDir = "build"
libvirt_headers = [
"libvirt",
@@ -49,6 +51,11 @@
"libvirt-stream",
]
+def openSourceFile(file: str, mode: str = "r", optional: bool = False):
+ path = os.path.join(sourceDir, file)
+ if optional and not os.path.exists(path):
+ return None
+ return open(path, mode)
def parse(data: IO[str]) -> None:
target = docParser()
@@ -297,7 +304,7 @@
#######################################################################
#
# This part writes the C <-> Python stubs libvirt.[ch] and
-# the table libvirt-export.c to add when registering the Python module
+# the table libvirt-export.c.inc to add when registering the Python module
#
#######################################################################
@@ -853,7 +860,7 @@
try:
onlyOverrides = True
- with open(override_api_xml) as stream:
+ with openSourceFile(override_api_xml) as stream:
parse(stream)
except IOError as msg:
print(override_api_xml, ":", msg)
@@ -869,9 +876,9 @@
nb_wrap = 0
- header_file = "build/%s.h" % module
- export_file = "build/%s-export.c" % module
- wrapper_file = "build/%s.c" % module
+ header_file = "%s/%s.h" % (buildDir, module)
+ export_file = "%s/%s-export.c.inc" % (buildDir, module)
+ wrapper_file = "%s/%s.c" % (buildDir, module)
include = open(header_file, "w")
include.write("/* Generated by generator.py */\n\n")
@@ -885,7 +892,7 @@
wrapper.write("#include \n")
wrapper.write("#include \n" % (module,))
wrapper.write("#include \"typewrappers.h\"\n")
- wrapper.write("#include \"build/%s.h\"\n\n" % (module,))
+ wrapper.write("#include \"%s.h\"\n\n" % (module))
for function in sorted(functions):
if print_function_wrapper(package, function, wrapper, export, include):
@@ -1313,14 +1320,12 @@
info = (0, func, name, ret, args, file, mod)
function_classes['None'].append(info)
- classes_file = "build/%s.py" % package
+ classes_file = "%s/%s.py" % (buildDir, package)
extra_file = "%s-override.py" % module
- extra = None
+ extra = openSourceFile(extra_file, "r", True)
classes = open(classes_file, "w")
- if os.path.exists(extra_file):
- extra = open(extra_file, "r")
classes.write("#\n")
classes.write("# WARNING WARNING WARNING WARNING\n")
classes.write("#\n")
@@ -1629,8 +1634,8 @@
classes.write("\n")
# Append "<classname>.py" to class def, iff it exists
class_override = "%s-override-%s.py" % (module, classname)
- if os.path.exists(class_override):
- extra = open(class_override, "r")
+ extra = openSourceFile(class_override, "r", True)
+ if extra:
classes.write(" #\n")
classes.write(" # %s methods from %s.py (hand coded)\n" % (classname, classname))
classes.write(" #\n")
@@ -1776,6 +1781,11 @@
print("ERROR: unknown module %s" % sys.argv[1])
sys.exit(1)
+if len(sys.argv) == 6:
+ buildDir = sys.argv[5]
+if len(sys.argv) >= 5:
+ sourceDir = sys.argv[4]
+
load_apis(sys.argv[1], sys.argv[2])
if validate_functions() < 0:
@@ -1786,12 +1796,12 @@
os.mkdir("build")
output = None
-if len(sys.argv) == 4:
+if len(sys.argv) >= 4:
output = sys.argv[3]
-if output == "c" or output is None:
+if output == "c" or output == "c+py" or output is None:
emit_c_code(sys.argv[1])
-if output == "py" or output is None:
+if output == "py" or output == "c+py" or output is None:
emit_py_code(sys.argv[1])
sys.exit(0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/libvirt-lxc-override.c new/libvirt-python-10.4.0/libvirt-lxc-override.c
--- old/libvirt-python-10.3.0/libvirt-lxc-override.c 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/libvirt-lxc-override.c 2024-05-02 15:38:30.000000000 +0200
@@ -19,13 +19,7 @@
#include
#include "typewrappers.h"
#include "libvirt-utils.h"
-#include "build/libvirt-lxc.h"
-
-#ifndef __CYGWIN__
-extern PyObject *PyInit_libvirtmod_lxc(void);
-#else
-extern PyObject *PyInit_cygvirtmod_lxc(void);
-#endif
+#include "libvirt-lxc.h"
#if 0
# define DEBUG_ERROR 1
@@ -94,7 +88,7 @@
* *
************************************************************************/
static PyMethodDef libvirtLxcMethods[] = {
-#include "build/libvirt-lxc-export.c"
+#include "libvirt-lxc-export.c.inc"
{(char *) "virDomainLxcOpenNamespace", libvirt_lxc_virDomainLxcOpenNamespace, METH_VARARGS, NULL},
{NULL, NULL, 0, NULL}
};
@@ -115,7 +109,7 @@
NULL
};
-PyObject *
+PyMODINIT_FUNC
#ifndef __CYGWIN__
PyInit_libvirtmod_lxc
#else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/libvirt-override.c new/libvirt-python-10.4.0/libvirt-override.c
--- old/libvirt-python-10.3.0/libvirt-override.c 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/libvirt-override.c 2024-05-02 15:38:30.000000000 +0200
@@ -26,15 +26,9 @@
#include
#include
#include "typewrappers.h"
-#include "build/libvirt.h"
+#include "libvirt.h"
#include "libvirt-utils.h"
-#ifndef __CYGWIN__
-extern PyObject *PyInit_libvirtmod(void);
-#else
-extern PyObject *PyInit_cygvirtmod(void);
-#endif
-
#if 0
# define DEBUG_ERROR 1
#endif
@@ -10930,7 +10924,7 @@
* *
************************************************************************/
static PyMethodDef libvirtMethods[] = {
-#include "build/libvirt-export.c"
+#include "libvirt-export.c.inc"
{(char *) "virGetVersion", libvirt_virGetVersion, METH_VARARGS, NULL},
{(char *) "virConnectGetVersion", libvirt_virConnectGetVersion, METH_VARARGS, NULL},
#if LIBVIR_CHECK_VERSION(1, 1, 3)
@@ -11227,7 +11221,7 @@
NULL
};
-PyObject *
+PyMODINIT_FUNC
#ifndef __CYGWIN__
PyInit_libvirtmod
#else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/libvirt-python.spec.in new/libvirt-python-10.4.0/libvirt-python.spec.in
--- old/libvirt-python-10.3.0/libvirt-python.spec.in 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/libvirt-python.spec.in 2024-05-02 15:38:30.000000000 +0200
@@ -14,7 +14,7 @@
Summary: The libvirt virtualization API python3 binding
Name: libvirt-python
-Version: @PY_VERSION@
+Version: @VERSION@
Release: 1%{?dist}
Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
Url: https://libvirt.org
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/libvirt-qemu-override.c new/libvirt-python-10.4.0/libvirt-qemu-override.c
--- old/libvirt-python-10.3.0/libvirt-qemu-override.c 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/libvirt-qemu-override.c 2024-05-02 15:38:30.000000000 +0200
@@ -20,17 +20,11 @@
#include
#include "typewrappers.h"
#include "libvirt-utils.h"
-#include "build/libvirt-qemu.h"
+#include "libvirt-qemu.h"
#ifndef __CYGWIN__
# include
#endif
-#ifndef __CYGWIN__
-extern PyObject *PyInit_libvirtmod_qemu(void);
-#else
-extern PyObject *PyInit_cygvirtmod_qemu(void);
-#endif
-
#if 0
# define DEBUG_ERROR 1
#endif
@@ -447,7 +441,7 @@
* *
************************************************************************/
static PyMethodDef libvirtQemuMethods[] = {
-#include "build/libvirt-qemu-export.c"
+#include "libvirt-qemu-export.c.inc"
{(char *) "virDomainQemuMonitorCommand", libvirt_qemu_virDomainQemuMonitorCommand, METH_VARARGS, NULL},
#if LIBVIR_CHECK_VERSION(0, 10, 0)
{(char *) "virDomainQemuAgentCommand", libvirt_qemu_virDomainQemuAgentCommand, METH_VARARGS, NULL},
@@ -478,7 +472,7 @@
NULL
};
-PyObject *
+PyMODINIT_FUNC
#ifndef __CYGWIN__
PyInit_libvirtmod_qemu
#else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/setup.py new/libvirt-python-10.4.0/setup.py
--- old/libvirt-python-10.3.0/setup.py 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/setup.py 2024-05-02 15:38:30.000000000 +0200
@@ -87,6 +87,7 @@
ldflags = get_pkgconfig_data(["--libs-only-L"], "libvirt", False).split()
cflags = get_pkgconfig_data(["--cflags"], "libvirt", False).split()
+ cflags += ["-Ibuild"]
cflags += ["-Wp,-DPy_LIMITED_API=0x03060000"]
module = Extension("libvirtmod",
@@ -196,7 +197,7 @@
def gen_rpm_spec(self):
return self._gen_from_in("libvirt-python.spec.in",
"libvirt-python.spec",
- "@PY_VERSION@",
+ "@VERSION@",
getVersion())
def gen_authors(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-10.3.0/tests/test_aio.py new/libvirt-python-10.4.0/tests/test_aio.py
--- old/libvirt-python-10.3.0/tests/test_aio.py 2024-05-01 10:09:53.000000000 +0200
+++ new/libvirt-python-10.4.0/tests/test_aio.py 2024-05-02 15:38:30.000000000 +0200
@@ -118,7 +118,7 @@
@mock.patch('libvirt.virEventRegisterImpl',
side_effect=eventmock.virEventRegisterImplMock)
- @unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10")
+ @unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10+")
def testEventsPreInitImplicit(self, mock_event_register):
# Register libvirt events before starting the asyncio loop.
#
@@ -136,7 +136,7 @@
@mock.patch('libvirt.virEventRegisterImpl',
side_effect=eventmock.virEventRegisterImplMock)
- @unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10")
+ @unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10+")
def testEventsImplicitLoopInit(self, mock_event_register):
# Register libvirt events before starting the asyncio loop.
#