14
0

Accepting request 661970 from home:mnhauke

- Update to version 6.7.1.2018.12
  * Support JSON encoding for pyVmomi objects
  * Fix vcrpy hardening in test-requirements. Support versions < 2.0
  * Delete deprecated Docs folder
- Add patch:
  * python-pyvmomi-fix-incompatibility-with-vcrpy2.patch

OBS-URL: https://build.opensuse.org/request/show/661970
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyvmomi?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal
2019-01-01 15:17:50 +00:00
committed by Git OBS Bridge
parent f6811f62ca
commit 99e25d68e6
5 changed files with 91 additions and 6 deletions

View File

@@ -13,20 +13,21 @@
# 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/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyvmomi
Version: 6.7.1
Version: 6.7.1.2018.12
Release: 0
Summary: VMware vSphere Python SDK
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/vmware/pyvmomi
Source: https://github.com/vmware/pyvmomi/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: python-pyvmomi-fix-incompatibility-with-vcrpy2.patch
BuildRequires: %{python_module fixtures >= 1.3.0}
BuildRequires: %{python_module requests >= 2.3.0}
BuildRequires: %{python_module setuptools}
@@ -49,12 +50,13 @@ ESX, ESXi, and vCenter.
%prep
%setup -q -n pyvmomi-%{version}%{?version_suffix}
%patch0 -p1
# we don't want to install any of these
sed -i '/ data_files/,+1d' setup.py
# fix line breaks in text files
sed -i 's/\r//' *.txt
# do not hardcode vrcpy version
sed -i -e 's:==:>=:g' test-requirements.txt
#sed -i -e 's:==:>=:g' test-requirements.txt
%build
%python_build