libvirt-python 10.0.0__tar.gz → 10.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.gitlab-ci.yml +12 -41
  2. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/AUTHORS +1 -0
  3. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ChangeLog +53 -0
  4. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/PKG-INFO +1 -1
  5. libvirt-python-10.2.0/VERSION +1 -0
  6. libvirt-python-10.0.0/ci/buildenv/centos-stream-9.sh → libvirt-python-10.2.0/ci/buildenv/centos-stream-8.sh +3 -1
  7. libvirt-python-10.0.0/ci/buildenv/centos-stream-8.sh → libvirt-python-10.2.0/ci/buildenv/centos-stream-9.sh +4 -5
  8. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/debian-sid.sh +1 -0
  9. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/fedora-38.sh +1 -0
  10. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/fedora-rawhide.sh +1 -0
  11. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/opensuse-leap-15.sh +1 -0
  12. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/opensuse-tumbleweed.sh +2 -2
  13. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/ubuntu-2004.sh +1 -0
  14. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/buildenv/ubuntu-2204.sh +1 -0
  15. libvirt-python-10.0.0/ci/containers/centos-stream-9.Dockerfile → libvirt-python-10.2.0/ci/containers/centos-stream-8.Dockerfile +4 -2
  16. libvirt-python-10.0.0/ci/containers/centos-stream-8.Dockerfile → libvirt-python-10.2.0/ci/containers/centos-stream-9.Dockerfile +5 -7
  17. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/debian-sid.Dockerfile +1 -0
  18. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/fedora-38.Dockerfile +1 -0
  19. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/fedora-rawhide.Dockerfile +1 -0
  20. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/opensuse-leap-15.Dockerfile +1 -0
  21. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/opensuse-tumbleweed.Dockerfile +2 -3
  22. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/ubuntu-2004.Dockerfile +1 -0
  23. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/containers/ubuntu-2204.Dockerfile +1 -0
  24. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/gitlab/build-templates.yml +35 -24
  25. libvirt-python-10.2.0/ci/gitlab/builds.yml +162 -0
  26. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/manifest.yml +8 -7
  27. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override.c +8 -5
  28. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-python.spec +1 -1
  29. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_api_coverage.py +3 -1
  30. libvirt-python-10.0.0/VERSION +0 -1
  31. libvirt-python-10.0.0/ci/gitlab/builds.yml +0 -269
  32. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.ctags +0 -0
  33. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.dir-locals.el +0 -0
  34. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.github/workflows/lockdown.yml +0 -0
  35. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.gitignore +0 -0
  36. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/.mailmap +0 -0
  37. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/AUTHORS.in +0 -0
  38. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/CONTRIBUTING.rst +0 -0
  39. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/COPYING +0 -0
  40. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/HACKING +0 -0
  41. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/MANIFEST.in +0 -0
  42. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/Makefile +0 -0
  43. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/README +0 -0
  44. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/build/libvirt_python.egg-info/SOURCES.txt +0 -0
  45. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/gitlab/container-templates.yml +0 -0
  46. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/gitlab/containers.yml +0 -0
  47. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/gitlab/sanity-checks.yml +0 -0
  48. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/ci/gitlab.yml +0 -0
  49. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/README +0 -0
  50. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/consolecallback.py +0 -0
  51. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/dhcpleases.py +0 -0
  52. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/dominfo.py +0 -0
  53. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/domipaddrs.py +0 -0
  54. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/domrestore.py +0 -0
  55. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/domsave.py +0 -0
  56. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/domstart.py +0 -0
  57. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/esxlist.py +0 -0
  58. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/event-test.py +0 -0
  59. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/guest-vcpus/guest-vcpu-daemon.py +0 -0
  60. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/guest-vcpus/guest-vcpu.py +0 -0
  61. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/nodestats.py +0 -0
  62. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/sparsestream.py +0 -0
  63. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/examples/topology.py +0 -0
  64. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/generator.py +0 -0
  65. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-lxc-override-api.xml +0 -0
  66. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-lxc-override.c +0 -0
  67. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-api.xml +0 -0
  68. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virConnect.py +0 -0
  69. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virDomain.py +0 -0
  70. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virDomainCheckpoint.py +0 -0
  71. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virDomainSnapshot.py +0 -0
  72. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virNetwork.py +0 -0
  73. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virStoragePool.py +0 -0
  74. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override-virStream.py +0 -0
  75. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-override.py +0 -0
  76. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-python.spec.in +0 -0
  77. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-qemu-override-api.xml +0 -0
  78. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-qemu-override.c +0 -0
  79. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-qemu-override.py +0 -0
  80. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-utils.c +0 -0
  81. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirt-utils.h +0 -0
  82. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/libvirtaio.py +0 -0
  83. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/pyproject.toml +0 -0
  84. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/requirements-test.txt +0 -0
  85. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/setup.cfg +0 -0
  86. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/setup.py +0 -0
  87. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/eventmock.py +0 -0
  88. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_aio.py +0 -0
  89. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_conn.py +0 -0
  90. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_domain.py +0 -0
  91. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_domain_checkpoint.py +0 -0
  92. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_domain_snapshot.py +0 -0
  93. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_interface.py +0 -0
  94. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_network.py +0 -0
  95. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_nodedev.py +0 -0
  96. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tests/test_storage.py +0 -0
  97. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/tox.ini +0 -0
  98. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/typewrappers.c +0 -0
  99. {libvirt-python-10.0.0 → libvirt-python-10.2.0}/typewrappers.h +0 -0
