Sync from SUSE:SLFO:Main python-apache-libcloud revision fd329ab74c68a1d57ce941e98db9fc75
This commit is contained in:
commit
6356c74179
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
apache-libcloud-3.8.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
apache-libcloud-3.8.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
19
apache-libcloud-3.8.0.tar.gz.asc
Normal file
19
apache-libcloud-3.8.0.tar.gz.asc
Normal file
@ -0,0 +1,19 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKlBAABCgCPFiEEmXgo3GL3Wc6hidZeLAdUss4GkvMFAmTP0UZfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk5
|
||||
NzgyOERDNjJGNzU5Q0VBMTg5RDY1RTJDMDc1NEIyQ0UwNjkyRjMRHHRvbWF6QGFw
|
||||
YWNoZS5vcmcACgkQLAdUss4GkvOzOg//WBt4g+CvH3qfi2ChvLHSuzjNxszgTnvB
|
||||
bVkDsvqJNQlZPEQ+a5l/ZLgRYr7L2trOvqqzVBjEmCq8I0u3GYlOwiBRfmEKLKXO
|
||||
jRlrMME9swRJJ9KS1slaT9vAuZ5RB8wyzAsJfT45QFXLGpgSW3pGQ9KpX0ZBvvCc
|
||||
FvWZqBR3wCtc7mcq4e6kj/6pR93WszeTmkZC57JFiAQclhxd0/wPecDKOSZT0ro3
|
||||
vXvN6Bm5m0NOIx8zAQpyPprT3EIHXp3FiBTPzqwZQVtcPsx5upjswMknEBlj2L9G
|
||||
JhOh3Emq29byWKtM/++dF1QCICieCmDcW/4Bk1kyslXyloC2SeiBhr1u4gdL6tlO
|
||||
L5Z1zcLjl8McCWVBbTjNbn9H92t3TPozgSVx2+e4Zsb0T5XirQL2iwCfoZAscjrX
|
||||
DrvbY9bzSvrjz1EDoxqp3/oN8nUeHMVd7eQfx4aOnr1cAWROlRNSHx2p1De8Gamx
|
||||
7nbyaFsdJSwIeTn6CtJ6vpWzqtwWdBYlJrOkhv33ElPD+KhHUsv92utE809weCfY
|
||||
PdFruz8Hu2FvIOiqJQD7sMSfo+FWz22kKzz/Sv0TqL4qIjfoMyFYQ/i0Y5vUdWcM
|
||||
CzGXc154x/njmZYApK5EYS9F1b94LOIrHfZgQHVIXmeojQnwEGevvjLPbleOnC9N
|
||||
v4k0idgyEns=
|
||||
=RMm3
|
||||
-----END PGP SIGNATURE-----
|
24
ec2_create_node.patch
Normal file
24
ec2_create_node.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: apache-libcloud-3.5.1/libcloud/compute/drivers/ec2.py
|
||||
===================================================================
|
||||
--- apache-libcloud-3.5.1.orig/libcloud/compute/drivers/ec2.py
|
||||
+++ apache-libcloud-3.5.1/libcloud/compute/drivers/ec2.py
|
||||
@@ -1622,12 +1622,18 @@ class BaseEC2NodeDriver(NodeDriver):
|
||||
on-demand price will be used.
|
||||
:type ex_spot_max_price: ``float``
|
||||
"""
|
||||
+
|
||||
+ try:
|
||||
+ instance_type = size.id
|
||||
+ except AttributeError:
|
||||
+ instance_type = size
|
||||
+
|
||||
params = {
|
||||
"Action": "RunInstances",
|
||||
"ImageId": image.id,
|
||||
"MinCount": str(ex_mincount),
|
||||
"MaxCount": str(ex_maxcount),
|
||||
- "InstanceType": size.id,
|
||||
+ "InstanceType": instance_type,
|
||||
}
|
||||
|
||||
if ex_terminate_on_shutdown:
|
39
gce_image_projects.patch
Normal file
39
gce_image_projects.patch
Normal file
@ -0,0 +1,39 @@
|
||||
Index: apache-libcloud-3.5.1/libcloud/compute/drivers/gce.py
|
||||
===================================================================
|
||||
--- apache-libcloud-3.5.1.orig/libcloud/compute/drivers/gce.py
|
||||
+++ apache-libcloud-3.5.1/libcloud/compute/drivers/gce.py
|
||||
@@ -1981,12 +1981,19 @@ class GCENodeDriver(NodeDriver):
|
||||
"debian-cloud": ["debian-8", "debian-9", "debian-10"],
|
||||
"opensuse-cloud": ["opensuse-leap"],
|
||||
"rhel-cloud": ["rhel-6", "rhel-7", "rhel-8"],
|
||||
- "suse-cloud": ["sles-11", "sles-12", "sles-15"],
|
||||
+ "suse-cloud": ["sles-12", "sles-15"],
|
||||
"suse-byos-cloud": [
|
||||
"sles-11-byos",
|
||||
"sles-12-byos",
|
||||
+ "sles-15-byos",
|
||||
+ "sles-12-sp1-sap-byos",
|
||||
"sles-12-sp2-sap-byos",
|
||||
"sles-12-sp3-sap-byos",
|
||||
+ "sles-12-sp4-sap-byos",
|
||||
+ "sles-12-sp5-sap-byos",
|
||||
+ "sles-15-sap-byos",
|
||||
+ "sles-15-sp1-sap-byos",
|
||||
+ "sles-15-sp1-chost-byos",
|
||||
"suse-manager-proxy-byos",
|
||||
"suse-manager-server-byos",
|
||||
],
|
||||
@@ -1994,7 +2001,13 @@ class GCENodeDriver(NodeDriver):
|
||||
"sles-12-sp2-sap",
|
||||
"sles-12-sp3-sap",
|
||||
"sles-12-sp4-sap",
|
||||
+ "sles-12-sp5-sap",
|
||||
"sles-15-sap",
|
||||
+ "sles-15-sp1-sap",
|
||||
+ ],
|
||||
+ "suse-sap-cal-cloud": [
|
||||
+ "sles-12-sp1-sapcal",
|
||||
+ "sles-12-sp3-sapcal",
|
||||
],
|
||||
"ubuntu-os-cloud": [
|
||||
"ubuntu-1404-lts",
|
1394
python-apache-libcloud.changes
Normal file
1394
python-apache-libcloud.changes
Normal file
File diff suppressed because it is too large
Load Diff
1912
python-apache-libcloud.keyring
Normal file
1912
python-apache-libcloud.keyring
Normal file
File diff suppressed because it is too large
Load Diff
117
python-apache-libcloud.spec
Normal file
117
python-apache-libcloud.spec
Normal file
@ -0,0 +1,117 @@
|
||||
#
|
||||
# spec file for package python-apache-libcloud
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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.8.0
|
||||
Release: 0
|
||||
Summary: Abstraction over multiple cloud provider APIs
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
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
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module fasteners}
|
||||
BuildRequires: %{python_module libvirt-python}
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests-mock}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-lxml
|
||||
Requires: python-requests
|
||||
Requires: python-typing
|
||||
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
|
||||
%setup -q -n apache-libcloud-%{version}
|
||||
%autopatch -p1
|
||||
sed -i '/^#!/d' demos/gce_demo.py
|
||||
chmod a-x demos/gce_demo.py
|
||||
# Setup tests
|
||||
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_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"
|
||||
|
||||
# Skip tests broken because requests-mock incompatibility with urllib3 >= 2.0.0
|
||||
# gh#jamielennox/requests-mock#228
|
||||
donttest+=" or test_openstack.py"
|
||||
donttest+=" or test_rackspace.py"
|
||||
donttest+=" or test_scaleway.py"
|
||||
donttest+=" or test_vcloud.py"
|
||||
donttest+=" or test_vultr_v2.py"
|
||||
donttest+=" or test_aurora.py"
|
||||
donttest+=" or test_azure_blobs.py"
|
||||
donttest+=" or test_cloudfiles.py"
|
||||
donttest+=" or test_google_storage.py"
|
||||
donttest+=" or test_oss.py"
|
||||
donttest+=" or test_ovh.py"
|
||||
donttest+=" or test_s3.py"
|
||||
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES.rst README.rst demos/ example_*.py
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user