17
0
Files
python-apache-libcloud/python-apache-libcloud.spec
Daniel Garcia fccec6ec6e - Update to 3.9.0
* Common
    - Support for Python 3.9 which is EOL has been removed.
    - Indicate we also support Python 3.12 (non beta) and Python 3.13.
    - Support for Python 3.8 which is EOL has been removed.
    - Support for Python 3.7 which is EOL has been removed.
    - Types inheriting from ``libcloud.common.types.Type`` have been made hashable.
    - [NTT CIS] Fix invalid comparison in the ``XmlListConfig.__init__()`` method.
    - Update versions of build and packaging tools required to build the package.
  * Compute
    - [OpenStack] Add optional node port ID to attach the floating IP
      in OpenStack ex_attach_floating_ip_to_node function.
    - [OpenStack] Add metadata fields ``os_distro`` and ``os_version``
      provided by OpenStack Image API (if set) to the ``extra`` field
      of the OpenStack NodeImage.
    - [LINODE] Add support for cloud-init metadata support to
      create_node() Add new functions ``create_key_pair``,
      ``list_key_pairs``, and ``get_image``
    - [Azure ARM] Add a new argument to destroy_node() to also delete
      node's managed OS disk as part of the node's deletion.
    - [ECS] Add VPC IP and Elastic IP to ECS node as private and public IP.
    - [Azure ARM] When deleting a node, delete VM OS disk if it's a managed disk.
    - [Azure ARM] Add ``ex_resize_node()`` method.
    - [Equinix Metal] Fix ``list_nodes()`` method so it correctly
      handles NodeSize.ram attribute in case TB is returned.
    - [Equinix Metal] Deprecate facility API and replace it with metros location.
    - [Equinix Metal] Remove all the methods for managing volumes and
      volume snapshots. This functionality hasn't been supported on
      the server side for many years already.
    - [Amazon EC2] Update pricing and sizing data.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=139
2026-02-18 06:57:12 +00:00

105 lines
4.0 KiB
RPMSpec

#
# spec file for package python-apache-libcloud
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-apache-libcloud
Version: 3.9.0
Release: 0
Summary: Abstraction over multiple cloud provider APIs
License: Apache-2.0
URL: https://libcloud.apache.org
Source0: https://downloads.apache.org/libcloud/apache-libcloud-%{version}.tar.gz
Source1: https://downloads.apache.org/libcloud/apache-libcloud-%{version}.tar.gz.asc
# https://libcloud.apache.org/downloads.html#package-verification-guide
Source2: https://www.apache.org/dist/libcloud/KEYS#/%{name}.keyring
Patch1: gce_image_projects.patch
Patch2: ec2_create_node.patch
# PATCH-FIX-UPSTREAM gh#apache/libcloud#2121
Patch3: fix-tests-python313.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module fasteners}
BuildRequires: %{python_module libvirt-python}
BuildRequires: %{python_module paramiko}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-requests
Suggests: python-libvirt-python
Suggests: python-fastners
Suggests: python-paramiko
Suggests: python-pysphere
BuildArch: noarch
%python_subpackages
%description
Apache Libcloud is a standard Python library that abstracts away
differences among multiple cloud provider APIs.
%prep
%autosetup -p1 -n apache_libcloud-%{version}
# # Setup tests
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
%build
%pyproject_wheel
%install
%pyproject_install
find %{buildroot} -name '*.DS_Store' -delete
find %{buildroot} -name '*.json' -size 0 -delete
find %{buildroot} -name '*.pem' -size 0 -delete
%python_expand rm -r %{buildroot}%{$python_sitelib}/libcloud/test
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Skip OvhTests::test_list_nodes_invalid_region which tries to reach OVH servers
donttest="test_consume_stderr_chunk_contains_part_of_multi_byte_utf8_character"
donttest+=" or test_consume_stdout_chunk_contains_part_of_multi_byte_utf8_character"
donttest+=" or test_consume_stdout_chunk_contains_non_utf8_character"
donttest+=" or test_consume_stderr_chunk_contains_non_utf8_character"
# Skip test_key_file_non_pem_format_error since OpenSSH support is backported for SLE python-paramiko < 2.7.0
donttest+=" or test_key_file_non_pem_format_error"
# Skip ShellOutSSHClientTests tests which attempt to ssh to localhost
donttest+=" or ShellOutSSHClientTests"
# Note these four extra py3 failures are undesirable and should be fixed: fail in s390 and ppc64
donttest+=" or ElasticContainerDriverTestCase"
donttest+=" or test_list_nodes_invalid_region"
donttest+=" or test_connection_timeout_raised"
donttest+=" or test_retry_on_all_default_retry_exception_classes"
# Works upstream, requires other changes made, drop after upgrade
# from 3.8.0
donttest+=" or test_init_once_and_debug_mode"
%pytest -k "not ($donttest)"
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst example_*.py
%{python_sitelib}/libcloud
%{python_sitelib}/apache_libcloud-%{version}.dist-info
%changelog