@@ -15,6 +15,8 @@ stages:
15
15
  export CFLAGS="-Werror"
16
16
 
17
17
  .native_git_build_job:
18
+ extends:
19
+ - .gitlab_native_build_job
18
20
  script:
19
21
  - *git_build_vars
20
22
  - pushd "$PWD"
@@ -36,17 +38,9 @@ stages:
36
38
  mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
37
39
  fi
38
40
 
39
- .native_git_build_job_prebuilt_env:
40
- extends:
41
- - .native_git_build_job
42
- - .gitlab_native_build_job_prebuilt_env
43
-
44
- .native_git_build_job_local_env:
45
- extends:
46
- - .native_git_build_job
47
- - .gitlab_native_build_job_local_env
48
-
49
41
  .native_build_job:
42
+ extends:
43
+ - .gitlab_native_build_job
50
44
  script:
51
45
  - export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
52
46
  - export CFLAGS="-Werror"
@@ -61,19 +55,14 @@ stages:
61
55
  mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
62
56
  fi
63
57
 
64
- .native_build_job_prebuilt_env:
65
- extends:
66
- - .native_build_job
67
- - .gitlab_native_build_job_prebuilt_env
68
-
69
- .native_build_job_local_env:
70
- extends:
71
- - .native_build_job
72
- - .gitlab_native_build_job_local_env
73
-
74
58
  include: '/ci/gitlab.yml'
75
59
 
76
- .api_coverage_job:
60
+ api_coverage_job:
61
+ extends:
62
+ - .gitlab_native_build_job
63
+ needs:
64
+ - job: x86_64-centos-stream-9-git
65
+ artifacts: true
77
66
  stage: sanity_checks
78
67
  script:
79
68
  - *git_build_vars
@@ -81,24 +70,6 @@ include: '/ci/gitlab.yml'
81
70
  - test-venv/bin/python -m pip install dist/libvirt_python*.whl
82
71
  - LIBVIRT_API_COVERAGE=1 test-venv/bin/python -m pytest tests
83
72
  allow_failure: true
84
-
85
- api_coverage_prebuilt_env:
86
- extends:
87
- - .gitlab_native_build_job_prebuilt_env
88
- - .api_coverage_job
89
- needs:
90
- - job: x86_64-centos-stream-8-git-prebuilt-env
91
- artifacts: true
92
- variables:
93
- NAME: centos-stream-8
94
-
95
- api_coverage_local_env:
96
- extends:
97
- - .gitlab_native_build_job_local_env
98
- - .api_coverage_job
99
- needs:
100
- - job: x86_64-centos-stream-8-git-local-env
101
- artifacts: true
102
73
  variables:
103
- IMAGE: quay.io/centos/centos:stream8
104
- NAME: centos-stream-8
74
+ NAME: centos-stream-9
75
+ TARGET_BASE_IMAGE: quay.io/centos/centos:stream9
@@ -94,6 +94,7 @@ The individual contributors are
94
94
  Tomáš Golembiovský <tgolembi@redhat.com>
95
95
  Victor Stinner <victor.stinner@gmail.com>
