Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pywbemtools for openSUSE:Factory checked in at 2023-03-25 18:55:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pywbemtools (Old) and /work/SRC/openSUSE:Factory/.python-pywbemtools.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pywbemtools" Sat Mar 25 18:55:38 2023 rev:4 rq:1074213 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pywbemtools/python-pywbemtools.changes 2022-06-30 13:18:18.049530616 +0200 +++ /work/SRC/openSUSE:Factory/.python-pywbemtools.new.31432/python-pywbemtools.changes 2023-03-25 18:55:52.470826437 +0100 @@ -1,0 +2,95 @@ +Wed Mar 22 09:31:10 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 1.1.1 + * Dropped support for Python 3.4. (issue #1129) + * Removed deprecated commands (server namespaces and server + interop. These commands are part of the namespace group + namespace list and namespace interop.) + ## Bug fixes: + * Resolved new issues reported by Pylint 2.13. (issue #1164) + * Fix issue where the instance shrub âfullpath option was not + displaying the paths. (see issue #1180) + * Fixed new formatting issues raised by flake8 5.0. + * Fixed issue where the instance shrub command duplicated the + results instances tree in cases where there was an + inter-namespace association and displayed the complete + ClassName of the association class rather than just the class + name. (see issue #1191) + * Fix issue where we were not setting the flag to use the general + option âmax-pull-option when the was defined with an + interactive command. This meant that the option was ignored for + the current command. (see issue # 1193). + * Fixed a flake8 AttributeError when using importlib-metadata + 5.0.0 on Python>=3.7, by pinning importlib-metadata to <5.0.0 + on these Python versions. + ## Enhancements: + * Increased minimum version of Click to 8.0.1 on Python >= 3.6 to + prepare for new features. Adjusted testcases accordingly. + * Extended class/instance enumerate/get/associators/references + and qualifier enumerate to allow getting the objects from + multiple namespaces with a single request. This extends the + command option ânamespace to allow multiple namespaces for + these commands using either comma-separated format (ex. + ânamespace root/cimv2,root/cimv3) or multiple definitions of + the option (ex. ânamespace root/cimv2 ânamespace root/cimv3) + The display of results have been extended to include the + namespace name for the objects in all of the output formats if + multiple namespaces are used. As before, the namespaces are not + shown if only a single or the default namespace is + requested.(see issues #1058 and #1059) + * Add a new option (âobject-order) to class and instance + enumerate/get/associators/references and qualifier + enumerate/get to reorder the command results displays by the + object name rather than the default of namespace name. This + allows the user to more easily compare the objects themselves + in different namespaces. (see issues #1058 and #1059) + * Extended documentation to better document the use and + characteristics of the general options and the creation of the + mock WBEM server script (see issue #1190) + ## Cleanup: + * Extend use of general options in interactive mode to allow + setting the connections-file for an interactive command. (see + issue #1037) + * Change DOCKER TEST_SERVER_IMAGE defined in Makefile to use one + created from OpenPegasus toolset. See github + OpenPegasus/OpenPegasusDocker repository for pegasus, pegasus + tools, and pegasus docker build tools. This image should be + faster and is smaller (lt 400 mb) although still too large. + This docker file was created using the Docker definition and + makefiles in the github project OpenPegasus and repository + OpenPegasusDocker. It contains a build of OpenPegasus on Ubuntu + 20.04 platform with the OpenPegasus test provider environment + installed. The docker server image build was tested against the + OpenPegasus testsuite. However, the interop namespace was + modified to use root/interop in the container. The image + contains the OpenPegasus components to run the server against a + repository based on the DMTF schema version 2.41.0. + * Remove deprecated commands server namespaces and server + interop. + * Fixed tests that fail because XML output of classes and + qualifier declarations return attributes not ordered before + python version 3.8. (see issue #1173). + * Modify tests/unit/pywbemcli/wbemserver_mock_class.py to remove + the CIMInstanceName host lement used in creating a + ProfileImplements instance. That element of CIMInstanceName is + not allowed on Create instance of association classes and as of + pywbem 1.5.0 that limitation is enforces. (see issue #1203) + * Modify instance shrub command to only display the classname of + the association class (i.e. reference_class). Even with multi + namespace environments the reference class must be in the + target namespace. + * Extend the pywbemtools documentation to further explain the + mock server support, and how to create mock environments using + MOF and python scripts including many more references back to + the pywbem documentation. + * Clarify the usage of the general options in the documentation. + (see issue #1162) + * Clean up issues in the docs where items in bullet lists do not + show the bullets Changes rtd-requirements to avoid suspect + versions. (see issue #1218) + * Update to requirements files for new Nov 2022 security issues + with wheel, safety, and py. (see PR # 1627) +- Drop pywbemtools-pr1154-click8.patch +- Add pywbemtools-pr1251-py311.patch gh#pywbem/pywbemtools#1251 + +------------------------------------------------------------------- Old: ---- pywbemtools-1.0.0-gh.tar.gz pywbemtools-pr1154-click8.patch New: ---- pywbemtools-1.1.1-gh.tar.gz pywbemtools-pr1251-py311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pywbemtools.spec ++++++ --- /var/tmp/diff_new_pack.pI9nyc/_old 2023-03-25 18:55:53.238830452 +0100 +++ /var/tmp/diff_new_pack.pI9nyc/_new 2023-03-25 18:55:53.242830473 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pywbemtools # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-pywbemtools -Version: 1.0.0 +Version: 1.1.1 Release: 0 Summary: Python client tools to work with WBEM Servers using the PyWBEM API License: Apache-2.0 @@ -35,24 +35,25 @@ URL: https://github.com/pywbem/pywbemtools # The PyPI archive does not contain the tests Source: https://github.com/pywbem/pywbemtools/archive/%{version}.tar.gz#/pywbemtools-%{version}-gh.tar.gz -# PATCH-FIX-UPSTREAM pywbemtools-pr1154-click8.patch -- gh#pywbem/pywbemtools#1154 -Patch1: pywbemtools-pr1154-click8.patch +# PATCH-FIX-UPSTREAM pywembtools-pr1251-py311.patch gh#pywbem/pywbemtools#1251 +Patch0: pywbemtools-pr1251-py311.patch BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-PyYAML >= 5.1 Requires: python-asciitree >= 0.3.3 %if 0%{?python_version_nodots} <= 35 Requires: python-click < 8 Requires: python-click >= 7.1.1 Requires: python-click-repl >= 0.1.6 +Requires: python-packaging >= 17.0 %else -Requires: python-click >= 8.0.1 +Requires: python-PyYAML >= 5.3.1 +Requires: python-click >= 8.0.2 Requires: python-click-repl >= 0.2 +Requires: python-packaging >= 21.0 %endif Requires: python-click-spinner >= 0.1.8 Requires: python-nocasedict >= 1.0.1 Requires: python-nocaselist >= 1.0.3 -Requires: python-packaging >= 17.0 Requires: python-prompt_toolkit Requires: python-pyparsing >= 2.3.1 Requires: python-pywbem >= 1.4.0 ++++++ pywbemtools-1.0.0-gh.tar.gz -> pywbemtools-1.1.1-gh.tar.gz ++++++ ++++ 18022 lines of diff (skipped) ++++++ pywbemtools-pr1251-py311.patch ++++++ >From ef26d015057bc658e193a326fd0fb1cc1c6bece8 Mon Sep 17 00:00:00 2001 From: Andreas Maier <andreas.r.ma...@gmx.de> Date: Thu, 22 Dec 2022 18:31:34 +0100 Subject: [PATCH 1/2] Support for Python 3.11 Details: * Added Python 3.11 in GitHub Actions tests. Added 3.10/uuntu/latest to the normal tests, as a comparison point. * Showing Python 3.11 in package metadata. * Commented out pyzmq in minimum-constraints.txt, since it is used only by jupyter which is not installed in pywbemtools. * Increased minimum version of wrapt to 0.14.0 for Python >=3.11, and due to dependencies also the minimum version of astroid to 2.11.5 and of pylint to 2.14.0. After that, a further increase of pylint to 2.15.0 and androidn to 2.12.4 was needed to circumvent pylint issue 7972. Plus a subsequent increase of colorama from 0.4.0 to 0.4.5, which was done for all Python versions for simplicity. * Increased minimum version of dill to 0.3.6 for Python >=3.11, to pick up the fix for dill issue 514. * By Karl: Fix test issue causing failure with python 3.11 when PYWBEMCLI_STARTUP_ENVVAR used The test for the python script defined when PYWBEMCLI_STARTUP_ENVVAR is used fails because the python compile messages changed slightly. Generalized the results testing in test_generalopeions.py and modified the display text. * Increased docutils to address Sphinx build issue Signed-off-by: Andreas Maier <andreas.r.ma...@gmx.de> and Karl --- .github/workflows/test.yml | 13 ++++--- dev-requirements.txt | 36 +++++++++++++++----- docs/changes.rst | 2 ++ minimum-constraints.txt | 30 ++++++++++------ pywbemtools/pywbemcli/pywbemcli.py | 19 ++++++----- setup.py | 1 + tests/unit/pywbemcli/test_general_options.py | 6 ++-- 7 files changed, 72 insertions(+), 35 deletions(-) Index: pywbemtools-1.1.1/.github/workflows/test.yml =================================================================== --- pywbemtools-1.1.1.orig/.github/workflows/test.yml +++ pywbemtools-1.1.1/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: if [[ "${{ github.event_name }}" == "schedule" || "${{ github.head_ref }}" =~ ^release_ ]]; then \ echo "::set-output name=matrix::{ \ \"os\": [ \"ubuntu-latest\", \"macos-latest\", \"windows-latest\" ], \ - \"python-version\": [ \"2.7\", \"3.5\", \"3.6\", \"3.7\", \"3.8\", \"3.9\", \"3.10\" ], \ + \"python-version\": [ \"2.7\", \"3.5\", \"3.6\", \"3.7\", \"3.8\", \"3.9\", \"3.10\", \"3.11\" ], \ \"package_level\": [ \"minimum\", \"latest\" ], \ }"; \ else \ @@ -58,13 +58,18 @@ jobs: \"package_level\": \"minimum\" \ }, \ { \ + \"os\": \"ubuntu-latest\", \ + \"python-version\": \"3.10\", \ + \"package_level\": \"latest\" \ + }, \ + { \ \"os\": \"macos-latest\", \ \"python-version\": \"3.5\", \ \"package_level\": \"latest\" \ }, \ { \ \"os\": \"macos-latest\", \ - \"python-version\": \"3.10\", \ + \"python-version\": \"3.11\", \ \"package_level\": \"latest\" \ }, \ { \ @@ -79,7 +84,7 @@ jobs: }, \ { \ \"os\": \"windows-latest\", \ - \"python-version\": \"3.10\", \ + \"python-version\": \"3.11\", \ \"package_level\": \"latest\" \ } \ ] \ Index: pywbemtools-1.1.1/dev-requirements.txt =================================================================== --- pywbemtools-1.1.1.orig/dev-requirements.txt +++ pywbemtools-1.1.1/dev-requirements.txt @@ -20,8 +20,9 @@ pytest>=4.3.1; python_version >= '3.5' # funcsigs>=1.0.2; python_version == '2.7' # Pluggy 0.12.0 has a bug causing pytest plugins to fail loading on py38 pluggy>=0.13.0 +# pylint>=2.15 requires colorama>=0.4.5 colorama>=0.3.9,<0.4.0; python_version == '2.7' -colorama>=0.4.0; python_version >= '3.5' +colorama>=0.4.5; python_version >= '3.5' # flake8 fails with AttributeError in importlib-metadata 5.0.0 on Python >=3.7 # tox 3.14 requires importlib-metadata<1,>=0.12 on Python <=3.7 importlib-metadata>=0.22,<5.0.0; python_version <= '3.7' @@ -76,7 +77,8 @@ Sphinx>=3.5.4,!=4.0.0; python_version >= Sphinx>=4.2.0; python_version >= '3.10' docutils>=0.13.1,<0.17; python_version == '2.7' docutils>=0.13.1,<0.17; python_version >= '3.5' and python_version <= '3.9' -docutils>=0.14,<0.17; python_version >= '3.10' +docutils==0.14,<0.17; python_version == '3.10' +docutils==0.16,<0.17; python_version >= '3.11' sphinx-git>=10.1.1 GitPython>=2.1.1; Pygments>=2.1.3; python_version == '2.7' Index: pywbemtools-1.1.1/docs/changes.rst =================================================================== --- pywbemtools-1.1.1.orig/docs/changes.rst +++ pywbemtools-1.1.1/docs/changes.rst @@ -80,6 +80,8 @@ Released: 2022-11-08 of the general options and the creation of the mock WBEM server script (see issue #1190) +* Added support for Python 3.11. (issue #1243) + **Cleanup:** * Extend use of general options in interactive mode to allow setting the Index: pywbemtools-1.1.1/minimum-constraints.txt =================================================================== --- pywbemtools-1.1.1.orig/minimum-constraints.txt +++ pywbemtools-1.1.1/minimum-constraints.txt @@ -160,7 +160,7 @@ pytest==6.2.5; python_version >= '3.10' pluggy==0.13.0 funcsigs==1.0.2; python_version == '2.7' colorama==0.3.9; python_version == '2.7' -colorama==0.4.0; python_version >= '3.5' +colorama==0.4.5; python_version >= '3.5' importlib-metadata==0.22; python_version <= '3.7' importlib-metadata==1.1.0; python_version >= '3.8' @@ -190,7 +190,8 @@ Sphinx==3.5.4; python_version >= '3.5' a Sphinx==4.2.0; python_version >= '3.10' docutils==0.13.1; python_version == '2.7' docutils==0.13.1; python_version >= '3.5' and python_version <= '3.9' -docutils==0.14; python_version >= '3.10' +docutils==0.14; python_version == '3.10' +docutils==0.16; python_version >= '3.11' sphinx-git==10.1.1 GitPython==2.1.1 sphinxcontrib-websupport==1.1.2 @@ -249,6 +250,9 @@ pkginfo==1.4.2 #pywin32==223; sys_platform == 'win32' and python_version == '3.7' #pywin32==227; sys_platform == 'win32' and python_version >= '3.8' +# pyzmq is used (at least?) by jupyter. +#pyzmq==16.0.4 + # Address issue that pyparsing 3.0.0b2 gets installed on py27 (used by packaging) pyparsing==2.3.1 @@ -284,7 +288,6 @@ gitdb2==2.0.0 html5lib==0.999999999 idna==2.5 imagesize==0.7.1 -isort==4.3.5 Jinja2==2.8.1; python_version <= '3.9' Jinja2==2.10.2; python_version >= '3.10' jsonschema==2.6.0 Index: pywbemtools-1.1.1/pywbemtools/pywbemcli/pywbemcli.py =================================================================== --- pywbemtools-1.1.1.orig/pywbemtools/pywbemcli/pywbemcli.py +++ pywbemtools-1.1.1/pywbemtools/pywbemcli/pywbemcli.py @@ -143,10 +143,13 @@ def _validate_connections_file(connectio def _execute_startup_script(file_path, verbose): """ - Execute the python script. This executes the script defined in file_path. + Execute the python script defined by file_path. This should be called only + if a python file is defined by the PYWBEMCLI_STARTUP_ENVVAR env var and + it is intended as a test support tool only to modify pywbemcli operation for + functional tests. + This compiles and executes the script defined in file_path. The purpose of this code is to execute test scripts at startup. """ - ext = os.path.splitext(file_path)[1] if ext not in ['.py']: raise click.ClickException( @@ -156,9 +159,10 @@ def _execute_startup_script(file_path, v raise click.ClickException( "File '{}' does not exist".format(file_path)) + # Errors in executing the file cause abort with io.open(file_path, 'r', encoding='utf-8') as fp: file_source = fp.read() - # Only verbose is allowed here + # Set verbose for maximum information globalparams = {'VERBOSE': verbose} try: # Using compile+exec instead of just exec allows @@ -169,12 +173,11 @@ def _execute_startup_script(file_path, v exec(file_code, globalparams, None) except Exception: exc_type, exc_value, exc_traceback = sys.exc_info() - tb = traceback.format_exception(exc_type, exc_value, - exc_traceback) + tb = traceback.format_exception(exc_type, exc_value, exc_traceback) click.echo( - "Python test process-at-startup script '{}' " - "failed:\n{}".format(file_path, "\n".join(tb)), - err=True) + "Python script '{}' defined by env var " + "PYWBEMCLI_STARTUP_ENVVAR failed:\n{}" + .format(file_path, "\n".join(tb)), err=True) raise click.Abort() Index: pywbemtools-1.1.1/setup.py =================================================================== --- pywbemtools-1.1.1.orig/setup.py +++ pywbemtools-1.1.1/setup.py @@ -135,5 +135,6 @@ setuptools.setup( 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ] ) Index: pywbemtools-1.1.1/tests/unit/pywbemcli/test_general_options.py =================================================================== --- pywbemtools-1.1.1.orig/tests/unit/pywbemcli/test_general_options.py +++ pywbemtools-1.1.1/tests/unit/pywbemcli/test_general_options.py @@ -599,11 +599,9 @@ TEST_CASES = [ 'args': ['enumerate'], 'env': {MOCK_DEFINITION_ENVVAR: GET_TEST_PATH_STR(BAD_PY_ERR_STRTUP_FILE)}}, - {'stderr': ['Python test process-at-startup script', - 'Traceback (most recent call last)', - 'line ', + {'stderr': ['Traceback (most recent call last)', 'def mock?prompt(msg):', - 'SyntaxError: invalid syntax'], + 'SyntaxError:'], 'rc': 1, 'test': 'innows'}, None, OK], Index: pywbemtools-1.1.1/tests/unit/pywbemcli/all_types_method_mock_v0.py =================================================================== --- pywbemtools-1.1.1.orig/tests/unit/pywbemcli/all_types_method_mock_v0.py +++ pywbemtools-1.1.1/tests/unit/pywbemcli/all_types_method_mock_v0.py @@ -18,7 +18,7 @@ def alltypes_callback(conn, object_name, method_callback_interface which defines the input parameters and returns all parameters received. """ - return_params = [params[p] for p in params] + return_params = list(params.values()) return_value = 0 return (return_value, return_params)