Hello community, here is the log from the commit of package python-pywbem for openSUSE:Factory checked in at 2020-05-28 09:05:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pywbem (Old) and /work/SRC/openSUSE:Factory/.python-pywbem.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pywbem" Thu May 28 09:05:43 2020 rev:14 rq:805284 version:0.17.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pywbem/python-pywbem.changes 2020-04-15 19:53:51.477581759 +0200 +++ /work/SRC/openSUSE:Factory/.python-pywbem.new.3606/python-pywbem.changes 2020-05-28 09:05:46.787422057 +0200 @@ -1,0 +2,9 @@ +Wed May 13 12:31:48 UTC 2020 - Adam Majer <[email protected]> + +- Update to 0.17.2: + - Fixed raise error for invalid reference_direction in + WBEMServer.get_central_instances(). (See issue #2187) + - Fixed raise error for missing ports in WBEMListener.__init__(). + (See issue #2188) + +------------------------------------------------------------------- Old: ---- pywbem-0.17.1.tar.gz New: ---- pywbem-0.17.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pywbem.spec ++++++ --- /var/tmp/diff_new_pack.zSYhwt/_old 2020-05-28 09:05:48.955428557 +0200 +++ /var/tmp/diff_new_pack.zSYhwt/_new 2020-05-28 09:05:48.955428557 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pywbem -Version: 0.17.1 +Version: 0.17.2 Release: 0 Summary: Python module for making CIM operation calls using the WBEM protocol License: LGPL-2.1-or-later ++++++ pywbem-0.17.1.tar.gz -> pywbem-0.17.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/MANIFEST.in new/pywbem-0.17.2/MANIFEST.in --- old/pywbem-0.17.1/MANIFEST.in 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/MANIFEST.in 2020-04-20 07:04:42.000000000 +0200 @@ -4,6 +4,8 @@ include README_PYPI.rst include INSTALL.md include requirements.txt +include pywbem_os_setup.sh +include pywbem_os_setup.bat include setup.py include build_moftab.py include mof_compiler diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/dev-requirements.txt new/pywbem-0.17.2/dev-requirements.txt --- old/pywbem-0.17.1/dev-requirements.txt 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/dev-requirements.txt 2020-04-20 07:04:42.000000000 +0200 @@ -62,7 +62,8 @@ yamlloader>=0.5.5; python_version > '2.6' # Virtualenv -virtualenv>=14.0.0; python_version < '3.8' +virtualenv>=14.0.0; python_version < '3.5' +virtualenv>=16.1.0; python_version >= '3.5' and python_version < '3.8' virtualenv>=20.0.0; python_version >= '3.8' # Coverage reporting (no imports, invoked via coveralls script): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/docs/changes.rst new/pywbem-0.17.2/docs/changes.rst --- old/pywbem-0.17.1/docs/changes.rst 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/docs/changes.rst 2020-04-20 07:04:42.000000000 +0200 @@ -13,6 +13,39 @@ :revisions: 1 +pywbem 0.17.2 +------------- + +Released: 2020-04-19 + +**Bug fixes:** + +* Test: Fixed virtualenv related failures during install test. + (See issue #2174) + +* Dev: Increased the versions of the base packages 'pip', 'setuptools' and + 'wheel' to the content of Ubuntu 18.04 as a minimum, and to the lowest + versions that support a particular Python versions beyond that. + This only affects development of pywbem. (See issue #2174) + +* Setup: Added the scripts for installing OS-level dependencies + (pywbem_os_setup.sh/.bat) to the source distribution archive. Note that + starting with the upcoming pywbem 1.0.0, these scripts are no longer needed, + so this change will not be rolled forward into 1.0.0. + (See issue #2173) + +* Increased the version of 'PyYAML' from 5.1 to 5.3 on Python 2.7, to pick + up a fix for dealing with Unicode characters above U+FFFF in narrow Python + builds. This could not be fixed for Python 2.6 since PyYAML 3.12 dropped + support for Python 2.6 (See issue #2182) + +* Fixed raise error for invalid reference_direction in + WBEMServer.get_central_instances(). (See issue #2187) + +* Fixed raise error for missing ports in WBEMListener.__init__(). + (See issue #2188) + + pywbem 0.17.1 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/makefile new/pywbem-0.17.2/makefile --- old/pywbem-0.17.1/makefile 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/makefile 2020-04-20 07:04:42.000000000 +0200 @@ -287,6 +287,8 @@ README_PYPI.rst \ INSTALL.md \ requirements.txt \ + pywbem_os_setup.sh \ + pywbem_os_setup.bat \ setup.py \ build_moftab.py \ mof_compiler \ @@ -305,6 +307,8 @@ README_PYPI.rst \ INSTALL.md \ requirements.txt \ + pywbem_os_setup.sh \ + pywbem_os_setup.bat \ setup.py \ build_moftab.py \ mof_compiler \ @@ -388,6 +392,7 @@ @echo "Python command location: $(shell $(WHICH) $(PYTHON_CMD))" @echo "Python version: $(python_version)" @$(PYTHON_CMD) tools/python_bitsize.py + @$(PYTHON_CMD) tools/python_unicodesize.py @echo "Pip command name: $(PIP_CMD)" @echo "Pip command location: $(shell $(WHICH) $(PIP_CMD))" @echo "$(package_name) package version: $(package_version)" @@ -724,7 +729,7 @@ ifeq ($(PLATFORM),Windows_native) @echo "makefile: Warning: Skipping install test on native Windows" >&2 else - tests/installtest/test_install.sh $(bdist_file) $(sdist_file) + tests/installtest/test_install.sh $(bdist_file) $(sdist_file) $(PYTHON_CMD) endif @echo "makefile: Done running install tests" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/minimum-constraints.txt new/pywbem-0.17.2/minimum-constraints.txt --- old/pywbem-0.17.1/minimum-constraints.txt 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/minimum-constraints.txt 2020-04-20 07:04:42.000000000 +0200 @@ -41,18 +41,52 @@ # pip 19.3.1 # setuptools 41.6.0 # wheel 0.33.6 +# +# Info: Python version supported by base packages (added / removed) +# * Python 2.6 support: +# pip ? / 10.0.0 +# setuptools ? / 37.0.0 +# wheel ? / 0.30.0 +# * Python 2.7 support: +# pip ? +# setuptools ? / 45.0.0 +# wheel ? +# * Python 3.4 support: +# pip ? / 19.2 +# setuptools ? / 44.0.0 +# wheel ? / 0.34.0 +# * Python 3.5 support: +# pip 8.0 +# setuptools 18.3 +# wheel 0.30.0 +# * Python 3.6 support: +# pip 10.0.0 +# setuptools 34.0.0 +# wheel 0.30.0 +# * Python 3.7 support: +# pip 18.1 +# setuptools 40.6.0 +# wheel 0.32.0 +# * Python 3.8 support: +# pip 19.3.1 +# setuptools 41.5.0 +# wheel 0.33.5 -# For Python up to Python 3.7, we use the versions from Ubuntu 17.04: -# setuptools 38.4.1 fixes a bug on Python 3.7. -pip==9.0.1; python_version <= '3.7' -setuptools==33.1.1; python_version < '3.7' -setuptools==38.4.1; python_version == '3.7' -wheel==0.29.0; python_version <= '3.7' - -# For Python 3.8 and above, we use the versions from Python 3.8.0: +# For the base packages, we use the versions from Ubuntu 18.04 as a general +# minimum, and then increase it to the first version that introduced support +# for a particular Python version: +pip==9.0.1; python_version <= '3.5' +pip==10.0.0; python_version == '3.6' +pip==18.1; python_version == '3.7' pip==19.3.1; python_version >= '3.8' -setuptools==41.6.0; python_version >= '3.8' -wheel==0.33.6; python_version >= '3.8' +setuptools==33.1.1; python_version == '2.6' +setuptools==39.0.1; python_version >= '2.7' and python_version <= '3.6' +setuptools==40.6.0; python_version == '3.7' +setuptools==41.5.0; python_version >= '3.8' +wheel==0.29.0; python_version == '2.6' +wheel==0.30.0; python_version >= '2.7' and python_version <= '3.6' +wheel==0.32.0; python_version == '3.7' +wheel==0.33.5; python_version >= '3.8' # Direct dependencies for install (must be consistent with requirements.txt) @@ -62,7 +96,8 @@ ordereddict==1.1 ply==3.10 PyYAML==3.11; python_version == '2.6' -PyYAML==5.1; python_version >= '2.7' +PyYAML==5.3; python_version == '2.7' # PyYAML 5.3 fixes narrow build error +PyYAML==5.1; python_version >= '3.4' six==1.10.0; python_version <= '3.7' six==1.10.0; python_version < '3.8' six==1.12.0; python_version >= '3.8' # required by virtualenv==20.0.0 @@ -95,7 +130,8 @@ pytz==2016.10 # Virtualenv -virtualenv==14.0.0; python_version < '3.8' +virtualenv==14.0.0; python_version < '3.5' +virtualenv==16.1.0; python_version >= '3.5' and python_version < '3.8' virtualenv==20.0.0; python_version >= '3.8' # requires six<2,>=1.12.0 # Unit test (indirect dependencies): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/pywbem/_listener.py new/pywbem-0.17.2/pywbem/_listener.py --- old/pywbem-0.17.1/pywbem/_listener.py 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/pywbem/_listener.py 2020-04-20 07:04:42.000000000 +0200 @@ -685,7 +685,7 @@ self._keyfile = None if self._http_port is None and self._https_port is None: - ValueError("Listener requires at least one active port") + raise ValueError("Listener requires at least one active port") self._http_server = None # ThreadedHTTPServer for HTTP self._http_thread = None # Thread for HTTP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/pywbem/_server.py new/pywbem-0.17.2/pywbem/_server.py --- old/pywbem-0.17.1/pywbem/_server.py 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/pywbem/_server.py 2020-04-20 07:04:42.000000000 +0200 @@ -863,7 +863,7 @@ """ if reference_direction not in ('dmtf', 'snia'): - ValueError( + raise ValueError( _format("The reference_direction parameter must be 'dmtf' or " "'snia', but is: {0!A}", reference_direction)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/pywbem/_version.py new/pywbem-0.17.2/pywbem/_version.py --- old/pywbem-0.17.1/pywbem/_version.py 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/pywbem/_version.py 2020-04-20 07:04:42.000000000 +0200 @@ -29,4 +29,4 @@ #: #: * "M.N.P.devD": Development level D of a not yet released version M.N.P #: * "M.N.P": A released version M.N.P -__version__ = '0.17.1' +__version__ = '0.17.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/requirements.txt new/pywbem-0.17.2/requirements.txt --- old/pywbem-0.17.1/requirements.txt 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/requirements.txt 2020-04-20 07:04:42.000000000 +0200 @@ -16,9 +16,9 @@ mock>=2.0.0; python_version >= '3.6' ordereddict>=1.1; python_version == '2.6' ply>=3.10 -# PyYAML 5.3 has removed support for Python 3.4 +# PyYAML 5.3 has removed support for Python 3.4; fixes narrow build error PyYAML>=3.11,<3.12; python_version == '2.6' -PyYAML>=5.1; python_version == '2.7' +PyYAML>=5.3; python_version == '2.7' PyYAML>=5.1,<5.3; python_version == '3.4' PyYAML>=5.1; python_version > '3.4' # virtualenv 20.0.0 (required on py3.8+) requires six>=0.12.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/tests/installtest/test_install.sh new/pywbem-0.17.2/tests/installtest/test_install.sh --- old/pywbem-0.17.1/tests/installtest/test_install.sh 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/tests/installtest/test_install.sh 2020-04-20 07:04:42.000000000 +0200 @@ -34,10 +34,6 @@ MYNAME=$(basename "$0") MYDIR=$(dirname "$0") # Directory of this script, as seen by caller -# Python command for creating virtualenvs. -# Using just "python" allows using any active virtualenv. -PYTHON="python" - # Repo root dir, as seen by caller # Using MYDIR makes the script run with any caller's CWD. ROOT_DIR="$MYDIR/../.." @@ -147,19 +143,27 @@ remove_virtualenv $envname fi - python_cmd=$(which $PYTHON) + python_cmd_path=$(which $PYTHON_CMD) verbose "Creating virtualenv: $envdir" - verbose "..using this Python command: $python_cmd" - run "virtualenv -p $python_cmd $envdir" + verbose "..using this Python command: $python_cmd_path" + verbose "..that has this Python version: $($PYTHON_CMD --version 2>&1)" + run "virtualenv -p $python_cmd_path $envdir" + + run "source $envdir/bin/activate" "Activating virtualenv: $envdir" + verbose "Python command in this virtualenv: $(which python)" + verbose "Python version in this virtualenv: $(python --version 2>&1)" + + verbose "Packages in this virtualenv before reinstalling base packages:" + pip list --format=columns 2>/dev/null || pip list 2>/dev/null + + # If pip is reinstalled (=downgraded) before reinstalling setuptools and wheel, + # we get permission errors on Travis when running with minimum package levels. + run "pip install setuptools $PIP_OPTS" "Reinstalling setuptools with PACKAGE_LEVEL=$PACKAGE_LEVEL" + run "pip install wheel $PIP_OPTS" "Reinstalling wheel with PACKAGE_LEVEL=$PACKAGE_LEVEL" + run "pip install pip $PIP_OPTS" "Reinstalling pip with PACKAGE_LEVEL=$PACKAGE_LEVEL" - verbose "Activating virtualenv: $envdir" - run "source $envdir/bin/activate" - echo "Python command in this virtualenv: $(which python)" - echo "Python version in this virtualenv: $(python --version 2>&1)" - - verbose "Installing pip, setuptools, wheel with PACKAGE_LEVEL=$PACKAGE_LEVEL" - run "pip install pip $PIP_OPTS" - run "pip install setuptools wheel $PIP_OPTS" + verbose "Packages in this virtualenv before actual install test:" + pip list --format=columns 2>/dev/null || pip list 2>/dev/null } function remove_virtualenv() @@ -508,17 +512,22 @@ WHL_DISTFILE="$1" # absolute or relative to caller's cwd SRC_DISTFILE="$2" # absolute or relative to caller's cwd +PYTHON_CMD="$3" # Python command to use (outside of the created virtualenvs) -if [[ -z $SRC_DISTFILE ]]; then - error "Arguments missing. Usage: $MYNAME WHEEL_DIST_FILE SOURCE_DIST_FILE" +if [[ -z $PYTHON_CMD ]]; then + error "Arguments missing. Usage: $MYNAME WHEEL_DIST_FILE SOURCE_DIST_FILE PYTHON_CMD" exit 2 fi +if [[ ! -f $WHL_DISTFILE ]]; then + error "Wheel distribution archive does not exist: $WHL_DISTFILE" + exit 1 +fi if [[ ! -f $SRC_DISTFILE ]]; then error "Source distribution archive does not exist: $SRC_DISTFILE" exit 1 fi -if [[ ! -f $WHL_DISTFILE ]]; then - error "Wheel distribution archive does not exist: $WHL_DISTFILE" +if ! which $PYTHON_CMD >/dev/null 2>&1; then + error "Cannot find Python command: $PYTHON_CMD" exit 1 fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/tests/unittest/pywbem/test_wbemserverclass.py new/pywbem-0.17.2/tests/unittest/pywbem/test_wbemserverclass.py --- old/pywbem-0.17.1/tests/unittest/pywbem/test_wbemserverclass.py 2020-04-13 21:23:27.000000000 +0200 +++ new/pywbem-0.17.2/tests/unittest/pywbem/test_wbemserverclass.py 2020-04-20 07:04:42.000000000 +0200 @@ -387,6 +387,18 @@ ), None, None, True ), + ( + "Invalid reference direction", + dict( + profile_name=('SNIA', 'Server', '1.2.0'), + central_class='XXX_StorageComputerSystem', + scoping_class=None, + scoping_path=None, + direction='foo', + exp_paths=None + ), + ValueError, None, True + ), # TODO add more central instance tests ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywbem-0.17.1/tools/python_unicodesize.py new/pywbem-0.17.2/tools/python_unicodesize.py --- old/pywbem-0.17.1/tools/python_unicodesize.py 1970-01-01 01:00:00.000000000 +0100 +++ new/pywbem-0.17.2/tools/python_unicodesize.py 2020-04-20 07:04:42.000000000 +0200 @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +import sys + +# Method 1: Test whether s.decode() returns surrogate pair or single char +s = b'\\U00010142' +c = s.decode('unicode-escape') +if len(c) == 1: + size1 = 'wide' +elif len(c) == 2: + size1 = 'narrow' +else: + raise AssertionError( + "python_unicodesize.py: Length of Unicode character {0} returned from " + "s.decode() must be 1 or 2 but is: {1}".format(s, len(c))) + +# Method 2: Test whether unichr() fails +try: + if sys.version_info[0] == 2: + unichr(65858) # U+10142 + else: + chr(65858) # U+10142 +except ValueError: + size2 = 'narrow' +else: + size2 = 'wide' + +if size1 != size2: + raise AssertionError( + "python_unicodesize.py: Different results for unicode size: " + "s.decode() method: {0}, unichr() method: {1}". + format(size1, size2)) + +print("Unicode size of Python environment: {0}".format(size1))