96
96
  Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
97
+ Vincent Vanlaer <libvirt-e6954efa@volkihar.be>
97
98
  Vincent Vanlaer <vincent.vanlaer@skynet.be>
98
99
  w00506750 <hogan.wang@huawei.com>
99
100
  Wojtek Porczyk <woju@invisiblethingslab.com>
@@ -1,3 +1,56 @@
1
+ 2024- 3- 1 Jiri Denemark <jdenemar@redhat.com>
2
+
3
+ Post-release version bump to 10.2.0
4
+
5
+
6
+ 2024- 2- 27 Michal Privoznik <mprivozn@redhat.com>
7
+
8
+ ci: Switch native_git_build_job to c9s and resume api_coverage_job
9
+ Currently, there's just one native_git_build_job -
10
+ x86_64-centos-stream-8-git and this is a problem because that's
11
+ the job that api_coverage_job then uses. But CentOS Stream 8 has
12
+ too old lxml which then makes tests/test_api_coverage.py skip its
13
+ run. By switching to CentOS Stream 9 the test can run happily
14
+ again.
15
+
16
+
17
+
18
+ 2024- 2- 27 Michal Privoznik <mprivozn@redhat.com>
19
+
20
+ test_api_coverage: Reflect different naming in python for virDomainFDAssociate() and virDomainRestoreParams()
21
+ While virDomainRestoreParams() has 'virDomain' prefix (and thus
22
+ is put into Domain class), it is really in the same family as
23
+ virDomainRestore() or virDomainRestoreFlags() -> it acts upon
24
+ virConnect object and thus belongs into Connect class.
25
+
26
+ Then, virDomainFDAssociate is exposed as Domain.FDAssociate() but
27
+ because of the way we would generate the method's name
28
+ (fDAssociate) the test thinks it's not implemented.
29
+
30
+
31
+
32
+ 2024- 2- 20 Vincent Vanlaer <libvirt-e6954efa@volkihar.be>
33
+
34
+ Fix memory leak in virStreamRecvFlags
35
+ virStreamRecvFlags allocates a temporary buffer to store the received
36
+ stream data in. This buffer was not freed on returns other than the
37
+ normal return with data.
38
+
39
+
40
+
41
+ 2024- 1- 19 Daniel P. Berrangé <berrange@redhat.com>
42
+
43
+ ci: refresh with latest 'lcitool manifest'
44
+ This refresh gets rid of the split jobs for prebuilt and local
45
+ container environments.
46
+
47
+
48
+
49
+ 2024- 1- 15 Jiri Denemark <jdenemar@redhat.com>
50
+
51
+ Post-release version bump to 10.1.0
52
+
53
+
1
54
  2024- 1- 8 Peter Krempa <pkrempa@redhat.com>
2
55
 
3
56
  ci: Install built module for testing insde an venv
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libvirt-python
3
- Version: 10.0.0
3
+ Version: 10.2.0
4
4
  Summary: The libvirt virtualization API python binding
5
5
  Home-page: http://www.libvirt.org
6
6
  Maintainer: Libvirt Maintainers
