17
0

Compare commits

4 Commits

Author SHA256 Message Date
1dcdc21fed Accepting request 1226247 from devel:languages:python
- Add opensuse-fix-tests-1-core.patch custom patch to fix tests
  running in OBS with limited resources, running on 1-core-VM.
  bsc#1233398

OBS-URL: https://build.opensuse.org/request/show/1226247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-gvm?expand=0&rev=8
2024-11-25 22:22:44 +00:00
a01309692e - Add opensuse-fix-tests-1-core.patch custom patch to fix tests
running in OBS with limited resources, running on 1-core-VM.
  bsc#1233398

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=16
2024-11-25 10:53:24 +00:00
27e43f24ee Accepting request 1223938 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1223938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-gvm?expand=0&rev=7
2024-11-14 15:08:00 +00:00
31a6ed8821 Accepting request 1223933 from home:mcalabkova:branches:devel:languages:python
- Update to 24.8.0
  * Drop typing_extensions dependency. Drop the use of the Self component 
    from typing_extensions and use the typing library instead
  * 24.6 contains a major internal refactoring and drops support for GMP < 22.4.
  * Use base enum class for most enums in python-gvm
  * Enable "security-and-quality" quereis for CodeQL
  * Many more changes, see upstream changelog

OBS-URL: https://build.opensuse.org/request/show/1223933
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=14
2024-11-13 12:48:12 +00:00
5 changed files with 47 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
Index: python_gvm-24.8.0/tests/connections/test_unix_socket_connection.py
===================================================================
--- python_gvm-24.8.0.orig/tests/connections/test_unix_socket_connection.py
+++ python_gvm-24.8.0/tests/connections/test_unix_socket_connection.py
@@ -62,6 +62,13 @@ class UnixSocketConnectionTestCase(unitt
connection.disconnect()
def test_unix_socket_connection_connect_send_bytes_read(self):
+ # Add sleep to make sure setup theading server is up and
+ # running even with limited resources, bsc#1233398
+ import time
+ import multiprocessing
+ if multiprocessing.cpu_count() == 1:
+ time.sleep(2)
+
connection = UnixSocketConnection(
path=self.socket_name, timeout=DEFAULT_TIMEOUT
)

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Nov 25 10:29:53 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add opensuse-fix-tests-1-core.patch custom patch to fix tests
running in OBS with limited resources, running on 1-core-VM.
bsc#1233398
-------------------------------------------------------------------
Wed Nov 13 12:28:07 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 24.8.0
* Drop typing_extensions dependency. Drop the use of the Self component
from typing_extensions and use the typing library instead
* 24.6 contains a major internal refactoring and drops support for GMP < 22.4.
* Use base enum class for most enums in python-gvm
* Enable "security-and-quality" quereis for CodeQL
* Many more changes, see upstream changelog
-------------------------------------------------------------------
Tue Aug 1 08:33:40 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-gvm
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@@ -17,30 +17,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
%define skip_python39 1
Name: python-python-gvm
Version: 23.5.0
Version: 24.8.0
Release: 0
Summary: Library to communicate with remote servers over GMP or OSP
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/greenbone/python-gvm
Source: https://files.pythonhosted.org/packages/source/p/python_gvm/python_gvm-%{version}.tar.gz
# PATCH-FIX-OPENSUSE opensuse-fix-tests-1-core.patch -- bsc#1233398
# Fix tests running with 1 core in VM
Patch: opensuse-fix-tests-1-core.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-defusedxml >= 0.6.0
Requires: python-lxml >= 4.5.0
Requires: python-paramiko >= 2.7.1
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module defusedxml >= 0.6.0}
BuildRequires: %{python_module lxml >= 4.5.0}
BuildRequires: %{python_module paramiko >= 2.7.1}
BuildRequires: %{python_module pytest}
@@ -55,7 +52,7 @@ Manager (GSM) appliance and its underlying Greenbone Vulnerability Manager
Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
%prep
%setup -q -n python_gvm-%{version}
%autosetup -p1 -n python_gvm-%{version}
%build
%pyproject_wheel
@@ -67,6 +64,8 @@ Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_pretty_print needs pontos, which we don't have
rm tests/xml/test_pretty_print.py
%pytest
%files %{python_files}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56b64ce625bebc257b226e43f8e4a4d54115b64cdf7a254cc557ec98b1e5a4d8
size 174901

3
python_gvm-24.8.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35b66b90aa41648ca78bd8d763fe811bc282697aecb1c2353a7a2cfdd23c1b9a
size 190379