14
0
Files
python-python-gvm/python-python-gvm.spec

78 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-python-gvm
#
# Copyright (c) 2024 SUSE LLC
Accepting request 897675 from home:mnhauke:OpenVAS - Update to version 21.5.0 * Dropped support for GMP v7, v8 and v9! * Introduced new explicit API calls for SecInfo: get_nvt(), get_nvt_list(), get_cpe(), get_cpe_list(), get_cve(), get_cve_list(), get_cert_bund_advisory(), get_cert_bund_advisory_list(), get_dnf_cert_advisory(), get_dnf_cert_advisory_list(), get_oval_definition(), get_oval_definition_list(). Changed * Splitted up get_preference(s) into get_nvt_preference(s) and get_scan_config_preference(s). * Improved and changed help(): Introduced HelpFormat Enum, changed format parameter to help_format using HelpFormat, changed help_type to brief and bool, as it only has two options (default and brief). * Changed filter to filter_string in getter functions. * API changes: get_setting(s) -> get_user_setting(s), modify_setting -> modify_user_setting. #472 * Changed all API calls for _config to _scan_config to match other Greenbone components. #465 * Split up get_asset(s) into get_host(s) and get_operating_system(s). #459 * Split up delete_asset into delete_host and delete_operating_system. #459 * Split up modify_asset into modify_host and modify_operating_system. #459 * Deleted AssetType. It is not required anymore. #459 * Changed the API calls get_nvt() and get_nvts() to get_scan_config_nvt() and get_scan_config_nvts(). #456 * Splitted up the GmpMonolith class OBS-URL: https://build.opensuse.org/request/show/897675 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=8
2021-06-05 12:21:54 +00:00
# Copyright (c) 2020-2021, 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/
#
Name: python-python-gvm
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
- update to 23.2.0: * Use universal release action, not python specific d7d4ea59 * Add workaround for non-standard SSH ports (#925) 6a8c2f19 * Format workflows, update actions and support Python 3.11 * Format workflows, update actions and support Python 3.11 * Improve error output in case of unix socket connection issues * Start to deploy the python-gvm docs at github pages too 98ac0c56 * Remove hardcoded ignore_pagination from get_reports (#821) * Update links and terms in README and docs 6bd8c78e * Fix setting the port for the SSH connection #818 9784cf52 * Improve installation chapter d1d602e4 * Use furo theme for sphinx based docs for improved navigation * Use sphinx directly for typehints in API docs f707efdf * Update gvmd socket location to /run/gvmd/gvmd.sock 4a0f1706 * Adjust PR template for using Conventional Commits 6287140d * Update lastest Gmp class to 22.4 44e85036 * Add missing API docs for GMP 22.4 class (#804) fb69ec30 * Use isort for sorting Python import automatically e61b9ac5 * OSP Scanner is deprecated with 22.04 (#789) 1cf0559a * Normalize all strings with black fbf0083d * Check port in overrides/notes like in gvmd 905e85ab * severity values of '0' have not been passed to gvmd cd4e0b44 gvm/compare/22.6.1.dev1...22.6.1 * Don't mention ALLINFO in the get_info_list method dc288185 * Deprecate ifaces and icafes allow_parameters in user commands * Rename GMP 21.10 to GMP 22.04 [#691] f5ef7672 * Unwrap SSL socket before closing transport socket. (#737) * Ensure that connection is closed when using context manager * Added support for PEP-561 c354da8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=10
2023-03-06 12:18:48 +00:00
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
- update to 23.2.0: * Use universal release action, not python specific d7d4ea59 * Add workaround for non-standard SSH ports (#925) 6a8c2f19 * Format workflows, update actions and support Python 3.11 * Format workflows, update actions and support Python 3.11 * Improve error output in case of unix socket connection issues * Start to deploy the python-gvm docs at github pages too 98ac0c56 * Remove hardcoded ignore_pagination from get_reports (#821) * Update links and terms in README and docs 6bd8c78e * Fix setting the port for the SSH connection #818 9784cf52 * Improve installation chapter d1d602e4 * Use furo theme for sphinx based docs for improved navigation * Use sphinx directly for typehints in API docs f707efdf * Update gvmd socket location to /run/gvmd/gvmd.sock 4a0f1706 * Adjust PR template for using Conventional Commits 6287140d * Update lastest Gmp class to 22.4 44e85036 * Add missing API docs for GMP 22.4 class (#804) fb69ec30 * Use isort for sorting Python import automatically e61b9ac5 * OSP Scanner is deprecated with 22.04 (#789) 1cf0559a * Normalize all strings with black fbf0083d * Check port in overrides/notes like in gvmd 905e85ab * severity values of '0' have not been passed to gvmd cd4e0b44 gvm/compare/22.6.1.dev1...22.6.1 * Don't mention ALLINFO in the get_info_list method dc288185 * Deprecate ifaces and icafes allow_parameters in user commands * Rename GMP 21.10 to GMP 22.04 [#691] f5ef7672 * Unwrap SSL socket before closing transport socket. (#737) * Ensure that connection is closed when using context manager * Added support for PEP-561 c354da8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=10
2023-03-06 12:18:48 +00:00
Requires: python-lxml >= 4.5.0
Requires: python-paramiko >= 2.7.1
BuildArch: noarch
# SECTION test requirements
- update to 23.2.0: * Use universal release action, not python specific d7d4ea59 * Add workaround for non-standard SSH ports (#925) 6a8c2f19 * Format workflows, update actions and support Python 3.11 * Format workflows, update actions and support Python 3.11 * Improve error output in case of unix socket connection issues * Start to deploy the python-gvm docs at github pages too 98ac0c56 * Remove hardcoded ignore_pagination from get_reports (#821) * Update links and terms in README and docs 6bd8c78e * Fix setting the port for the SSH connection #818 9784cf52 * Improve installation chapter d1d602e4 * Use furo theme for sphinx based docs for improved navigation * Use sphinx directly for typehints in API docs f707efdf * Update gvmd socket location to /run/gvmd/gvmd.sock 4a0f1706 * Adjust PR template for using Conventional Commits 6287140d * Update lastest Gmp class to 22.4 44e85036 * Add missing API docs for GMP 22.4 class (#804) fb69ec30 * Use isort for sorting Python import automatically e61b9ac5 * OSP Scanner is deprecated with 22.04 (#789) 1cf0559a * Normalize all strings with black fbf0083d * Check port in overrides/notes like in gvmd 905e85ab * severity values of '0' have not been passed to gvmd cd4e0b44 gvm/compare/22.6.1.dev1...22.6.1 * Don't mention ALLINFO in the get_info_list method dc288185 * Deprecate ifaces and icafes allow_parameters in user commands * Rename GMP 21.10 to GMP 22.04 [#691] f5ef7672 * Unwrap SSL socket before closing transport socket. (#737) * Ensure that connection is closed when using context manager * Added support for PEP-561 c354da8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=10
2023-03-06 12:18:48 +00:00
BuildRequires: %{python_module lxml >= 4.5.0}
BuildRequires: %{python_module paramiko >= 2.7.1}
BuildRequires: %{python_module pytest}
# /SECTION
%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
%autosetup -p1 -n python_gvm-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
# Remove tests from sitelib
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%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}
%doc README.md
%license LICENSE
%{python_sitelib}/gvm
%{python_sitelib}/python_gvm*
%changelog