Skip to content

Commit

Permalink
218 extensions/qemu add support for virt manager (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsManjeet authored Jul 29, 2024
1 parent f089ee0 commit 776c706
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 24 deletions.
18 changes: 8 additions & 10 deletions elements/components/py/py-libvirt.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
id: py-libvirt
version: 8.4.0
version: 10.5.0
about: libvirt python binding
release: 0

depends:
- components/libvirt.yml
- components/python.yml
- components/libvirt.yml
- components/python.yml

build-depends:
- components/py/py-setuptools.yml
sources:
- https://libvirt.org/sources/python/libvirt-python-%{version}.tar.gz
script: |-
python setup.py build
python setup.py install --root=%{install-root} --optimize=1
- components/py/py-setuptools.yml

sources:
- https://libvirt.org/sources/python/libvirt-python-%{version}.tar.gz
26 changes: 12 additions & 14 deletions elements/components/py/py-requests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
id: py-requests
version: 2.28.1
version: 2.32.3
about: Python HTTP for Humans
release: 0

depends:
- components/py/py-chardet.yml
- components/py/py-idna.yml
- components/py/py-urllib3.yml
- components/py/py-socks.yml
- components/py/py-idna.yml
- components/py/py-urllib3.yml
- components/py/py-socks.yml

build-depends:
- components/py/py-setuptools.yml
- components/py/py-setuptools.yml

sources:
- https://github.com/psf/requests/archive/v%{version}/requests-%{version}.tar.gz
pre-script: |
sed -e '/certifi/d' \
-e "s/,<.*'/'/" \
-e '/charset_normalizer/d' \
-i setup.py
patch -p1 -i /files/certs.patch
- https://github.com/psf/requests/archive/v%{version}/requests-%{version}.tar.gz
- patches/py-requests/cert.patch

pre-script: |-
patch -p1 -i cert.patch
13 changes: 13 additions & 0 deletions elements/components/virt-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,29 @@ about: Desktop user interface for managing virtual machines

pre-script: |-
pip install docutils
sed -i '80s/.*/ self.gsettings_dir = os.path.join(prefix, "share", "virt-manager", "schemas")/' virtinst/buildconfig.py
sed -i '81d' virtinst/buildconfig.py
sed -i 's#share/glib-2.0/schemas#share/virt-manager/schemas#' setup.py
configure: >-
--default-hvs qemu,lxc
post-script: |-
python -m compileall %{install-root}/%{datadir}/virt-manager
python -O -m compileall %{install-root}/%{datadir}/virt-manager
depends:
- components/gtk-vnc.yml
- components/gtksourceview4.yml
- components/libvirt-glib.yml
- components/py/py-cairo.yml
- components/spice-gtk.yml
- components/libosinfo.yml
- components/libisoburn.yml
- components/py/py-libvirt.yml
- components/py/py-requests.yml

build-depends:
- components/py/py-setuptools.yml
Expand Down
14 changes: 14 additions & 0 deletions patches/py-requests/cert.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/src/requests/certs.py b/src/requests/certs.py
index be422c3e..9bfe1c80 100644
--- a/src/requests/certs.py
+++ b/src/requests/certs.py
@@ -11,7 +11,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
-from certifi import where
+def where():
+ return "/etc/ssl/certs/ca-certificates.crt"

if __name__ == "__main__":
print(where())

0 comments on commit 776c706

Please sign in to comment.