- Update to version 20.11.0
Added
* Added clone_report_format() and import_report_format()
* Added the get_x_from_string() functions to latest
* Added the ReportFormatType that can be used instead of a
report_format_id.
* Added tests for constructor of SSHConnection, TLSConnection,
UnixSocketConnection and GvmConnection.
Fixed
* Corrected seconds_active parameter to days_active for notes
and overrides.
* Fixed SSHConnection throws TypeError if port is None.
* Fixed GvmConnection timeout set to None if None is passed.
* Fixed TLSConnection values set to None instead of default
values when None is passed for these values.
* Fixed UnixSocketConnection values set to None instead of
default when None is passed for these values.
- Update to version 20.9.1
Added
* Added modify_config_set_name. #295
* Added logic to accept the new AlertEvents TICKET_RECEIVED,
ASSIGNED_TICKET_CHANGED and OWNED_TICKET_CHANGED and the new
Condition SEVERITY_CHANGED.
* Added create_config_from_osp_scanner. #298
Changed
* Added the details parameter to get_tls_certificate and
get_tls_certificates.
* Added the comment parameter to create_config.
Fixed
OBS-URL: https://build.opensuse.org/request/show/846151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=6
75 lines
2.5 KiB
RPMSpec
75 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-python-gvm
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-python-gvm
|
|
Version: 20.11.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
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# 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}
|
|
# /SECTION
|
|
Requires: python-defusedxml >= 0.6.0
|
|
Requires: python-lxml >= 4.5.0
|
|
Requires: python-paramiko >= 2.7.1
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Greenbone Vulnerability Management Python API library python-gvm is a
|
|
collection of APIs that help with remote controlling a Greenbone Security
|
|
Manager (GSM) appliance and its underlying Greenbone Vulnerability Manager
|
|
(GVM). The library essentially abstracts accessing the communication protocols
|
|
Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
|
|
|
|
%prep
|
|
%setup -q -n python-gvm-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
# Remove tests from sitelib
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
rm tests/connections/test_unix_socket_connection.py
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/gvm
|
|
%{python_sitelib}/python_gvm*
|
|
|
|
%changelog
|