Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
1dcdc21fed | |||
a01309692e | |||
27e43f24ee | |||
31a6ed8821 |
18
opensuse-fix-tests-1-core.patch
Normal file
18
opensuse-fix-tests-1-core.patch
Normal 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
|
||||||
|
)
|
@@ -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>
|
Tue Aug 1 08:33:40 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-gvm
|
# 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>
|
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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
|
Name: python-python-gvm
|
||||||
Version: 23.5.0
|
Version: 24.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library to communicate with remote servers over GMP or OSP
|
Summary: Library to communicate with remote servers over GMP or OSP
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/greenbone/python-gvm
|
URL: https://github.com/greenbone/python-gvm
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/python_gvm/python_gvm-%{version}.tar.gz
|
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 pip}
|
||||||
BuildRequires: %{python_module poetry-core}
|
BuildRequires: %{python_module poetry-core}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-defusedxml >= 0.6.0
|
|
||||||
Requires: python-lxml >= 4.5.0
|
Requires: python-lxml >= 4.5.0
|
||||||
Requires: python-paramiko >= 2.7.1
|
Requires: python-paramiko >= 2.7.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module defusedxml >= 0.6.0}
|
|
||||||
BuildRequires: %{python_module lxml >= 4.5.0}
|
BuildRequires: %{python_module lxml >= 4.5.0}
|
||||||
BuildRequires: %{python_module paramiko >= 2.7.1}
|
BuildRequires: %{python_module paramiko >= 2.7.1}
|
||||||
BuildRequires: %{python_module pytest}
|
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).
|
Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python_gvm-%{version}
|
%autosetup -p1 -n python_gvm-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -67,6 +64,8 @@ Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# test_pretty_print needs pontos, which we don't have
|
||||||
|
rm tests/xml/test_pretty_print.py
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
@@ -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
3
python_gvm-24.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:35b66b90aa41648ca78bd8d763fe811bc282697aecb1c2353a7a2cfdd23c1b9a
|
||||||
|
size 190379
|
Reference in New Issue
Block a user