Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • stefanor/libvirt-python
  • janitor-team/proposed/libvirt-python
  • paelzer-guest/libvirt-python
  • libvirt-team/libvirt-python
  • agx/libvirt-python
5 results
Show changes
Commits on Source (9)
--recurse
--exclude=*.orig
(
(c-mode . (
(c-file-style . "K&R")
(indent-tabs-mode . nil)
(c-indent-level . 4)
(c-basic-offset . 4)
))
)
---
# Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown
name: 'Repo Lockdown'
on:
issues:
types: opened
pull_request_target:
types: opened
permissions:
pull-requests: write
issues: write
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v2
with:
issue-comment: |
Thank you for your interest in the libvirt project.
Since this repository is a read-only mirror of the project's master
repostory hosted on GitLab, issues opened here are not processed.
We kindly request that new issues are reported to
https://gitlab.com/libvirt/libvirt-python/-/issues/new
Thank you for your time and understanding.
lock-issue: true
close-issue: true
pr-comment: |
Thank you for your interest in the libvirt project.
Since this repository is a read-only mirror of the project's master
repostory hosted on GitLab, merge requests opened here are not
processed.
We kindly request that contributors fork the project at
https://gitlab.com/libvirt/libvirt-python/
push changes to the fork, and then open a new merge request at
https://gitlab.com/libvirt/libvirt-python/-/merge_requests/new
Thank you for your time and understanding.
lock-pr: true
close-pr: true
build/
dist/
MANIFEST
*~
*#*#
*.#*#
*.py[cod]
tags
.tox
dist/
eggs/
.eggs/
sdist/
*.egg-info/
*.egg
stages:
- containers
- builds
- sanity_checks
.git_build_vars: &git_build_vars |
export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
export SCRATCH_DIR="$PWD/scratch"
export VROOT="$SCRATCH_DIR/vroot"
export LIBDIR="$VROOT/lib"
export LD_LIBRARY_PATH="$LIBDIR"
export PATH="$VROOT/bin:$PATH"
export PKG_CONFIG_PATH="$LIBDIR/pkgconfig"
export CFLAGS="-Werror"
.native_git_build_job:
script:
- *git_build_vars
- pushd "$PWD"
- mkdir -p "$SCRATCH_DIR"
- cd "$SCRATCH_DIR"
- git clone --depth 1 https://gitlab.com/libvirt/libvirt.git
- cd libvirt
- meson build -Ddriver_libvirtd=disabled "--prefix=$VROOT" "--libdir=$LIBDIR"
- ninja -C build install
- popd
- $PYTHON setup.py build
- $PYTHON -m pip install .
- $PYTHON setup.py test
- $PYTHON setup.py sdist
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
then
rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
fi
.native_git_build_job_prebuilt_env:
extends:
- .native_git_build_job
- .gitlab_native_build_job_prebuilt_env
.native_git_build_job_local_env:
extends:
- .native_git_build_job
- .gitlab_native_build_job_local_env
.native_build_job:
script:
- export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
- export CFLAGS="-Werror"
- $PYTHON setup.py build
- $PYTHON -m pip install .
- $PYTHON setup.py test
- $PYTHON setup.py sdist
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
then
rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
fi
.native_build_job_prebuilt_env:
extends:
- .native_build_job
- .gitlab_native_build_job_prebuilt_env
.native_build_job_local_env:
extends:
- .native_build_job
- .gitlab_native_build_job_local_env
include: '/ci/gitlab.yml'
.api_coverage_job:
stage: sanity_checks
script:
- *git_build_vars
- LIBVIRT_API_COVERAGE=1 $PYTHON setup.py test
allow_failure: true
api_coverage_prebuilt_env:
extends:
- .gitlab_native_build_job_prebuilt_env
- .api_coverage_job
needs:
- job: x86_64-centos-stream-8-git-prebuilt-env
artifacts: true
variables:
NAME: centos-stream-8
api_coverage_local_env:
extends:
- .gitlab_native_build_job_local_env
- .api_coverage_job
needs:
- job: x86_64-centos-stream-8-git-local-env
artifacts: true
variables:
IMAGE: quay.io/centos/centos:stream8
NAME: centos-stream-8
# 'git shortlog --help' and look for mailmap for the format of each line
# Email consolidation:
# <Preferred address in AUTHORS> <other alias used by same author>
<jdenemar@redhat.com> <Jiri.Denemark@gmail.com>
<jfehlig@suse.com> <jfehlig@novell.com>
<stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com>
# Name consolidation:
# Preferred author spelling <preferred email>
Alex Jia <ajia@redhat.com>
Ján Tomko <jtomko@redhat.com>
MATSUDA Daiki <matsudadik@intellilink.co.jp>
Serge E. Hallyn <serge.hallyn@canonical.com>
Philipp Hahn <hahn@univention.de>
......@@ -12,9 +12,11 @@ The individual contributors are
Adam Litke <agl@us.ibm.com>
Alex Jia <ajia@redhat.com>
Andrea Bolognani <abologna@redhat.com>
Bastian Germann <bage@linutronix.de>
Beraldo Leal <bleal@redhat.com>
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Brian Rak <brak@gameservers.com>
Chris Gunn <chrisgun@microsoft.com>
Chris Lalancette <clalance@redhat.com>
Claudio Bley <cbley@av-test.de>
Cole Robinson <crobinso@redhat.com>
......@@ -30,6 +32,7 @@ The individual contributors are
Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
Eric Blake <eblake@redhat.com>
Erik Skultety <eskultet@redhat.com>
Erik Skultety <eskultety@ridgehead.home.lan>
Federico Simoncelli <fsimonce@redhat.com>
Giuseppe Scrivano <gscrivan@redhat.com>
Guan Qiang <hzguanqiang@corp.netease.com>
......@@ -73,6 +76,7 @@ The individual contributors are
Peng Hao <peng.hao2@zte.com.cn>
Peter Krempa <pkrempa@redhat.com>
Philipp Hahn <hahn@univention.de>
Pino Toscano <ptoscano@redhat.com>
Prabodh Agarwal <prabodh1194@users.noreply.github.com>
Pradipta Kr. Banerjee <pradipta.banerjee@gmail.com>
Qiaowei Ren <qiaowei.ren@intel.com>
......
Libvirt Python Binding Authors
==============================
The libvirt python binding is maintained by the
libvirt development team, who can be contacted
at
libvir-list@redhat.com
The individual contributors are
@AUTHORS@
==============================
Contributing to libvirt-python
==============================
The libvirt Python API binding accepts code contributions via merge requests
on the GitLab project:
https://gitlab.com/libvirt/libvirt-python/-/merge_requests
It is required that automated CI pipelines succeed before a merge request
will be accepted. The global pipeline status for the ``master`` branch is
visible at:
https://gitlab.com/libvirt/libvirt-python/pipelines
CI pipeline results for merge requests will be visible via the contributors'
own private repository fork:
https://gitlab.com/yourusername/libvirt-python/pipelines
Contributions submitted to the project must be in compliance with the
Developer Certificate of Origin Version 1.1. This is documented at:
https://developercertificate.org/
To indicate compliance, each commit in a series must have a "Signed-off-by"
tag with the submitter's name and email address. This can be added by passing
the ``-s`` flag to ``git commit`` when creating the patches.
This diff is collapsed.
libvirt Python Bindings Hacking
===============================
Most of the libvirt python binding code is automatically generated
using the script generator.py, and the API description that the
libvirt library installs at the location shown by pkg-config, with
this command:
$ pkg-config --variable libvirt_api libvirt
/usr/share/libvirt/api/libvirt-api.xml
Some of the API descriptions in the primary XML files are not directly
usable by the code generator. Thus there are overrides in
- libvirt-override-api.xml
- libvirt-qemu-override-api.xml
- libvirt-lxc-override-api.xml
For stuff which the generator can't cope with at all there are some
hand written source files
- libvirt-override.c - low level binding to libvirt.so
- libvirt-qemu-override.c - low level binding to libvirt-qemu.so
- libvirt-lxc-override.c - low level binding to libvirt-lxc.so
- libvirt-override.py - high level overrides in the global namespace
- libvirt-override-virConnect.py - high level overrides in
the virConnect class
- libvirt-override-virDomain.py - high level overrides in
the virDomain class
- libvirt-override-virDomainCheckpoint.py - high level overrides in
the virDomainCheckpoint class
- libvirt-override-virDomainSnapshot.py - high level overrides in
the virDomainSnapshot class
- libvirt-override-virStoragePool.py - high level overrides in
the virStoragePool class
- libvirt-override-virStream.py - high level overrides in
the virStream class
# file GENERATED by distutils, do NOT edit
AUTHORS
CONTRIBUTING.rst
COPYING
COPYING.LESSER
ChangeLog
HACKING
MANIFEST
MANIFEST.in
README
......@@ -26,12 +28,15 @@ libvirt-qemu-override.py
libvirt-utils.c
libvirt-utils.h
libvirtaio.py
requirements-test.txt
sanitytest.py
setup.py
tox.ini
typewrappers.c
typewrappers.h
examples/README
examples/consolecallback.py
examples/dhcpleases.py
examples/dominfo.py
examples/domipaddrs.py
examples/domrestore.py
......@@ -46,3 +51,9 @@ examples/guest-vcpus/guest-vcpu-daemon.py
examples/guest-vcpus/guest-vcpu.py
tests/test_conn.py
tests/test_domain.py
tests/test_domain_checkpoint.py
tests/test_domain_snapshot.py
tests/test_interface.py
tests/test_network.py
tests/test_nodedev.py
tests/test_storage.py
include AUTHORS
include COPYING
include COPYING.LESSER
include CONTRIBUTING.rst
include HACKING
include ChangeLog
include examples/README
include examples/consolecallback.py
include examples/dhcpleases.py
include examples/domipaddrs.py
include examples/dominfo.py
include examples/domrestore.py
......@@ -38,10 +42,17 @@ include libvirtaio.py
include MANIFEST
include MANIFEST.in
include README
include requirements-test.txt
include sanitytest.py
include setup.py
include tests/test_conn.py
include tests/test_domain.py
include tests/test_domain_checkpoint.py
include tests/test_domain_snapshot.py
include tests/test_interface.py
include tests/test_network.py
include tests/test_nodedev.py
include tests/test_storage.py
include tox.ini
include typewrappers.c
include typewrappers.h
# Shim wrapper around setup.py to allow for familiar build targets
PYTHON ?= python
all:
$(PYTHON) setup.py build
install: all
$(PYTHON) setup.py install
clean:
$(PYTHON) setup.py clean
check: all
$(PYTHON) setup.py test
rpm:
$(PYTHON) setup.py rpm
Metadata-Version: 1.1
Metadata-Version: 2.1
Name: libvirt-python
Version: 8.0.0
Version: 9.0.0
Summary: The libvirt virtualization API python binding
Home-page: http://www.libvirt.org
Author: Libvirt Maintainers
Author-email: libvir-list@redhat.com
Maintainer: Libvirt Maintainers
Maintainer-email: libvir-list@redhat.com
License: LGPLv2+
Description: The libvirt-python package provides a module that permits applications
written in the Python 3.x programming language to call the interface
supplied by the libvirt library, to manage the virtualization capabilities
of recent versions of Linux (and other OSes).
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+)
......@@ -20,3 +15,13 @@ Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
License-File: COPYING
License-File: COPYING.LESSER
License-File: AUTHORS.in
The libvirt-python package provides a module that permits applications
written in the Python 3.x programming language to call the interface
supplied by the libvirt library, to manage the virtualization capabilities
of recent versions of Linux (and other OSes).
# 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 \
cpp \
gcc \
gettext \
git \
glib2-devel \
glibc-devel \
glibc-langpack-en \
gnutls-devel \
libnl3-devel \
libtirpc-devel \
libvirt-devel \
libxml2 \
libxml2-devel \
libxslt \
make \
meson \
ninja-build \
perl \
pkgconfig \
python3 \
python3-devel \
python3-docutils \
python3-lxml \
python3-pip \
python3-pytest \
python3-setuptools \
rpcgen \
rpm-build
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 MAKE="/usr/bin/make"
export NINJA="/usr/bin/ninja"
export PYTHON="/usr/bin/python3"
# 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 crb
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 \
rpm-build
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"
# 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
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
dpkg-reconfigure locales
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"
# 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
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
dpkg-reconfigure locales
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"
# 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-devel \
python3-lxml \
python3-pip \
python3-pytest \
python3-setuptools \
rpm-build
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"