forked from pool/python-pyvmomi
Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
0b74e94b27 | |||
f83606e3e0 | |||
ddee8230b5 | |||
dc5ddb3bda | |||
9d3b3b36c1 | |||
e570690123 | |||
c42c6c7253 | |||
eaaddbaf0f |
@@ -1,3 +1,222 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 18 11:12:07 UTC 2025 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Update to version 9.0.0.0
|
||||||
|
Bindings
|
||||||
|
* Updated bindings with support for the new vSphere 9.0 APIs.
|
||||||
|
Added
|
||||||
|
* SoapStubAdapter and the connect.py wrappers now allows passing
|
||||||
|
a serverPemCert parameter (9a8956f).
|
||||||
|
* Added TOML config
|
||||||
|
Changes
|
||||||
|
* Dependency on pyOpenSSL is limited to '<24.3.0' because of
|
||||||
|
breaking changes.
|
||||||
|
* Dependency on "six" is removed
|
||||||
|
Breaking changes
|
||||||
|
* SoapAdapter.HTTPProxyConnection is removed (9a8956f).
|
||||||
|
* SoapAdapter.SSLTunnelConnection is replaced by
|
||||||
|
SoapAdapter._SSLTunnelConnection which inherits Python's
|
||||||
|
standard HTTPSConnection (9a8956f).
|
||||||
|
* SoapAdapter.UnixSocketConnection is replaced by
|
||||||
|
SoapAdapter._UnixSocketConnection which inherits
|
||||||
|
Python's standard HTTPConnection (9a8956f)
|
||||||
|
* 'publicVersions' and 'dottedVersions' aliases are removed.
|
||||||
|
Replaced by the 'ltsVersions' alias.
|
||||||
|
* pyVmomi.VmomiSupport.VmomiJSONEncoder is replaced by
|
||||||
|
pyVmomi.VmomiJSONEncoder.VmomiJSONEncoder.
|
||||||
|
* pyVmomi.VmomiSupport.templateOf() is replaced by
|
||||||
|
pyVmomi.VmomiJSONEncoder.templateOf().
|
||||||
|
* pyVmomi.ThumbprintMismatchException is replaced by
|
||||||
|
pyVmomi.Security.ThumbprintMismatchException.
|
||||||
|
* pyVmomi.SoapAdapter.ThumbprintMismatchException is replaced by
|
||||||
|
pyVmomi.Security.ThumbprintMismatchException.
|
||||||
|
* Settings: 'legacyThumbprintException' is removed.
|
||||||
|
* Settings: 'binaryIsBytearray' is removed.
|
||||||
|
* Settings: 'allowGetSet' is removed. The behavior is set to
|
||||||
|
match allowGetSet = True.
|
||||||
|
* Settings: 'allowCapitalizedNames' is removed. The behavior is
|
||||||
|
set to match allowCapitalizedNames = False.
|
||||||
|
* pyVmomiSettings.py is deleted.
|
||||||
|
* pyVmomi feature toggling is removed. Feature.py is deleted.
|
||||||
|
* setup.py, setup.cfg, requirements.txt, test-requirements.txt
|
||||||
|
and tox.ini are deleted. Replaced by pyproject.toml.
|
||||||
|
* 'b64token' and 'mechanism' parameters are disabled for
|
||||||
|
pyVim.Connect() and pyVim.SmartConnect(). Replaced by
|
||||||
|
'token' and 'tokenType'.
|
||||||
|
- Drop not longer needed patch
|
||||||
|
* 0001-pyVmomi-pinned-certificates-support.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:49:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 31 10:17:11 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove not needed BuildRequires tox
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 16 17:40:51 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Update to version 8.0.3.0.1
|
||||||
|
Bindings
|
||||||
|
* Added support for vSAN Health APIs
|
||||||
|
* Updated bindings with support for the new vSphere 8.0U3 APIs.
|
||||||
|
* New features of vSphere 8.0U3 based on REST APIs are available
|
||||||
|
via the vSphere Automation SDK for Python
|
||||||
|
Type Hints
|
||||||
|
* Added type stubs for vSAN APIs.
|
||||||
|
* All type stubs are refactored.
|
||||||
|
Added
|
||||||
|
* Python 3.12 compatibility
|
||||||
|
* Stub adapters allow the usage of an existing session.
|
||||||
|
* Added pyVmomi version in the user-agent request header
|
||||||
|
* Added certFile and certKeyFile attributes to SoapStubAdapter.
|
||||||
|
* Added project wide variables to hold the current pyVmomi version,
|
||||||
|
version_info and version_info_str
|
||||||
|
* Added functions to VmomiSupport to list all types
|
||||||
|
ListManagedTypes(), ListDataTypes(), ListEnumTypes().
|
||||||
|
Changes
|
||||||
|
* Doc: Non-remote ManagedObject and DataObject methods are
|
||||||
|
documented.
|
||||||
|
* The support statement now reflects the Broadcom support policy.
|
||||||
|
* Copyright switch from VMware to Broadcom.
|
||||||
|
Breaking changes
|
||||||
|
* sso.SsoAuthenticator.get_bearer_saml_assertion_gss_api() is
|
||||||
|
removed.
|
||||||
|
* SSLTunnelConnection is trimmed down to handle only tunnel
|
||||||
|
connections. The code that handles remote proxy doubles the
|
||||||
|
HTTPProxyConnection logic and therefore is removed.
|
||||||
|
Deprecated
|
||||||
|
* 'publicVersions' and 'dottedVersions' aliases are deprecated.
|
||||||
|
* pyVmomiSettings.py and related settings are deprecated
|
||||||
|
allowGetSet, allowCapitalizedNames, binaryIsBytearray,
|
||||||
|
legacyThumbprintException.
|
||||||
|
* Features.py and all pyVmomi feature states logic is deprecated
|
||||||
|
* pyVmomi.VmomiSupport.VmomiJSONEncoder is deprecated.
|
||||||
|
Use pyVmomi.VmomiJSONEncoder.VmomiJSONEncoder
|
||||||
|
* pyVmomi.VmomiSupport.templateOf() is deprecated.
|
||||||
|
Use pyVmomi.VmomiJSONEncoder.templateOf()
|
||||||
|
* pyVmomi.SoapAdapter.ThumbprintMismatchException is deprecated.
|
||||||
|
Use pyVmomi.Security.ThumbprintMismatchException
|
||||||
|
- Update to version 8.0.2.0.1
|
||||||
|
Maintenance Patch 1 for 8.0U2 - 2023-11-17
|
||||||
|
Changes
|
||||||
|
* Fixed: #978 and #1053 - Fix SmartConnect()'s handling of IPv6
|
||||||
|
address with square brackets
|
||||||
|
* Added PyPI classifiers for Python 3.10 and Python 3.11.
|
||||||
|
Support for both versions is verified.
|
||||||
|
- Update to version 8.0.2.0
|
||||||
|
Bindings
|
||||||
|
* Updated bindings and type hints with support for vSphere 8.0U2.
|
||||||
|
Includes updates to VIM, PBM, EAM, SMS and VSLM namespaces.
|
||||||
|
* New features of vSphere 8.0U2 based on REST APIs are available
|
||||||
|
via the vSphere Automation SDK for Python
|
||||||
|
https://github.com/vmware/vsphere-automation-sdk-python
|
||||||
|
- Update to version 8.0.1.0.2
|
||||||
|
Bindings
|
||||||
|
* Added bindings and type hints for Virtual Storage Lifecycle
|
||||||
|
Management for vSphere 8.0U1 - VSLM namespace.
|
||||||
|
Changes
|
||||||
|
* Fixed: #1021 - Switch to static imports for type info modules.
|
||||||
|
* Fixed: #1022 - Support proxy authentication.
|
||||||
|
* Add custom HTTP headers support to connect.SmartStubAdapter().
|
||||||
|
* Missing filters are no longer treated as task failures.
|
||||||
|
* Various small fixes for docstrings and linter checks.
|
||||||
|
Type Hints Fixes
|
||||||
|
* Fixed: #1026 - Use the "from Y import X as X" format to
|
||||||
|
re-export submodules.
|
||||||
|
* Fixed: #1030 - Use a fully qualified name when the type is from
|
||||||
|
another namespace/package
|
||||||
|
Tests
|
||||||
|
* vcrpy dependency is updated to the latest version with Python 2
|
||||||
|
support.
|
||||||
|
* testtools dependency is removed.
|
||||||
|
* Travis CI is no longer used.
|
||||||
|
* Various test updates and fixes. All tests are enabled.
|
||||||
|
- Update to version 8.0.1.0.1
|
||||||
|
Type Hints Fixes
|
||||||
|
* Added missing VMODL1 classes to the type hints
|
||||||
|
* Enum values now match the letter case of the values from
|
||||||
|
typeinfo files.
|
||||||
|
* Fixed: #1115 - Syntax error in vim/__init__pyi.
|
||||||
|
* Fixed: #1117 - Type stubs: Writable properties are marked as
|
||||||
|
read-only.
|
||||||
|
* Fixed: #1118 - Type stubs: Missing vim.fault.* and
|
||||||
|
vmodl.fault.* types
|
||||||
|
* Fixed: #1119 - Type stubs: Enum fields should also accept
|
||||||
|
Literal[] str type.
|
||||||
|
* Fixed: #1120 - Type stubs: Exception types must inherit from
|
||||||
|
(Base)Exception.
|
||||||
|
- Update to version 8.0.1.0
|
||||||
|
Bindings
|
||||||
|
* Updated bindings with support for vSphere 8.0U1. Includes
|
||||||
|
updates to VIM, PBM, EAM and SMS namespaces.
|
||||||
|
* New features of vSphere 8.0U1 based on REST APIs are available
|
||||||
|
via the vSphere Automation SDK for Python.
|
||||||
|
Changes
|
||||||
|
* Added support for type hints.
|
||||||
|
* #892 - Allow passing ssl_context when login in with a token.
|
||||||
|
* Fixed: #750 - Bumped vcrpy tests dependency to 2.1.
|
||||||
|
* Fixed: #812 - Fix exception leaks.
|
||||||
|
* Fixed: #1004 - Fix SmartConnect()'s SOAP and OAuth token login.
|
||||||
|
- Update to version 8.0.0.1.1
|
||||||
|
Changes
|
||||||
|
* Fixed: #993 - WaitForTask broken on version >8.0.0.
|
||||||
|
* Fixed: #994 - Pyvomi module failing in connect method.
|
||||||
|
* Replace publicVersions with ltsVersions.
|
||||||
|
* Updated VIM namespace for the next vSphere 8.0 patch release.
|
||||||
|
- Update to version 8.0.0.1
|
||||||
|
Bindings
|
||||||
|
* Updated bindings with support for vSphere 8.0. Includes updates
|
||||||
|
* New features of vSphere 8.0 based on REST APIs are available
|
||||||
|
via the vSphere Automation SDK for Python.
|
||||||
|
Breaking changes
|
||||||
|
* Minimum Python 2 requirement is 2.7.9.
|
||||||
|
* DynamicTypeManagerHelper.py is removed.
|
||||||
|
* ManagedMethodExecutorHelper.py is removed.
|
||||||
|
* connect.ConnectNoSSL() and connect.SmartConnectNoSSL() are
|
||||||
|
removed. Use connect.Connect(disableSslCertValidation=True)
|
||||||
|
and connect.SmartConnect(disableSslCertValidation=True)
|
||||||
|
* VmomiSupport.UncallableManagedMethod is renamed to
|
||||||
|
VmomiSupport.UnknownManagedMethod.
|
||||||
|
New modules
|
||||||
|
* Security.py A new module is added to handle thumbprint
|
||||||
|
verification. There is a predefined set of available crypto
|
||||||
|
functions to verify the certificate thumbprints. Its possible
|
||||||
|
to configure during runtime which of the available crypto
|
||||||
|
functions are allowed.
|
||||||
|
* Feature.py A new module related to pyVmomi development within
|
||||||
|
VMware.
|
||||||
|
* VmomiJSONEncoder.py The VmomiJSONEncoder is moved into a
|
||||||
|
dedicated module.
|
||||||
|
More changes
|
||||||
|
* A new 'binaryIsBytearray' setting is added to select the base
|
||||||
|
type for the binary type. By default, the binary type is 'str'
|
||||||
|
for Python 2 and 'bytes' for Python 3. If binaryIsBytearray is
|
||||||
|
True, the binary type for Python 2 is set to 'bytearray'.
|
||||||
|
Required for VmomiJSONEncoder to work properly.
|
||||||
|
* The license note is removed from the Python files. LICENSE.txt
|
||||||
|
holds the Apache 2 license note.
|
||||||
|
* pyVmomi now uses relative imports
|
||||||
|
* Dependency on "requests" is removed
|
||||||
|
* Added support for SAML token authentication
|
||||||
|
* Added timeout for HTTP requests
|
||||||
|
* Added option to set the maximum amount of time a task is
|
||||||
|
allowed to run. On timeout, an exception is generated if
|
||||||
|
raiseOnError is True.
|
||||||
|
* Add option to get all updates for the task.
|
||||||
|
* Add option to use a logger instead of the standard output.
|
||||||
|
* Various bug fixes
|
||||||
|
* Code style improvements
|
||||||
|
Deprecated
|
||||||
|
* connect.OpenUrlWithBasicAuth()
|
||||||
|
* connect.OpenPathWithStub()
|
||||||
|
- Add patch
|
||||||
|
* 0001-pyVmomi-pinned-certificates-support.patch
|
||||||
|
- Reenable python3.12 builds
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 8 05:55:35 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
Mon Apr 8 05:55:35 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyvmomi
|
# spec file for package python-pyvmomi
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,33 +17,30 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python312 1
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyvmomi
|
Name: python-pyvmomi
|
||||||
Version: 7.0.3
|
Version: 9.0.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: VMware vSphere Python SDK
|
Summary: VMware vSphere Python SDK
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/vmware/pyvmomi
|
URL: https://github.com/vmware/pyvmomi
|
||||||
Source: https://github.com/vmware/pyvmomi/archive/v%{version}.tar.gz#/pyvmomi-%{version}.tar.gz
|
Source: https://github.com/vmware/pyvmomi/archive/v%{version}.tar.gz#/pyvmomi-%{version}.tar.gz
|
||||||
|
#Patch0: 0001-pyVmomi-pinned-certificates-support.patch
|
||||||
BuildRequires: %{python_module fixtures >= 1.3.0}
|
BuildRequires: %{python_module fixtures >= 1.3.0}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module requests >= 2.3.0}
|
BuildRequires: %{python_module requests >= 2.3.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six >= 1.7.3}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module testtools >= 0.9.34}
|
BuildRequires: %{python_module testtools >= 0.9.34}
|
||||||
BuildRequires: %{python_module tox}
|
|
||||||
BuildRequires: %{python_module vcrpy}
|
BuildRequires: %{python_module vcrpy}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-requests >= 2.3.0
|
Requires: python-requests >= 2.3.0
|
||||||
Requires: python-six >= 1.7.3
|
|
||||||
Recommends: python-lxml
|
Recommends: python-lxml
|
||||||
Recommends: python-pyOpenSSL
|
Recommends: python-pyOpenSSL < 24.3.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -52,21 +49,20 @@ pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage
|
|||||||
ESX, ESXi, and vCenter.
|
ESX, ESXi, and vCenter.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyvmomi-%{version}%{?version_suffix}
|
%autosetup -p1 -n pyvmomi-%{version}%{?version_suffix}
|
||||||
dos2unix README.rst LICENSE.txt NOTICE.txt
|
dos2unix README.rst LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
# https://github.com/vmware/pyvmomi/pull/750
|
|
||||||
# Unpin vcrpy; the fix was released
|
|
||||||
sed -i 's/vcrpy<2/vcrpy/' test-requirements.txt
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
rm tests/test_json.py
|
||||||
|
rm tests/test_connect.py
|
||||||
|
rm tests/test_pbm_check_compatibility.py
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
@@ -74,6 +70,9 @@ sed -i 's/vcrpy<2/vcrpy/' test-requirements.txt
|
|||||||
%doc NOTICE.txt README.rst
|
%doc NOTICE.txt README.rst
|
||||||
%{python_sitelib}/pyVim
|
%{python_sitelib}/pyVim
|
||||||
%{python_sitelib}/pyVmomi
|
%{python_sitelib}/pyVmomi
|
||||||
%{python_sitelib}/pyvmomi-%{version}*-py*.egg-info
|
%{python_sitelib}/vsanapiutils.py
|
||||||
|
%{python_sitelib}/vsanmgmtObjects.py
|
||||||
|
%{python_sitelib}/pyvmomi-%{version}.dist-info
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:45e1f3a158e9a47d6e9e7fb7d4d2244637b1af9e1349829be7637d8351ced77a
|
|
||||||
size 595354
|
|
3
pyvmomi-9.0.0.0.tar.gz
Normal file
3
pyvmomi-9.0.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eeed490ca13b7bdc055d6c514d3a905aba6a10cf2749a8fb514790e7d515d3ee
|
||||||
|
size 1142550
|
Reference in New Issue
Block a user