@@ -0,0 +1 @@
1
+ 10.2.0
@@ -7,7 +7,8 @@
7
7
  function install_buildenv() {
8
8
  dnf distro-sync -y
9
9
  dnf install 'dnf-command(config-manager)' -y
10
- dnf config-manager --set-enabled -y crb
10
+ dnf config-manager --set-enabled -y powertools
11
+ dnf install -y centos-release-advanced-virtualization
11
12
  dnf install -y epel-release
12
13
  dnf install -y epel-next-release
13
14
  dnf install -y \
@@ -26,6 +27,7 @@ function install_buildenv() {
26
27
  python3-setuptools \
27
28
  python3-wheel \
28
29
  rpm-build
30
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
29
31
  rpm -qa | sort > /packages.txt
30
32
  mkdir -p /usr/libexec/ccache-wrappers
31
33
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -7,8 +7,7 @@
7
7
  function install_buildenv() {
8
8
  dnf distro-sync -y
9
9
  dnf install 'dnf-command(config-manager)' -y
10
- dnf config-manager --set-enabled -y powertools
11
- dnf install -y centos-release-advanced-virtualization
10
+ dnf config-manager --set-enabled -y crb
12
11
  dnf install -y epel-release
13
12
  dnf install -y epel-next-release
14
13
  dnf install -y \
@@ -31,22 +30,22 @@ function install_buildenv() {
31
30
  make \
32
31
  meson \
33
32
  ninja-build \
34
- perl \
33
+ perl-base \
35
34
  pkgconfig \
36
35
  python3 \
36
+ python3-build \
37
37
  python3-devel \
38
38
  python3-docutils \
39
39
  python3-lxml \
40
40
  python3-pip \
41
41
  python3-pytest \
42
42
  python3-setuptools \
43
- python3-wheel \
44
43
  rpm-build
44
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
45
45
  rpm -qa | sort > /packages.txt
46
46
  mkdir -p /usr/libexec/ccache-wrappers
47
47
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
48
48
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
49
- /usr/bin/pip3 install build
50
49
  }
51
50
 
52
51
  export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
@@ -26,6 +26,7 @@ function install_buildenv() {
26
26
  python3-venv
27
27
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
28
28
  dpkg-reconfigure locales
29
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
29
30
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
30
31
  mkdir -p /usr/libexec/ccache-wrappers
31
32
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -22,6 +22,7 @@ function install_buildenv() {
22
22
  python3-pytest \
23
23
  python3-setuptools \
24
24
  rpm-build
25
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
25
26
  rpm -qa | sort > /packages.txt
26
27
  mkdir -p /usr/libexec/ccache-wrappers
27
28
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -23,6 +23,7 @@ function install_buildenv() {
23
23
  python3-pytest \
24
24
  python3-setuptools \
25
25
  rpm-build
26
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
26
27
  rpm -qa | sort > /packages.txt
27
28
  mkdir -p /usr/libexec/ccache-wrappers
28
29
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -22,6 +22,7 @@ function install_buildenv() {
22
22
  python3-setuptools \
23
23
  python3-wheel \
24
24
  rpm-build
25
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
25
26
  rpm -qa | sort > /packages.txt
26
27
  mkdir -p /usr/libexec/ccache-wrappers
27
28
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -15,18 +15,18 @@ function install_buildenv() {
15
15
  libvirt-devel \
16
16
  pkgconfig \
17
17
  python3-base \
18
+ python3-build \
18
19
  python3-devel \
19
20
  python3-lxml \
20
21
  python3-pip \
21
22
  python3-pytest \
22
23
  python3-setuptools \
23
- python3-wheel \
24
24
  rpm-build
25
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
25
26
  rpm -qa | sort > /packages.txt
26
27
  mkdir -p /usr/libexec/ccache-wrappers
27
28
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
28
29
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
29
- /usr/bin/pip3 install build
30
30
  }
31
31
 
32
32
  export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
@@ -26,6 +26,7 @@ function install_buildenv() {
26
26
  python3-wheel
27
27
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
28
28
  dpkg-reconfigure locales
29
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
29
30
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
30
31
  mkdir -p /usr/libexec/ccache-wrappers
31
32
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -26,6 +26,7 @@ function install_buildenv() {
26
26
  python3-wheel
27
27
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen
28
28
  dpkg-reconfigure locales
29
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
29
30
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
30
31
  mkdir -p /usr/libexec/ccache-wrappers
31
32
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
@@ -4,11 +4,12 @@
4
4
  #
5
5
  # https://gitlab.com/libvirt/libvirt-ci
6
6
 
7
- FROM quay.io/centos/centos:stream9
7
+ FROM quay.io/centos/centos:stream8
8
8
 
9
9
  RUN dnf distro-sync -y && \
10
10
  dnf install 'dnf-command(config-manager)' -y && \
11
- dnf config-manager --set-enabled -y crb && \
11
+ dnf config-manager --set-enabled -y powertools && \
12
+ dnf install -y centos-release-advanced-virtualization && \
12
13
  dnf install -y epel-release && \
13
14
  dnf install -y epel-next-release && \
14
15
  dnf install -y \
@@ -29,6 +30,7 @@ RUN dnf distro-sync -y && \
29
30
  rpm-build && \
30
31
  dnf autoremove -y && \
31
32
  dnf clean all -y && \
33
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
32
34
  rpm -qa | sort > /packages.txt && \
33
35
  mkdir -p /usr/libexec/ccache-wrappers && \
34
36
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -4,12 +4,11 @@
4
4
  #
5
5
  # https://gitlab.com/libvirt/libvirt-ci
6
6
 
7
- FROM quay.io/centos/centos:stream8
7
+ FROM quay.io/centos/centos:stream9
8
8
 
9
9
  RUN dnf distro-sync -y && \
10
10
  dnf install 'dnf-command(config-manager)' -y && \
11
- dnf config-manager --set-enabled -y powertools && \
12
- dnf install -y centos-release-advanced-virtualization && \
11
+ dnf config-manager --set-enabled -y crb && \
13
12
  dnf install -y epel-release && \
14
13
  dnf install -y epel-next-release && \
15
14
  dnf install -y \
@@ -32,26 +31,25 @@ RUN dnf distro-sync -y && \
32
31
  make \
33
32
  meson \
34
33
  ninja-build \
35
- perl \
34
+ perl-base \
36
35
  pkgconfig \
37
36
  python3 \
37
+ python3-build \
38
38
  python3-devel \
39
39
  python3-docutils \
40
40
  python3-lxml \
41
41
  python3-pip \
42
42
  python3-pytest \
43
43
  python3-setuptools \
44
- python3-wheel \
45
44
  rpm-build && \
46
45
  dnf autoremove -y && \
47
46
  dnf clean all -y && \
47
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
48
48
  rpm -qa | sort > /packages.txt && \
49
49
  mkdir -p /usr/libexec/ccache-wrappers && \
50
50
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
51
51
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
52
52
 
53
- RUN /usr/bin/pip3 install build
54
-
55
53
  ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
56
54
  ENV LANG "en_US.UTF-8"
57
55
  ENV MAKE "/usr/bin/make"
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
30
30
  eatmydata apt-get autoclean -y && \
31
31
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
32
32
  dpkg-reconfigure locales && \
33
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
33
34
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
34
35
  mkdir -p /usr/libexec/ccache-wrappers && \
35
36
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -35,6 +35,7 @@ exec "$@"\n' > /usr/bin/nosync && \
35
35
  rpm-build && \
36
36
  nosync dnf autoremove -y && \
37
37
  nosync dnf clean all -y && \
38
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
38
39
  rpm -qa | sort > /packages.txt && \
39
40
  mkdir -p /usr/libexec/ccache-wrappers && \
40
41
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -36,6 +36,7 @@ exec "$@"\n' > /usr/bin/nosync && \
36
36
  rpm-build && \
37
37
  nosync dnf autoremove -y && \
38
38
  nosync dnf clean all -y && \
39
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
39
40
  rpm -qa | sort > /packages.txt && \
40
41
  mkdir -p /usr/libexec/ccache-wrappers && \
41
42
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -24,6 +24,7 @@ RUN zypper update -y && \
24
24
  python3-wheel \
25
25
  rpm-build && \
26
26
  zypper clean --all && \
27
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
27
28
  rpm -qa | sort > /packages.txt && \
28
29
  mkdir -p /usr/libexec/ccache-wrappers && \
29
30
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -16,21 +16,20 @@ RUN zypper dist-upgrade -y && \
16
16
  libvirt-devel \
17
17
  pkgconfig \
18
18
  python3-base \
19
+ python3-build \
19
20
  python3-devel \
20
21
  python3-lxml \
21
22
  python3-pip \
22
23
  python3-pytest \
23
24
  python3-setuptools \
24
- python3-wheel \
25
25
  rpm-build && \
26
26
  zypper clean --all && \
27
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
27
28
  rpm -qa | sort > /packages.txt && \
28
29
  mkdir -p /usr/libexec/ccache-wrappers && \
29
30
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
30
31
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
31
32
 
32
- RUN /usr/bin/pip3 install build
33
-
34
33
  ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
35
34
  ENV LANG "en_US.UTF-8"
36
35
  ENV PYTHON "/usr/bin/python3"
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
30
30
  eatmydata apt-get autoclean -y && \
31
31
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
32
32
  dpkg-reconfigure locales && \
33
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
33
34
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
34
35
  mkdir -p /usr/libexec/ccache-wrappers && \
35
36
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
30
30
  eatmydata apt-get autoclean -y && \
31
31
  sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
32
32
  dpkg-reconfigure locales && \
33
+ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
33
34
  dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
34
35
  mkdir -p /usr/libexec/ccache-wrappers && \
35
36
  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
@@ -20,16 +20,25 @@
20
20
  # include CI changes
21
21
  # - Validating code committed to a fork branch
22
22
  #
23
- # Note: the rules across the prebuilt_env and local_env templates
23
+ # Note: the rules across the prebuilt and local container scenarios
24
24
  # should be logical inverses, such that jobs are mutually exclusive
25
25
  #
26
- .gitlab_native_build_job_prebuilt_env:
27
- image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt-python/ci-$NAME:latest
26
+ .gitlab_native_build_job:
27
+ image: $IMAGE
28
28
  stage: builds
29
29
  interruptible: true
30
30
  before_script:
31
+ - if test "$IMAGE" == "$TARGET_BASE_IMAGE" ;
32
+ then
33
+ source ci/buildenv/$NAME.sh ;
34
+ install_buildenv ;
35
+ fi
31
36
  - cat /packages.txt
37
+ variables:
38
+ IMAGE: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt-python/ci-$NAME:latest
32
39
  rules:
40
+ ### Rules where we expect to use pre-built container images
41
+
33
42
  # upstream: pushes to the default branch
34
43
  - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
35
44
  when: manual
@@ -63,49 +72,41 @@
63
72
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
64
73
  when: on_success
65
74
 
66
- # upstream+forks: that's all folks
67
- - when: never
68
75
 
69
- .gitlab_native_build_job_local_env:
70
- image: $IMAGE
71
- stage: builds
72
- interruptible: true
73
- before_script:
74
- - source ci/buildenv/$NAME.sh
75
- - install_buildenv
76
- - cat /packages.txt
77
- rules:
78
- # upstream: pushes to a non-default branch
79
- - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
80
- when: manual
81
- allow_failure: true
82
- - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
83
- when: on_success
84
-
85
- # forks: avoid build in local env when job requests run in upstream containers
86
- - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE_UPSTREAM_ENV'
87
- when: never
76
+ ### Rules where we need to use the target base container image
88
77
 
89
78
  # forks: pushes to branches with pipeline requested
90
79
  - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
91
80
  when: manual
92
81
  allow_failure: true
82
+ variables:
83
+ IMAGE: $TARGET_BASE_IMAGE
93
84
  - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
94
85
  when: on_success
86
+ variables:
87
+ IMAGE: $TARGET_BASE_IMAGE
95
88
 
96
89
  # upstream: other web/api/scheduled pipelines targeting non-default branches
97
90
  - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
98
91
  when: manual
99
92
  allow_failure: true
93
+ variables:
94
+ IMAGE: $TARGET_BASE_IMAGE
100
95
  - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
101
96
  when: on_success
97
+ variables:
98
+ IMAGE: $TARGET_BASE_IMAGE
102
99
 
103
100
  # forks: other web/api/scheduled pipelines
104
101
  - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $JOB_OPTIONAL'
105
102
  when: manual
106
103
  allow_failure: true
104
+ variables:
105
+ IMAGE: $TARGET_BASE_IMAGE
107
106
  - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
108
107
  when: on_success
108
+ variables:
109
+ IMAGE: $TARGET_BASE_IMAGE
109
110
 
110
111
  # upstream+forks: merge requests targeting the default branch, with CI changes
111
112
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
@@ -114,18 +115,28 @@
114
115
  - ci/containers/$NAME.Dockerfile
115
116
  when: manual
116
117
  allow_failure: true
118
+ variables:
119
+ IMAGE: $TARGET_BASE_IMAGE
117
120
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
118
121
  changes:
119
122
  - ci/gitlab/container-templates.yml
120
123
  - ci/containers/$NAME.Dockerfile
121
124
  when: on_success
125
+ variables:
126
+ IMAGE: $TARGET_BASE_IMAGE
122
127
 
123
128
  # upstream+forks: merge requests targeting non-default branches
124
129
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
125
130
  when: manual
126
131
  allow_failure: true
132
+ variables:
133
+ IMAGE: $TARGET_BASE_IMAGE
127
134
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
128
135
  when: on_success
136
+ variables:
137
+ IMAGE: $TARGET_BASE_IMAGE
138
+
139
+ ### Neither prebuilt or local container images
129
140
 
130
141
  # upstream+forks: that's all folks
131
142
  - when: never