python-pyvmomi: Upgrade to latest version (#2686)

This commit is contained in:
Olivia Crain 2022-04-08 10:55:42 -07:00 committed by GitHub
parent 774aa45832
commit 58dfe69744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 30 deletions

View File

@ -1,14 +0,0 @@
--- a/tests/test_connect.py 2020-03-18 18:39:57.286422617 -0700
+++ b/tests/test_connect.py 2020-03-18 18:42:06.909208607 -0700
@@ -92,9 +92,11 @@
@tests.VCRTestBase.my_vcr.use_cassette('ssl_tunnel.yaml',
cassette_library_dir=tests.fixtures_path,
record_mode='none')
+ @unittest.skip("Disable the test")
def test_ssl_tunnel(self):
connect.SoapStubAdapter('sdkTunnel', 8089, httpProxyHost='vcsa').GetConnection()
+ @unittest.skip("Disable the test")
def test_ssl_tunnel_http_failure(self):
import socket
def should_fail():

View File

@ -1,5 +1,5 @@
{
"Signatures": {
"python-pyvmomi-6.7.3.tar.gz": "f8fb1a230e914f913a1288a784267606e9f7672143e15584453e191918275f35"
"pyvmomi-7.0.3.tar.gz": "45e1f3a158e9a47d6e9e7fb7d4d2244637b1af9e1349829be7637d8351ced77a"
}
}

View File

@ -1,15 +1,20 @@
Summary: pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.
Name: python-pyvmomi
Version: 6.7.3
Release: 4%{?dist}
Version: 7.0.3
Release: 1%{?dist}
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/pyvmomi
#Source0: https://github.com/vmware/pyvmomi/archive/6.7.3.tar.gz
Source0: %{name}-%{version}.tar.gz
Patch0: python-pyvmomi-make-check-fix.patch
Source0: https://github.com/vmware/pyvmomi/archive/refs/tags/v7.0.3.tar.gz#/pyvmomi-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with_check}
BuildRequires: python3-pip
BuildRequires: python3-requests
BuildRequires: python3-six
%endif
BuildArch: noarch
%description
@ -17,15 +22,9 @@ pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage E
%package -n python3-pyvmomi
Summary: python-pyvmomi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xml
%if %{with_check}
BuildRequires: curl-devel
BuildRequires: openssl-devel
BuildRequires: python3-pip
%endif
Requires: python3
Requires: python3-requests
Requires: python3-six
%description -n python3-pyvmomi
pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.
@ -40,6 +39,7 @@ pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage E
%py3_install
%check
pip3 install -r test-requirements.txt
%python3 setup.py test
%files -n python3-pyvmomi
@ -48,6 +48,9 @@ pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage E
%{python3_sitelib}/*
%changelog
* Thu Apr 07 2022 Olivia Crain <oliviacrain@microsoft.com> - 7.0.3-1
- Upgrade to latest upstream version
* Tue Feb 08 2022 Muhammad Falak <mwani@microsoft.com> - 6.7.3-4
- Add an explicit BR on `pip` to fix ptest

View File

@ -23914,8 +23914,8 @@
"type": "other",
"other": {
"name": "python-pyvmomi",
"version": "6.7.3",
"downloadUrl": "https://github.com/vmware/pyvmomi/archive/6.7.3.tar.gz"
"version": "7.0.3",
"downloadUrl": "https://github.com/vmware/pyvmomi/archive/refs/tags/v7.0.3.tar.gz"
}
}
},